Skip to content

Commit 2d6f968

Browse files
committed
Recommended against 0 as divisibleBy
1 parent ecf6c82 commit 2d6f968

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

draft-zyp-json-schema-03.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ The dependency value can take one of two forms:
426426
<t>Additional custom formats MAY be created. These custom formats MAY be expressed as an URI, and this URI MAY reference a schema of that format.</t>
427427
</section>
428428
<section title="divisibleBy">
429-
<t>This attribute defines what value the number instance must be divisible by with no remainder. (The result of the division must be an integer.)</t>
429+
<t>This attribute defines what value the number instance must be divisible by with no remainder (the result of the division must be an integer.) The value of this attribute SHOULD NOT be 0.</t>
430430
</section>
431431
<section title="disallow">
432432
<t>This attribute takes the same values as the "type" attribute, however if the instance matches the type or if this value is an array and the instance matches any type or schema in the array, then this instance is not valid.</t>

0 commit comments

Comments
 (0)