Skip to content

Commit b2c3ff5

Browse files
"example" and "examples" cannot appear together
This affects the places where examples are used: parameter, header, and media-type objects for OAI#4598 and OAI#4776, ported from OAI#4912.
1 parent 3009102 commit b2c3ff5

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
@@ -951,6 +951,10 @@ $defs:
951951
type: object
952952
additionalProperties:
953953
$ref: '#/$defs/example-or-reference'
954+
not:
955+
required:
956+
- example
957+
- examples
954958

955959
map-of-strings:
956960
type: object

0 commit comments

Comments
 (0)