Skip to content

Commit 5a27cfd

Browse files
committed
Discriminator Object
1 parent 9f1f1eb commit 5a27cfd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

versions/3.0.4.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3097,9 +3097,9 @@ The expectation now is that a property with name `petType` _MUST_ be present in
30973097
}
30983098
```
30993099

3100-
Will indicate that the `Cat` schema is expected to match this payload.
3100+
will indicate that the `Cat` schema is expected to match this payload.
31013101

3102-
In scenarios where the value of the discriminator field does not match the schema name or implicit mapping is not possible, an optional `mapping` definition MAY be used:
3102+
In scenarios where the value of the `discriminator` field does not match the schema name or implicit mapping is not possible, an optional `mapping` definition MAY be used:
31033103

31043104
```yaml
31053105
MyResponseType:
@@ -3166,7 +3166,7 @@ Validated against the `Pet` schema, a payload like this:
31663166
```json
31673167
{
31683168
"petType": "Cat",
3169-
"name": "misty"
3169+
"name": "Misty"
31703170
}
31713171
```
31723172

0 commit comments

Comments
 (0)