From c84763bd4d01535a1bd7ad585bf02c35dcf7b97c Mon Sep 17 00:00:00 2001 From: fpicalausa Date: Wed, 26 Jan 2022 13:40:18 +0900 Subject: [PATCH] docs: fix typo in discriminator documentation --- docs/json-schema.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/json-schema.md b/docs/json-schema.md index e94e3226b..ac2d82d84 100644 --- a/docs/json-schema.md +++ b/docs/json-schema.md @@ -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.