Skip to content

Commit

Permalink
Apply suggestions from PR review
Browse files Browse the repository at this point in the history
Co-authored-by: Jeremy Fiel <[email protected]>
  • Loading branch information
mikekistler and jeremyfiel authored Feb 11, 2025
1 parent 6c91a0b commit 9faf031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oas.md
Original file line number Diff line number Diff line change
Expand Up @@ -3406,7 +3406,7 @@ However, the exact nature of such conversions are implementation-defined.

When the discriminating property is defined as optional, the `discriminator` field must include a `default` field that specifies a schema that is expected to validate the structure of the model when the discriminating property is not present in the payload. This allows the schema to still be validated correctly even if the discriminator property is missing.

The primary use case for an optional discriminating property is to allow a schema to be extended with a discriminator without breaking existing clients that do not provide the discriminator property.
The primary use case for an optional discriminating property is to allow a schema to be extended with a discriminator without breaking existing clients that do not provide the discriminating property.

Typically the schema specified in the `default` field will specify that the discriminating property is not present, e.g.

Expand Down

0 comments on commit 9faf031

Please sign in to comment.