disallow : String | Array<String | Schema>
disallow
String | Array<String | Schema>Validation succeeds if the type of the instance does not match the type represented by the given type, or does not match at least one of the given types.
| Value |
This keyword is opposite of the type keyword. If the instance is set to either a string that corresponds to one of the supported types, or any instance matching the values in a non-empty array of unique strings or schemas that correspond to one of the supported types, the instance is invalid
Hint: Use the jsonschema metaschema and jsonschema lint commands to catch keywords set to invalid values
|
|---|---|
| Kind | Assertion |
| Applies To | Any |
| Base Dialect | Draft 3 |
| Changed In | None |
| Introduced In | Draft 1 |
| Vocabulary | Core |
| Specification | https://json-schema.org/draft-03/draft-zyp-json-schema-03.pdf#5.25 |
| Metaschema | http://json-schema.org/draft-03/schema# |
| Official Tests | draft3/disallow.json |
| Default | None |
| Annotation | None |
| Affected By | None |
| Affects | None |
We are looking for contributors to help us fully expand the documentation to cover this dialect. If that sounds like you, send a pull request on GitHub!