Skip to content

Commit 65fc694

Browse files
authored
Merge pull request #3752 from handrews/disc-strings-320
Non-string discriminator values (3.2.0 port of #3728)
2 parents 8fa2710 + 6ce4b37 commit 65fc694

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

versions/3.2.0.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2708,7 +2708,7 @@ Field Name | Type | Description
27082708

27092709
This object MAY be extended with [Specification Extensions](#specificationExtensions).
27102710

2711-
The discriminator object is legal only when using one of the composite keywords `oneOf`, `anyOf`, `allOf`.
2711+
The discriminator object is legal only when using one of the composite keywords `oneOf`, `anyOf`, `allOf`. Note that because the discriminating property's value is used as a component name and/or as the key in the `mapping` object, the behavior of any value that is not a string is undefined.
27122712

27132713
In OAS 3.0, a response payload MAY be described to be exactly one of any number of types:
27142714

0 commit comments

Comments
 (0)