Skip to content

Commit

Permalink
Merge pull request #1714 from MikeRalphson/discrim-ext
Browse files Browse the repository at this point in the history
Allow specification extensions in discriminator object
  • Loading branch information
webron authored Oct 18, 2018
2 parents 3083f1a + e985f13 commit 334cf53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions versions/3.1.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -2686,6 +2686,8 @@ Field Name | Type | Description
<a name="propertyName"></a>propertyName | `string` | **REQUIRED**. The name of the property in the payload that will hold the discriminator value.
<a name="discriminatorMapping"></a> mapping | Map[`string`, `string`] | An object to hold mappings between payload values and schema names or references.

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

The discriminator object is legal only when using one of the composite keywords `oneOf`, `anyOf`, `allOf`.

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

0 comments on commit 334cf53

Please sign in to comment.