Skip to content

Commit c6347d6

Browse files
authored
Merge pull request #1083 from jdesrosiers/type-rewording
Improve wording for the type keyword in the spec
2 parents 0e08f03 + 28b236d commit c6347d6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

jsonschema-validation.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,11 @@
225225
or "integer" which matches any number with a zero fractional part.
226226
</t>
227227
<t>
228-
An instance validates if and only if the instance is in any of the sets listed
229-
for this keyword.
228+
If the value of "type" is a string, then an instance validates successfully if
229+
its type matches the type represented by the value of the string.
230+
231+
If the value of "type" is an array, then an instance validates successfully if
232+
its type matches any of the types indicated by the strings in the array.
230233
</t>
231234
</section>
232235

0 commit comments

Comments
 (0)