Permalink
Browse files

Merge pull request #30 from jakul/default_value

add defaultValue for path param
  • Loading branch information...
2 parents 0c6823f + 5fe4a3f commit 3bfdfd6e0d2e9318b75a6d9c7d4bdec8c2383525 @fehguy fehguy committed Mar 19, 2013
Showing with 5 additions and 3 deletions.
  1. +5 −3 Common/node/paramTypes.js
@@ -27,15 +27,17 @@ exports.query = exports.q = function(name, description, dataType, required, allo
};
};
-exports.path = function(name, description, dataType, allowableValues) {
+exports.path = function(name, description, dataType, allowableValues, defaultValue) {
return {
"name" : name,
"description" : description,
"dataType" : dataType,
"required" : true,
"allowMultiple" : false,
"allowableValues" : allowableValues,
- "paramType" : "path"
+ "paramType" : "path",
+ "defaultValue" : defaultValue
+
};
};
@@ -58,4 +60,4 @@ exports.header = function(name, description, dataType, required) {
"allowMultiple" : false,
"paramType" : "header"
};
-};
+};

0 comments on commit 3bfdfd6

Please sign in to comment.