Skip to content

Commit 4708f4a

Browse files
Discriminator: Schema name only applies to OAS documents
Co-authored-by: Mike Ralphson <[email protected]>
1 parent 19ea81c commit 4708f4a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

versions/3.1.1.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -2698,9 +2698,10 @@ When request bodies or response payloads may be one of a number of different sch
26982698

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

27052706
##### Fixed Fields
27062707
Field Name | Type | Description

0 commit comments

Comments
 (0)