Skip to content

Commit 524a7f4

Browse files
authored
Merge pull request #3751 from handrews/disc-strings-311
Non-string discriminator values (3.1.1 port of #3728)
2 parents 2ad9ff9 + c7f4b9b commit 524a7f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

versions/3.1.1.md

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

27642764
This object MAY be extended with [Specification Extensions](#specificationExtensions).
27652765

2766-
The discriminator object is legal only when using one of the composite keywords `oneOf`, `anyOf`, `allOf`.
2766+
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.
27672767

27682768
In OAS 3.x, a response payload MAY be described to be exactly one of any number of types:
27692769

0 commit comments

Comments
 (0)