Skip to content

Commit b2506ab

Browse files
committed
rebuilt
1 parent a21f081 commit b2506ab

File tree

2 files changed

+30
-36
lines changed

2 files changed

+30
-36
lines changed

samples/server/petstore/nodejs/api/swagger.json

Lines changed: 28 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@
9797

9898
],
9999
"responses": {
100-
"404": {
101-
"description" : "User not found"
102-
}
103-
,
104100
"200": {
105101
"description" : "successful operation",
106102
"schema" : {
@@ -123,6 +119,10 @@
123119
"400": {
124120
"description" : "Invalid username supplied"
125121
}
122+
,
123+
"404": {
124+
"description" : "User not found"
125+
}
126126

127127

128128
}
@@ -154,13 +154,13 @@
154154

155155
],
156156
"responses": {
157-
"404": {
158-
"description" : "User not found"
159-
}
160-
,
161157
"400": {
162158
"description" : "Invalid user supplied"
163159
}
160+
,
161+
"404": {
162+
"description" : "User not found"
163+
}
164164

165165

166166
}
@@ -183,13 +183,13 @@
183183

184184
],
185185
"responses": {
186-
"404": {
187-
"description" : "User not found"
188-
}
189-
,
190186
"400": {
191187
"description" : "Invalid username supplied"
192188
}
189+
,
190+
"404": {
191+
"description" : "User not found"
192+
}
193193

194194

195195
}
@@ -312,16 +312,16 @@
312312

313313
],
314314
"responses": {
315-
"405": {
316-
"description" : "Validation exception"
315+
"400": {
316+
"description" : "Invalid ID supplied"
317317
}
318318
,
319319
"404": {
320320
"description" : "Pet not found"
321321
}
322322
,
323-
"400": {
324-
"description" : "Invalid ID supplied"
323+
"405": {
324+
"description" : "Validation exception"
325325
}
326326

327327

@@ -416,9 +416,6 @@
416416
"description" : "Status values that need to be considered for filter",
417417
"required" : false,
418418
"type" : "array",
419-
"items" : {
420-
"type" : "string"
421-
},
422419
"collectionFormat" : "multi",
423420
"default" : "available"
424421
}
@@ -460,9 +457,6 @@
460457
"description" : "Tags to filter by",
461458
"required" : false,
462459
"type" : "array",
463-
"items" : {
464-
"type" : "string"
465-
},
466460
"collectionFormat" : "multi"
467461
}
468462

@@ -508,10 +502,6 @@
508502

509503
],
510504
"responses": {
511-
"404": {
512-
"description" : "Pet not found"
513-
}
514-
,
515505
"200": {
516506
"description" : "successful operation",
517507
"schema" : {
@@ -522,6 +512,10 @@
522512
"400": {
523513
"description" : "Invalid ID supplied"
524514
}
515+
,
516+
"404": {
517+
"description" : "Pet not found"
518+
}
525519

526520

527521
}
@@ -621,10 +615,6 @@
621615

622616
],
623617
"responses": {
624-
"404": {
625-
"description" : "Order not found"
626-
}
627-
,
628618
"200": {
629619
"description" : "successful operation",
630620
"schema" : {
@@ -635,6 +625,10 @@
635625
"400": {
636626
"description" : "Invalid ID supplied"
637627
}
628+
,
629+
"404": {
630+
"description" : "Order not found"
631+
}
638632

639633

640634
}
@@ -657,13 +651,13 @@
657651

658652
],
659653
"responses": {
660-
"404": {
661-
"description" : "Order not found"
662-
}
663-
,
664654
"400": {
665655
"description" : "Invalid ID supplied"
666656
}
657+
,
658+
"404": {
659+
"description" : "Order not found"
660+
}
667661

668662

669663
}

samples/server/petstore/nodejs/controllers/StoreService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ exports.placeOrder = function(body) {
2424
"complete" : true,
2525
"status" : "aeiou",
2626
"quantity" : 123,
27-
"shipDate" : "2015-10-08T15:56:08.367+0000"
27+
"shipDate" : "2015-10-20T06:12:23.907+0000"
2828
};
2929

3030

@@ -43,7 +43,7 @@ exports.getOrderById = function(orderId) {
4343
"complete" : true,
4444
"status" : "aeiou",
4545
"quantity" : 123,
46-
"shipDate" : "2015-10-08T15:56:08.371+0000"
46+
"shipDate" : "2015-10-20T06:12:23.911+0000"
4747
};
4848

4949

0 commit comments

Comments
 (0)