Skip to content

Commit 3156106

Browse files
fix: header and parameter objects cannot have examples with "content"
The examples instead belong with the media-type object found below.
1 parent 904873e commit 3156106

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/schemas/validation/schema.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,6 @@ $defs:
370370
- required:
371371
- content
372372
allOf:
373-
- $ref: '#/$defs/examples'
374373
- $ref: '#/$defs/specification-extensions'
375374
- if:
376375
properties:
@@ -403,6 +402,7 @@ $defs:
403402
default: false
404403
type: boolean
405404
allOf:
405+
- $ref: '#/$defs/examples'
406406
- $ref: '#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-path'
407407
- $ref: '#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-header'
408408
- $ref: '#/$defs/parameter/dependentSchemas/schema/$defs/styles-for-query'
@@ -785,7 +785,6 @@ $defs:
785785
type: boolean
786786
$ref: '#/$defs/examples'
787787
allOf:
788-
- $ref: '#/$defs/examples'
789788
- $ref: '#/$defs/specification-extensions'
790789
unevaluatedProperties: false
791790

0 commit comments

Comments
 (0)