Skip to content

Commit 334cf53

Browse files
authored
Merge pull request #1714 from MikeRalphson/discrim-ext
Allow specification extensions in discriminator object
2 parents 3083f1a + e985f13 commit 334cf53

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

versions/3.1.0.md

+2
Original file line numberDiff line numberDiff line change
@@ -2686,6 +2686,8 @@ Field Name | Type | Description
26862686
<a name="propertyName"></a>propertyName | `string` | **REQUIRED**. The name of the property in the payload that will hold the discriminator value.
26872687
<a name="discriminatorMapping"></a> mapping | Map[`string`, `string`] | An object to hold mappings between payload values and schema names or references.
26882688

2689+
This object MAY be extended with [Specification Extensions](#specificationExtensions).
2690+
26892691
The discriminator object is legal only when using one of the composite keywords `oneOf`, `anyOf`, `allOf`.
26902692

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

0 commit comments

Comments
 (0)