We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 904873e commit dc5dad6Copy full SHA for dc5dad6
2 files changed
src/schemas/validation/schema.yaml
@@ -1089,6 +1089,10 @@ $defs:
1089
type: object
1090
additionalProperties:
1091
$ref: '#/$defs/example-or-reference'
1092
+ not:
1093
+ required:
1094
+ - example
1095
+ - examples
1096
1097
map-of-strings:
1098
tests/schema/fail/example-examples.yaml
@@ -0,0 +1,20 @@
1
+openapi: 3.2.0
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
+ dataValue: bear
18
19
20
0 commit comments