Skip to content

Commit

Permalink
Discriminator: Schema name only applies to OAS documents
Browse files Browse the repository at this point in the history
Co-authored-by: Mike Ralphson <mike.ralphson@gmail.com>
  • Loading branch information
jdesrosiers and MikeRalphson committed Jun 14, 2021
1 parent 19ea81c commit 4708f4a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions versions/3.1.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -2698,9 +2698,10 @@ When request bodies or response payloads may be one of a number of different sch

`discriminator` uses a schema's "name" to automatically map a property value to
a schema. The schema's "name" is the property name used when declaring the
schema as a component. For example, the name of the schema at
`#/components/schemas/Cat` is "Cat". Therefore, when using `discriminator`,
_inline_ schemas will not be considered because they don't have a "name".
schema as a component in an OpenAPI document. For example, the name of the
schema at `#/components/schemas/Cat` is "Cat". Therefore, when using
`discriminator`, _inline_ schemas will not be considered because they don't have
a "name".

##### Fixed Fields
Field Name | Type | Description
Expand Down

0 comments on commit 4708f4a

Please sign in to comment.