Skip to content

Commit d0be809

Browse files
authoredFeb 4, 2022
docs: fix typo in discriminator documentation (#1885)
1 parent b3e0cb1 commit d0be809

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎docs/json-schema.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ From the perspective of validation result `discriminator` is defined as no-op (t
991991
There are following requirements and limitations of using `discriminator` keyword:
992992
- `mapping` in discriminator object is not supported.
993993
- [oneOf](#oneof) keyword must be present in the same schema.
994-
- discriminator property should be [requried](#required) either on the top level, as in the example, or in all `oneOf` subschemas.
994+
- discriminator property should be [required](#required) either on the top level, as in the example, or in all `oneOf` subschemas.
995995
- 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).
996996
- schema for discriminator property in each `oneOf` subschema must be [const](#const) or [enum](#enum), with unique values across all subschemas.
997997

0 commit comments

Comments
 (0)
Please sign in to comment.