Skip to content

Commit 65b3b59

Browse files
committed
Renamed the "params" operation property to "parameters" to conform to the swagger spec
1 parent 94ceb50 commit 65b3b59

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

samples/server-generator/node/output/App/apis/PetApi.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ exports.getPetById = {
2222
"notes" : "Returns a pet based on ID",
2323
"summary" : "Find pet by ID",
2424
"method": "GET",
25-
"params" : [].concat([params.path("petId", "ID of pet that needs to be fetched")]).concat([]).concat([]),
25+
"parameters" : [].concat([params.path("petId", "ID of pet that needs to be fetched")]).concat([]).concat([]),
2626
"type" : "Pet",
2727
"responseMessages" : [errors.invalid('id'), errors.notFound('Pet')],
2828
"nickname" : "getPetById"
@@ -41,7 +41,7 @@ exports.deletePet = {
4141
"notes" : "",
4242
"summary" : "Deletes a pet",
4343
"method": "DELETE",
44-
"params" : [].concat([params.path("petId", "Pet id to delete")]).concat([]).concat([]),
44+
"parameters" : [].concat([params.path("petId", "Pet id to delete")]).concat([]).concat([]),
4545
"type" : "",
4646
"responseMessages" : [errors.invalid('id'), errors.notFound('')],
4747
"nickname" : "deletePet"
@@ -60,7 +60,7 @@ exports.partialUpdate = {
6060
"notes" : "",
6161
"summary" : "partial updates to a pet",
6262
"method": "PATCH",
63-
"params" : [].concat([params.path("petId", "ID of pet that needs to be fetched")]).concat([]).concat([params.body("body", "Pet", "Pet object that needs to be added to the store", true)
63+
"parameters" : [].concat([params.path("petId", "ID of pet that needs to be fetched")]).concat([]).concat([params.body("body", "Pet", "Pet object that needs to be added to the store", true)
6464
]),
6565
"type" : "List[Pet]",
6666
"responseMessages" : [errors.invalid('id'), errors.notFound('List[Pet]')],
@@ -83,7 +83,7 @@ exports.updatePetWithForm = {
8383
"notes" : "",
8484
"summary" : "Updates a pet in the store with form data",
8585
"method": "POST",
86-
"params" : [].concat([params.path("petId", "ID of pet that needs to be updated")]).concat([]).concat([]),
86+
"parameters" : [].concat([params.path("petId", "ID of pet that needs to be updated")]).concat([]).concat([]),
8787
"type" : "",
8888
"responseMessages" : [errors.invalid('id'), errors.notFound('')],
8989
"nickname" : "updatePetWithForm"
@@ -102,7 +102,7 @@ exports.uploadFile = {
102102
"notes" : "",
103103
"summary" : "uploads an image",
104104
"method": "POST",
105-
"params" : [].concat([]).concat([]).concat([params.body("body", "File", "file to upload", false)
105+
"parameters" : [].concat([]).concat([]).concat([params.body("body", "File", "file to upload", false)
106106
]),
107107
"type" : "",
108108
"responseMessages" : [errors.invalid('id'), errors.notFound('')],
@@ -119,7 +119,7 @@ exports.addPet = {
119119
"notes" : "",
120120
"summary" : "Add a new pet to the store",
121121
"method": "POST",
122-
"params" : [].concat([]).concat([]).concat([params.body("body", "Pet", "Pet object that needs to be added to the store", true)
122+
"parameters" : [].concat([]).concat([]).concat([params.body("body", "Pet", "Pet object that needs to be added to the store", true)
123123
]),
124124
"type" : "",
125125
"responseMessages" : [errors.invalid('id'), errors.notFound('')],
@@ -139,7 +139,7 @@ exports.updatePet = {
139139
"notes" : "",
140140
"summary" : "Update an existing pet",
141141
"method": "PUT",
142-
"params" : [].concat([]).concat([]).concat([params.body("body", "Pet", "Pet object that needs to be updated in the store", true)
142+
"parameters" : [].concat([]).concat([]).concat([params.body("body", "Pet", "Pet object that needs to be updated in the store", true)
143143
]),
144144
"type" : "",
145145
"responseMessages" : [errors.invalid('id'), errors.notFound('')],
@@ -159,7 +159,7 @@ exports.findPetsByStatus = {
159159
"notes" : "Multiple status values can be provided with comma seperated strings",
160160
"summary" : "Finds Pets by status",
161161
"method": "GET",
162-
"params" : [params.query("status", "Status values that need to be considered for filter", "string", true, true, "LIST[available,pending,sold]", "available")].concat([]).concat([]).concat([]),
162+
"parameters" : [params.query("status", "Status values that need to be considered for filter", "string", true, true, "LIST[available,pending,sold]", "available")].concat([]).concat([]).concat([]),
163163
"type" : "List[Pet]",
164164
"responseMessages" : [errors.invalid('id'), errors.notFound('List[Pet]')],
165165
"nickname" : "findPetsByStatus"
@@ -178,7 +178,7 @@ exports.findPetsByTags = {
178178
"notes" : "Muliple tags can be provided with comma seperated strings. Use tag1, tag2, tag3 for testing.",
179179
"summary" : "Finds Pets by tags",
180180
"method": "GET",
181-
"params" : [params.query("tags", "Tags to filter by", "string", true, true, "")].concat([]).concat([]).concat([]),
181+
"parameters" : [params.query("tags", "Tags to filter by", "string", true, true, "")].concat([]).concat([]).concat([]),
182182
"type" : "List[Pet]",
183183
"responseMessages" : [errors.invalid('id'), errors.notFound('List[Pet]')],
184184
"nickname" : "findPetsByTags"

samples/server-generator/node/output/App/apis/StoreApi.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ exports.getOrderById = {
2222
"notes" : "For valid response try integer IDs with value <= 5. Anything above 5 or nonintegers will generate API errors",
2323
"summary" : "Find purchase order by ID",
2424
"method": "GET",
25-
"params" : [].concat([params.path("orderId", "ID of pet that needs to be fetched")]).concat([]).concat([]),
25+
"parameters" : [].concat([params.path("orderId", "ID of pet that needs to be fetched")]).concat([]).concat([]),
2626
"type" : "Order",
2727
"responseMessages" : [errors.invalid('id'), errors.notFound('Order')],
2828
"nickname" : "getOrderById"
@@ -41,7 +41,7 @@ exports.deleteOrder = {
4141
"notes" : "For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors",
4242
"summary" : "Delete purchase order by ID",
4343
"method": "DELETE",
44-
"params" : [].concat([params.path("orderId", "ID of the order that needs to be deleted")]).concat([]).concat([]),
44+
"parameters" : [].concat([params.path("orderId", "ID of the order that needs to be deleted")]).concat([]).concat([]),
4545
"type" : "",
4646
"responseMessages" : [errors.invalid('id'), errors.notFound('')],
4747
"nickname" : "deleteOrder"
@@ -60,7 +60,7 @@ exports.placeOrder = {
6060
"notes" : "",
6161
"summary" : "Place an order for a pet",
6262
"method": "POST",
63-
"params" : [].concat([]).concat([]).concat([params.body("body", "Order", "order placed for purchasing the pet", true)
63+
"parameters" : [].concat([]).concat([]).concat([params.body("body", "Order", "order placed for purchasing the pet", true)
6464
]),
6565
"type" : "",
6666
"responseMessages" : [errors.invalid('id'), errors.notFound('')],

samples/server-generator/node/output/App/apis/UserApi.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ exports.updateUser = {
2222
"notes" : "This can only be done by the logged in user.",
2323
"summary" : "Updated user",
2424
"method": "PUT",
25-
"params" : [].concat([params.path("username", "name that need to be deleted")]).concat([]).concat([params.body("body", "User", "Updated user object", true)
25+
"parameters" : [].concat([params.path("username", "name that need to be deleted")]).concat([]).concat([params.body("body", "User", "Updated user object", true)
2626
]),
2727
"type" : "",
2828
"responseMessages" : [errors.invalid('id'), errors.notFound('')],
@@ -45,7 +45,7 @@ exports.deleteUser = {
4545
"notes" : "This can only be done by the logged in user.",
4646
"summary" : "Delete user",
4747
"method": "DELETE",
48-
"params" : [].concat([params.path("username", "The name that needs to be deleted")]).concat([]).concat([]),
48+
"parameters" : [].concat([params.path("username", "The name that needs to be deleted")]).concat([]).concat([]),
4949
"type" : "",
5050
"responseMessages" : [errors.invalid('id'), errors.notFound('')],
5151
"nickname" : "deleteUser"
@@ -64,7 +64,7 @@ exports.getUserByName = {
6464
"notes" : "",
6565
"summary" : "Get user by user name",
6666
"method": "GET",
67-
"params" : [].concat([params.path("username", "The name that needs to be fetched. Use user1 for testing.")]).concat([]).concat([]),
67+
"parameters" : [].concat([params.path("username", "The name that needs to be fetched. Use user1 for testing.")]).concat([]).concat([]),
6868
"type" : "User",
6969
"responseMessages" : [errors.invalid('id'), errors.notFound('User')],
7070
"nickname" : "getUserByName"
@@ -83,7 +83,7 @@ exports.loginUser = {
8383
"notes" : "",
8484
"summary" : "Logs user into the system",
8585
"method": "GET",
86-
"params" : [params.query("username", "The user name for login", "string", true, false, ""),params.query("password", "The password for login in clear text", "string", true, false, "")].concat([]).concat([]).concat([]),
86+
"parameters" : [params.query("username", "The user name for login", "string", true, false, ""),params.query("password", "The password for login in clear text", "string", true, false, "")].concat([]).concat([]).concat([]),
8787
"type" : "String",
8888
"responseMessages" : [errors.invalid('id'), errors.notFound('String')],
8989
"nickname" : "loginUser"
@@ -105,7 +105,7 @@ exports.logoutUser = {
105105
"notes" : "",
106106
"summary" : "Logs out current logged in user session",
107107
"method": "GET",
108-
"params" : [].concat([]).concat([]).concat([]),
108+
"parameters" : [].concat([]).concat([]).concat([]),
109109
"type" : "",
110110
"responseMessages" : [errors.invalid('id'), errors.notFound('')],
111111
"nickname" : "logoutUser"
@@ -121,7 +121,7 @@ exports.createUser = {
121121
"notes" : "This can only be done by the logged in user.",
122122
"summary" : "Create user",
123123
"method": "POST",
124-
"params" : [].concat([]).concat([]).concat([params.body("body", "User", "Created user object", true)
124+
"parameters" : [].concat([]).concat([]).concat([params.body("body", "User", "Created user object", true)
125125
]),
126126
"type" : "",
127127
"responseMessages" : [errors.invalid('id'), errors.notFound('')],
@@ -141,7 +141,7 @@ exports.createUsersWithArrayInput = {
141141
"notes" : "",
142142
"summary" : "Creates list of users with given input array",
143143
"method": "POST",
144-
"params" : [].concat([]).concat([]).concat([params.body("body", "Array[User]", "List of user object", true)
144+
"parameters" : [].concat([]).concat([]).concat([params.body("body", "Array[User]", "List of user object", true)
145145
]),
146146
"type" : "",
147147
"responseMessages" : [errors.invalid('id'), errors.notFound('')],
@@ -161,7 +161,7 @@ exports.createUsersWithListInput = {
161161
"notes" : "",
162162
"summary" : "Creates list of users with given list input",
163163
"method": "POST",
164-
"params" : [].concat([]).concat([]).concat([params.body("body", "Array[User]", "List of user object", true)
164+
"parameters" : [].concat([]).concat([]).concat([params.body("body", "Array[User]", "List of user object", true)
165165
]),
166166
"type" : "",
167167
"responseMessages" : [errors.invalid('id'), errors.notFound('')],

0 commit comments

Comments
 (0)