Skip to content

Commit

Permalink
chore: apply #909
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni committed Dec 4, 2023
1 parent 3cb5550 commit 736b5e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/asyncapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1943,7 +1943,7 @@ While composition offers model extensibility, it does not imply a hierarchy betw
To support polymorphism, AsyncAPI Specification adds the support of the `discriminator` field.
When used, the `discriminator` will be the name of the property used to decide which schema definition is used to validate the structure of the model.
As such, the `discriminator` field MUST be a required field.
There are are two ways to define the value of a discriminator for an inheriting instance.
There are two ways to define the value of a discriminator for an inheriting instance.

- Use the schema's name.
- Override the schema's name by overriding the property with a new value. If exists, this takes precedence over the schema's name.
Expand Down

0 comments on commit 736b5e1

Please sign in to comment.