Skip to content

Commit 85f8eb0

Browse files
committed
"minimum" is inclusive by default, not exclusive
1 parent 1746c72 commit 85f8eb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ <h4>Is name required?</h4>
5656
<script src="https://gist.github.com/4460756.js"></script>
5757

5858
<h4>Can price be 0?</h4>
59-
<p>According to Acme's docs, there are no free products. In JSON schema a number can have a minimum, and by default minimum is exclusive of the minimum value. Therefore we can update our schema with <em>price</em>:</p>
59+
<p>According to Acme's docs, there are no free products. In JSON schema a number can have a minimum. By default this minimum is inclusive, so we need to specify <em>exclusiveMinimum</em>. Therefore we can update our schema with <em>price</em>:</p>
6060

6161
<script src="https://gist.github.com/4460762.js"></script>
6262

0 commit comments

Comments
 (0)