Skip to content

Commit 11aa7fe

Browse files
Schema for itemSchema Media Type Object field
Co-authored-by: Karen Etheridge <[email protected]>
1 parent a03bd49 commit 11aa7fe

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/schemas/validation/schema.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,8 @@ $defs:
505505
properties:
506506
schema:
507507
$dynamicRef: '#meta'
508+
itemSchema:
509+
$dynamicRef: '#meta'
508510
encoding:
509511
type: object
510512
additionalProperties:

tests/schema/pass/media-type-examples.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ paths:
3030
breed: Mixed
3131
frog:
3232
$ref: '#/components/examples/frog-example'
33+
application/jsonl:
34+
itemSchema:
35+
$ref: '#components/schemas/Pet'
3336
application/x-www-form-urlencoded:
3437
schema:
3538
type: object
@@ -94,4 +97,4 @@ paths:
9497
allowReserved: true
9598
forCoverage2:
9699
style: spaceDelimited
97-
explode: true
100+
explode: true

0 commit comments

Comments
 (0)