76
76
- required
77
77
additionalProperties:
78
78
type: boolean
79
- patternProperties: { }
80
79
Ref:
81
80
type: number
82
81
RefObject:
98
97
- somekey
99
98
- string
100
99
additionalProperties: false
101
- patternProperties: { }
102
100
ConditionalRef:
103
101
type: object
104
102
properties:
@@ -118,7 +116,6 @@ paths:
118
116
- somekey
119
117
- string
120
118
additionalProperties: false
121
- patternProperties: { }
122
119
required:
123
120
- Simple
124
121
- Or
@@ -127,7 +124,6 @@ paths:
127
124
- Ref
128
125
- RefObject
129
126
additionalProperties: false
130
- patternProperties: { }
131
127
components:
132
128
x-types:
133
129
Foo: number
@@ -202,7 +198,6 @@ paths:
202
198
- string
203
199
additionalProperties:
204
200
type: boolean
205
- patternProperties: { }
206
201
description: An array of boolean records with the fixed 'string' property.
207
202
Conditional:
208
203
type: string
@@ -226,7 +221,6 @@ paths:
226
221
required:
227
222
- ReferencedAgain
228
223
additionalProperties: false
229
- patternProperties: { }
230
224
description: A reference with nested references.
231
225
required:
232
226
- Plain
@@ -235,7 +229,6 @@ paths:
235
229
- Referenced
236
230
- NestedReferenced
237
231
additionalProperties: false
238
- patternProperties: { }
239
232
components:
240
233
x-types:
241
234
Referenced: string
@@ -284,7 +277,6 @@ paths:
284
277
- az
285
278
- vidh
286
279
additionalProperties: false
287
- patternProperties: { }
288
280
- type: object
289
281
properties:
290
282
bukh:
@@ -295,7 +287,6 @@ paths:
295
287
- bukh
296
288
- vidh
297
289
additionalProperties: false
298
- patternProperties: { }
299
290
components: { }
300
291
"
301
292
` ;
@@ -374,7 +365,6 @@ paths:
374
365
- WrongSchemaFormat
375
366
- Referenced
376
367
additionalProperties: false
377
- patternProperties: { }
378
368
components:
379
369
schemas:
380
370
Foo:
@@ -454,7 +444,6 @@ paths:
454
444
- foo
455
445
- bar
456
446
additionalProperties: false
457
- patternProperties: { }
458
447
application/problems+json:
459
448
x-type:
460
449
WrongAndFormat:
@@ -481,7 +470,6 @@ paths:
481
470
- Empty
482
471
- ImpossibleArraysCombination
483
472
additionalProperties: false
484
- patternProperties: { }
485
473
components:
486
474
x-types:
487
475
CorrectAnd:
@@ -518,27 +506,12 @@ paths:
518
506
schema:
519
507
type: object
520
508
properties:
521
- AFieldWithRegularRef:
522
- anyOf:
523
- - type: string
524
- - type: number
525
- - type: boolean
526
- - type: object
527
- - type: array
528
- - type: 'null'
529
- AFieldWithInlineRef:
530
- anyOf:
531
- - type: string
532
- - type: number
533
- - type: boolean
534
- - type: object
535
- - type: array
536
- - type: 'null'
509
+ AFieldWithRegularRef: { }
510
+ AFieldWithInlineRef: { }
537
511
required:
538
512
- AFieldWithRegularRef
539
513
- AFieldWithInlineRef
540
514
additionalProperties: false
541
- patternProperties: { }
542
515
'201':
543
516
description: A bare ref
544
517
content:
@@ -547,14 +520,7 @@ paths:
547
520
examples:
548
521
Correct:
549
522
value: Anything
550
- schema:
551
- anyOf:
552
- - type: string
553
- - type: number
554
- - type: boolean
555
- - type: object
556
- - type: array
557
- - type: 'null'
523
+ schema: { }
558
524
'202':
559
525
description: A file reference
560
526
content:
@@ -581,14 +547,7 @@ paths:
581
547
value: anything
582
548
schema:
583
549
type: array
584
- items:
585
- anyOf:
586
- - type: string
587
- - type: number
588
- - type: boolean
589
- - type: object
590
- - type: array
591
- - type: 'null'
550
+ items: { }
592
551
'404':
593
552
description: A wrong ref
594
553
content:
@@ -601,18 +560,10 @@ paths:
601
560
schema:
602
561
type: object
603
562
properties:
604
- AWrongRef:
605
- anyOf:
606
- - type: string
607
- - type: number
608
- - type: boolean
609
- - type: object
610
- - type: array
611
- - type: 'null'
563
+ AWrongRef: { }
612
564
required:
613
565
- AWrongRef
614
566
additionalProperties: false
615
- patternProperties: { }
616
567
components:
617
568
x-types:
618
569
Foo: any
@@ -681,11 +632,9 @@ paths:
681
632
- Number
682
633
- Integer
683
634
additionalProperties: false
684
- patternProperties: { }
685
635
required:
686
636
- Formats
687
637
additionalProperties: false
688
- patternProperties: { }
689
638
components: { }
690
639
"
691
640
` ;
@@ -799,12 +748,10 @@ paths:
799
748
required:
800
749
- bukh
801
750
additionalProperties: false
802
- patternProperties: { }
803
751
required:
804
752
- Or
805
753
- ComplexOr
806
754
additionalProperties: false
807
- patternProperties: { }
808
755
components:
809
756
x-types:
810
757
Or:
@@ -982,48 +929,48 @@ referenced from applications/outputs/x-openapi-with-refs.yaml:13:15 at #/paths/~
982
929
Error was generated by the no-invalid-media-type-examples rule.
983
930
984
931
985
- [4] applications/outputs/x-openapi-with-refs.yaml:73 :26 at #/paths/~1test/get/responses/202/content/application~1json/examples/Incorrect/value
932
+ [4] applications/outputs/x-openapi-with-refs.yaml:51 :26 at #/paths/~1test/get/responses/202/content/application~1json/examples/Incorrect/value
986
933
987
934
Example value must conform to the schema: type must be number.
988
935
989
- 71 | value: 42
990
- 72 | Incorrect:
991
- 73 | value: false
936
+ 49 | value: 42
937
+ 50 | Incorrect:
938
+ 51 | value: false
992
939
| ^^^^^
993
- 74 | schema:
994
- 75 | type: number
940
+ 52 | schema:
941
+ 53 | type: number
995
942
996
- referenced from applications/outputs/x-openapi-with-refs.yaml:68 :15 at #/paths/~1test/get/responses/202/content/application~1json
943
+ referenced from applications/outputs/x-openapi-with-refs.yaml:46 :15 at #/paths/~1test/get/responses/202/content/application~1json
997
944
998
945
Error was generated by the no-invalid-media-type-examples rule.
999
946
1000
947
1001
- [5] applications/outputs/x-openapi-with-refs.yaml:87 :26 at #/paths/~1test/get/responses/203/content/application~1json/examples/Incorrect/value
948
+ [5] applications/outputs/x-openapi-with-refs.yaml:65 :26 at #/paths/~1test/get/responses/203/content/application~1json/examples/Incorrect/value
1002
949
1003
950
Example value must conform to the schema: type must be array.
1004
951
1005
- 85 | - anything
1006
- 86 | Incorrect:
1007
- 87 | value: anything
952
+ 63 | - anything
953
+ 64 | Incorrect:
954
+ 65 | value: anything
1008
955
| ^^^^^^^^
1009
- 88 | schema:
1010
- 89 | type: array
956
+ 66 | schema:
957
+ 67 | type: array
1011
958
1012
- referenced from applications/outputs/x-openapi-with-refs.yaml:80 :15 at #/paths/~1test/get/responses/203/content/application~1json
959
+ referenced from applications/outputs/x-openapi-with-refs.yaml:58 :15 at #/paths/~1test/get/responses/203/content/application~1json
1013
960
1014
961
Error was generated by the no-invalid-media-type-examples rule.
1015
962
1016
963
1017
- [6] applications/outputs/x-openapi-with-refs.yaml:104 :19 at #/paths/~1test/get/responses/404/content/application~1json/x-type/AWrongRef
964
+ [6] applications/outputs/x-openapi-with-refs.yaml:75 :19 at #/paths/~1test/get/responses/404/content/application~1json/x-type/AWrongRef
1018
965
1019
966
Can't resolve $ref: ENOENT: no such file or directory './applications/outputs/wrong-file.yaml'
1020
967
1021
- 102 | x-type:
1022
- 103 | AWrongRef:
1023
- 104 | $ref: wrong-file.yaml
1024
- | ^^^^^^^^^^^^^^^^^^^^^
1025
- 105 | example:
1026
- 106 | AWrongRef: Accepts anything
968
+ 73 | x-type:
969
+ 74 | AWrongRef:
970
+ 75 | $ref: wrong-file.yaml
971
+ | ^^^^^^^^^^^^^^^^^^^^^
972
+ 76 | example:
973
+ 77 | AWrongRef: Accepts anything
1027
974
1028
975
Error was generated by the no-unresolved-refs rule.
1029
976
0 commit comments