Skip to content

Commit

Permalink
discriminator is now an object, not an attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRalphson committed Jun 12, 2018
1 parent b552f44 commit c945053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion versions/3.0.2.md
Original file line number Diff line number Diff line change
Expand Up @@ -2685,7 +2685,7 @@ 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.

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

Please sign in to comment.