Use default normalizer if parameter type isn't specefied in parameter config
This commit is contained in:
1 parent
e247eaaef8
commit
0934831fa1
2 files changed
+6
-6
No files matched your search
+1
-1
@@ -45,7 +45,7 @@ normalizers.string = (input, normType) ->
|
||||
|
||||
|
||||
exports.normalize = (path, value, normType) ->
|
||||
if path of config.PARAMETERS
|
||||
if path of config.PARAMETERS and config.PARAMETERS[path].type?
|
||||
return normalizers[config.PARAMETERS[path].type](value)
|
||||
else
|
||||
return normalizers['default'](value, normType)
|
||||
Reference in new issue
Block a user