divisibleBy : Number
divisibleBy
NumberA numeric instance is valid only if division by this keyword’s value results in an integer.
| Value |
This keyword must be set to a number that is not equal to zero
Hint: Use the jsonschema metaschema and jsonschema lint commands to catch keywords set to invalid values
|
|---|---|
| Kind | Assertion |
| Applies To | Number |
| Base Dialect | Draft 3 |
| Changed In | Draft 4 |
| Introduced In | Draft 3 |
| Vocabulary | Core |
| Specification | https://json-schema.org/draft-03/draft-zyp-json-schema-03.pdf#5.24 |
| Metaschema | http://json-schema.org/draft-03/schema# |
| Official Tests | draft3/divisibleBy.json |
| Default |
1
|
| Annotation | None |
| Affected By | None |
| Affects | None |
| Also See |
|
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!