Skip to content

Commit eb5ddee

Browse files
committed
Remove anything deemed controversial
1 parent 6ea52f2 commit eb5ddee

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

versions/3.1.1.md

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2702,10 +2702,6 @@ schema at `#/components/schemas/Cat` is "Cat". Therefore, when using
27022702
`discriminator`, _inline_ schemas will not be considered because they don't have
27032703
a "name".
27042704

2705-
Schema names are scoped to the OpenAPI document they are defined in. That means
2706-
if OpenAPI document "A" references a schema in OpenAPI document "B", the schema
2707-
names in "A" aren't considered when evaluating the referenced schema in "B".
2708-
27092705
##### Fixed Fields
27102706
Field Name | Type | Description
27112707
---|:---:|---
@@ -2776,11 +2772,6 @@ For example:
27762772
```yaml
27772773
components:
27782774
schemas:
2779-
MyResponseType:
2780-
oneOf:
2781-
- $ref: '#/components/schemas/Cat'
2782-
- $ref: '#/components/schemas/Dog'
2783-
- $ref: '#/components/schemas/Lizard'
27842775
Pet:
27852776
type: object
27862777
required:
@@ -2818,12 +2809,7 @@ components:
28182809
type: boolean
28192810
```
28202811
2821-
The `MyResponseType` schema will use the discriminator defined by the `Pet`
2822-
schema because it is part of the `Cat`, `Dog`, and `Lizard` schemas in the
2823-
`oneOf`. The behavior if not all schemas define a `discriminator` and they are
2824-
not all the same is undefined.
2825-
2826-
Validated against the `MyResponseType` schema, a payload like this:
2812+
Validated against the `Pet` schema, a payload like this:
28272813

28282814
```json
28292815
{

0 commit comments

Comments
 (0)