Skip to content

Commit

Permalink
docs: fix typo in discriminator documentation (#1885)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpicalausa committed Feb 4, 2022
1 parent b3e0cb1 commit d0be809
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/json-schema.md
Expand Up @@ -991,7 +991,7 @@ From the perspective of validation result `discriminator` is defined as no-op (t
There are following requirements and limitations of using `discriminator` keyword:
- `mapping` in discriminator object is not supported.
- [oneOf](#oneof) keyword must be present in the same schema.
- discriminator property should be [requried](#required) either on the top level, as in the example, or in all `oneOf` subschemas.
- discriminator property should be [required](#required) either on the top level, as in the example, or in all `oneOf` subschemas.
- each `oneOf` subschema must have [properties](#properties) keyword with discriminator property. The subschemas should be either inlined or included as direct references (only `$ref` keyword without any extra keywords is allowed).
- schema for discriminator property in each `oneOf` subschema must be [const](#const) or [enum](#enum), with unique values across all subschemas.

Expand Down

0 comments on commit d0be809

Please sign in to comment.