Skip to content

Commit 997d12a

Browse files
"example" and "examples" cannot appear together
This affects the places where examples are used: parameter, header, and media-type objects for #4578 and #4776.
1 parent 904873e commit 997d12a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/schemas/validation/schema.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1089,6 +1089,10 @@ $defs:
10891089
type: object
10901090
additionalProperties:
10911091
$ref: '#/$defs/example-or-reference'
1092+
not:
1093+
required:
1094+
- example
1095+
- examples
10921096

10931097
map-of-strings:
10941098
type: object

0 commit comments

Comments
 (0)