@@ -554,64 +554,7 @@ run \`redocly lint --generate-ignore-file\` to add all problems to the ignore fi
554
554
"
555
555
`;
556
556
557
- exports[`lint > openapi with x-types inside parameters 1`] = `
558
- "validating applications/resources/openapi-with-x-types-inside-parameters.yaml...
559
- [1] applications/resources/openapi-with-x-types-inside-parameters.yaml:16:20 at #/paths/~1test/get/parameters/1/example
560
-
561
- Example value must conform to the schema: type must be string.
562
-
563
- 14 | in: query
564
- 15 | x-type: string
565
- 16 | example: 42
566
- | ^^
567
- 17 | - name: lacks-x-type
568
- 18 | in: query
569
-
570
- referenced from applications/resources/openapi-with-x-types-inside-parameters.yaml:13:11 at #/paths/~1test/get/parameters/1
571
-
572
- Error was generated by the no-invalid-parameter-examples rule.
573
-
574
-
575
- [2] applications/resources/openapi-with-x-types-inside-parameters.yaml:17:11 at #/paths/~1test/get/parameters/2
576
-
577
- Must contain at least one of the following fields: schema, content, x-type.
578
-
579
- 15 | x-type: string
580
- 16 | example: 42
581
- 17 | - name: lacks-x-type
582
- | ^^^^^^^^^^^^^^^^^^
583
- 18 | in: query
584
- | ^^^^^^^^^
585
- 19 | - $ref: '#/components/parameters/Referenced'
586
- 20 | components:
587
-
588
- Error was generated by the spec rule.
589
-
590
-
591
- [3] applications/resources/openapi-with-x-types-inside-parameters.yaml:26:16 at #/components/parameters/Referenced/example
592
-
593
- Example value must conform to the schema: type must be string.
594
-
595
- 24 | in: query
596
- 25 | x-type: string
597
- 26 | example: true
598
- | ^^^^
599
- 27 |
600
-
601
- referenced from applications/resources/openapi-with-x-types-inside-parameters.yaml:23:7 at #/components/parameters/Referenced
602
-
603
- Error was generated by the no-invalid-parameter-examples rule.
604
-
605
-
606
- applications/resources/openapi-with-x-types-inside-parameters.yaml: validated in <test >ms
607
-
608
- ❌ Validation failed with 3 errors.
609
- run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
610
-
611
- "
612
- `;
613
-
614
- exports[`lint > openapi writeOnly and readOnly fields 1`] = `
557
+ exports[`lint > openapi with writeOnly and readOnly fields 1`] = `
615
558
"validating applications/resources/openapi-with-writeonly-and-readonly.yaml...
616
559
WARNING! Got an 'undefined' type.
617
560
[1] applications/resources/openapi-with-writeonly-and-readonly.yaml:21:23 at #/paths/~1test/get/requestBody/content/application~1json/examples/Incorrect/value/id
@@ -706,6 +649,63 @@ run \`redocly lint --generate-ignore-file\` to add all problems to the ignore fi
706
649
"
707
650
`;
708
651
652
+ exports[`lint > openapi with x-types inside parameters 1`] = `
653
+ "validating applications/resources/openapi-with-x-types-inside-parameters.yaml...
654
+ [1] applications/resources/openapi-with-x-types-inside-parameters.yaml:16:20 at #/paths/~1test/get/parameters/1/example
655
+
656
+ Example value must conform to the schema: type must be string.
657
+
658
+ 14 | in: query
659
+ 15 | x-type: string
660
+ 16 | example: 42
661
+ | ^^
662
+ 17 | - name: lacks-x-type
663
+ 18 | in: query
664
+
665
+ referenced from applications/resources/openapi-with-x-types-inside-parameters.yaml:13:11 at #/paths/~1test/get/parameters/1
666
+
667
+ Error was generated by the no-invalid-parameter-examples rule.
668
+
669
+
670
+ [2] applications/resources/openapi-with-x-types-inside-parameters.yaml:17:11 at #/paths/~1test/get/parameters/2
671
+
672
+ Must contain at least one of the following fields: schema, content, x-type.
673
+
674
+ 15 | x-type: string
675
+ 16 | example: 42
676
+ 17 | - name: lacks-x-type
677
+ | ^^^^^^^^^^^^^^^^^^
678
+ 18 | in: query
679
+ | ^^^^^^^^^
680
+ 19 | - $ref: '#/components/parameters/Referenced'
681
+ 20 | components:
682
+
683
+ Error was generated by the spec rule.
684
+
685
+
686
+ [3] applications/resources/openapi-with-x-types-inside-parameters.yaml:26:16 at #/components/parameters/Referenced/example
687
+
688
+ Example value must conform to the schema: type must be string.
689
+
690
+ 24 | in: query
691
+ 25 | x-type: string
692
+ 26 | example: true
693
+ | ^^^^
694
+ 27 |
695
+
696
+ referenced from applications/resources/openapi-with-x-types-inside-parameters.yaml:23:7 at #/components/parameters/Referenced
697
+
698
+ Error was generated by the no-invalid-parameter-examples rule.
699
+
700
+
701
+ applications/resources/openapi-with-x-types-inside-parameters.yaml: validated in <test >ms
702
+
703
+ ❌ Validation failed with 3 errors.
704
+ run \`redocly lint --generate-ignore-file\` to add all problems to the ignore file.
705
+
706
+ "
707
+ `;
708
+
709
709
exports[`lint > x-types described with x-types themselves 1`] = `
710
710
"validating applications/resources/x-types-described-with-x-types.yaml...
711
711
WARNING! Circular reference detected: #/Or
0 commit comments