We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3009102 commit f34083aCopy full SHA for f34083a
2 files changed
src/schemas/validation/schema.yaml
@@ -951,6 +951,10 @@ $defs:
951
type: object
952
additionalProperties:
953
$ref: '#/$defs/example-or-reference'
954
+ not:
955
+ required:
956
+ - example
957
+ - examples
958
959
map-of-strings:
960
tests/schema/fail/example-examples.yaml
@@ -0,0 +1,20 @@
1
+openapi: 3.1.1
2
+
3
+# this example should fail, as example cannot be used together with examples.
4
5
+info:
6
+ title: API
7
+ version: 1.0.0
8
+components:
9
+ parameters:
10
+ animal:
11
+ name: animal
12
+ in: header
13
+ schema: {}
14
+ example: bear
15
+ examples:
16
+ a mammalian example:
17
+ value: bear
18
19
20
0 commit comments