Skip to content

Commit 94ceb50

Browse files
committed
Changed the "params" operation property to "parameters" to conform to the swagger spec
1 parent f914f26 commit 94ceb50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

samples/server-generator/node/templates/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ exports.{{nickname}} = {
2424
"notes" : "{{{notes}}}",
2525
"summary" : "{{{summary}}}",
2626
"method": "{{httpMethod}}",
27-
"params" : [{{#queryParams}}
27+
"parameters" : [{{#queryParams}}
2828
params.query("{{paramName}}", "{{description}}", "{{swaggerDataType}}", {{required}}, {{allowMultiple}}, "{{{allowableValues}}}"{{#defaultValue}}, {{{defaultValue}}}{{/defaultValue}}){{#hasMore}},{{/hasMore}}
2929
{{/queryParams}}].concat([{{#pathParams}}
3030
params.path("{{paramName}}", "{{description}}"){{#hasMore}},{{/hasMore}}

0 commit comments

Comments
 (0)