You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/json-schema.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -992,7 +992,7 @@ There are following requirements and limitations of using `discriminator` keywor
992
992
- `mapping` in discriminator object is not supported.
993
993
- [oneOf](#oneof) keyword must be present in the same schema.
994
994
- discriminator property should be [requried](#required) either on the top level, as in the example, or in all `oneOf` subschemas.
995
-
- each `oneOf` subschema must have [properties](#properties) keyword with discriminator property.
995
+
- 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).
996
996
- schema for discriminator property in each `oneOf` subschema must be [const](#const) or [enum](#enum), with unique values across all subschemas.
997
997
998
998
Not meeting any of these requirements would fail schema compilation.
0 commit comments