Skip to content

Commit 76c7bcb

Browse files
authored
Merge pull request #743 from seriousme/replace-js-yaml-by-yaml
feat: replace js-yaml by yaml
2 parents 1f94ef4 + 4b828d6 commit 76c7bcb

13 files changed

Lines changed: 161 additions & 146 deletions

examples/generated-javascript-project/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"dependencies": {
1515
"fastify-plugin": "^5.1.0",
1616
"@seriousme/openapi-schema-validator": "^2.8.0",
17-
"js-yaml": "^4.1.1",
17+
"yaml": "^2.8.3",
1818
"fastify-openapi-glue": "^4.10.2"
1919
},
2020
"devDependencies": {

examples/generated-javascript-project/service.js

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export class Service {
5959
// name: Pet
6060
//
6161
// valid responses
62-
// '405':
62+
// "405":
6363
// description: Invalid input
6464
//
6565

@@ -126,11 +126,11 @@ export class Service {
126126
// name: Pet
127127
//
128128
// valid responses
129-
// '400':
129+
// "400":
130130
// description: Invalid ID supplied
131-
// '404':
131+
// "404":
132132
// description: Pet not found
133-
// '405':
133+
// "405":
134134
// description: Validation exception
135135
//
136136

@@ -160,7 +160,7 @@ export class Service {
160160
// - status
161161
//
162162
// valid responses
163-
// '200':
163+
// "200":
164164
// description: successful operation
165165
// schema:
166166
// type: array
@@ -217,7 +217,7 @@ export class Service {
217217
// - sold
218218
// xml:
219219
// name: Pet
220-
// '400':
220+
// "400":
221221
// description: Invalid status value
222222
//
223223

@@ -242,7 +242,7 @@ export class Service {
242242
// - tags
243243
//
244244
// valid responses
245-
// '200':
245+
// "200":
246246
// description: successful operation
247247
// schema:
248248
// type: array
@@ -299,7 +299,7 @@ export class Service {
299299
// - sold
300300
// xml:
301301
// name: Pet
302-
// '400':
302+
// "400":
303303
// description: Invalid tag value
304304
//
305305

@@ -322,7 +322,7 @@ export class Service {
322322
// - petId
323323
//
324324
// valid responses
325-
// '200':
325+
// "200":
326326
// description: successful operation
327327
// schema:
328328
// type: object
@@ -377,9 +377,9 @@ export class Service {
377377
// - sold
378378
// xml:
379379
// name: Pet
380-
// '400':
380+
// "400":
381381
// description: Invalid ID supplied
382-
// '404':
382+
// "404":
383383
// description: Pet not found
384384
//
385385

@@ -412,7 +412,7 @@ export class Service {
412412
// type: string
413413
//
414414
// valid responses
415-
// '405':
415+
// "405":
416416
// description: Invalid input
417417
//
418418

@@ -441,9 +441,9 @@ export class Service {
441441
// - petId
442442
//
443443
// valid responses
444-
// '400':
444+
// "400":
445445
// description: Invalid ID supplied
446-
// '404':
446+
// "404":
447447
// description: Pet not found
448448
//
449449

@@ -476,7 +476,7 @@ export class Service {
476476
// type: string
477477
//
478478
// valid responses
479-
// '200':
479+
// "200":
480480
// description: successful operation
481481
// schema:
482482
// type: object
@@ -499,7 +499,7 @@ export class Service {
499499
// URL: /store/inventory
500500
// summary: Returns pet inventories by status
501501
// valid responses
502-
// '200':
502+
// "200":
503503
// description: successful operation
504504
// schema:
505505
// type: object
@@ -545,7 +545,7 @@ export class Service {
545545
// name: Order
546546
//
547547
// valid responses
548-
// '200':
548+
// "200":
549549
// description: successful operation
550550
// schema:
551551
// type: object
@@ -574,7 +574,7 @@ export class Service {
574574
// default: false
575575
// xml:
576576
// name: Order
577-
// '400':
577+
// "400":
578578
// description: Invalid Order
579579
//
580580

@@ -599,7 +599,7 @@ export class Service {
599599
// - orderId
600600
//
601601
// valid responses
602-
// '200':
602+
// "200":
603603
// description: successful operation
604604
// schema:
605605
// type: object
@@ -628,9 +628,9 @@ export class Service {
628628
// default: false
629629
// xml:
630630
// name: Order
631-
// '400':
631+
// "400":
632632
// description: Invalid ID supplied
633-
// '404':
633+
// "404":
634634
// description: Order not found
635635
//
636636

@@ -654,9 +654,9 @@ export class Service {
654654
// - orderId
655655
//
656656
// valid responses
657-
// '400':
657+
// "400":
658658
// description: Invalid ID supplied
659-
// '404':
659+
// "404":
660660
// description: Order not found
661661
//
662662

@@ -800,7 +800,7 @@ export class Service {
800800
// - password
801801
//
802802
// valid responses
803-
// '200':
803+
// "200":
804804
// description: successful operation
805805
// schema:
806806
// type: string
@@ -813,7 +813,7 @@ export class Service {
813813
// type: string
814814
// format: date-time
815815
// description: date in UTC when token expires
816-
// '400':
816+
// "400":
817817
// description: Invalid username/password supplied
818818
//
819819

@@ -842,13 +842,13 @@ export class Service {
842842
// type: object
843843
// properties:
844844
// username:
845-
// description: 'The name that needs to be fetched. Use user1 for testing. '
845+
// description: "The name that needs to be fetched. Use user1 for testing. "
846846
// type: string
847847
// required:
848848
// - username
849849
//
850850
// valid responses
851-
// '200':
851+
// "200":
852852
// description: successful operation
853853
// schema:
854854
// type: object
@@ -874,9 +874,9 @@ export class Service {
874874
// description: User Status
875875
// xml:
876876
// name: User
877-
// '400':
877+
// "400":
878878
// description: Invalid username supplied
879-
// '404':
879+
// "404":
880880
// description: User not found
881881
//
882882

@@ -923,9 +923,9 @@ export class Service {
923923
// name: User
924924
//
925925
// valid responses
926-
// '400':
926+
// "400":
927927
// description: Invalid user supplied
928-
// '404':
928+
// "404":
929929
// description: User not found
930930
//
931931

@@ -947,9 +947,9 @@ export class Service {
947947
// - username
948948
//
949949
// valid responses
950-
// '400':
950+
// "400":
951951
// description: Invalid username supplied
952-
// '404':
952+
// "404":
953953
// description: User not found
954954
//
955955

0 commit comments

Comments
 (0)