Skip to content

Commit 25fe305

Browse files
authored
Merge pull request #4805 from OAI/mdk/4804-optional-discriminator-schema
v3.2: Schema updates for #4339
2 parents 22e5582 + 3a78835 commit 25fe305

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/schemas/validation/meta.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ $defs:
2929
additionalProperties:
3030
type: string
3131
type: object
32+
defaultMapping:
33+
type: string
3234
propertyName:
3335
type: string
3436
required:

tests/schema/pass/mega.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ components:
5555
propertyName: type
5656
mapping:
5757
foo: Foo
58+
defaultMapping: Bar
5859
x-extension: true
5960
anyOf:
6061
- $ref: "#/components/schemas/Foo"

0 commit comments

Comments
 (0)