Skip to content
Permalink
Browse files

Merge pull request #1604 from MikeRalphson/discriminator-attribute

discriminator is now an object, not an attribute
  • Loading branch information...
webron committed Jul 2, 2018
2 parents 9fe3862 + c945053 commit cdaab0ded531a9d56e258a7999ccb6147df42f53
Showing with 1 addition and 1 deletion.
  1. +1 −1 versions/3.0.2.md
@@ -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:

0 comments on commit cdaab0d

Please sign in to comment.
You can’t perform that action at this time.