Use default normalizer if parameter type isn't specefied in parameter config

This commit is contained in:
Zaid Abdulla committed 2013-03-23 23:54:18 +03:00
1 parent e247eaaef8
commit 0934831fa1
2 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -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)