Skip to content

Commit 98f0a16

Browse files
author
Denis Laxalde
committed
Move "type" keyword on top of its section
The "type" keyword is arguably the most important one in the section.
1 parent dedc0ec commit 98f0a16

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

jsonschema-validation.xml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,22 @@
252252
</t>
253253

254254
<section title="Validation keywords for any instance type">
255+
<section title="type">
256+
<t>
257+
The value of this keyword MUST be either a string or an array. If it is
258+
an array, elements of the array MUST be strings and MUST be unique.
259+
</t>
260+
<t>
261+
String values MUST be one of the six primitive types
262+
("null", "boolean", "object", "array", "number", or "string"),
263+
or "integer" which matches any number with a zero fractional part.
264+
</t>
265+
<t>
266+
An instance validates if and only if the instance is in any of the sets listed
267+
for this keyword.
268+
</t>
269+
</section>
270+
255271
<section title="enum">
256272
<t>
257273
The value of this keyword MUST be an array. This array SHOULD have at
@@ -275,22 +291,6 @@
275291
equal to the value of the keyword.
276292
</t>
277293
</section>
278-
279-
<section title="type">
280-
<t>
281-
The value of this keyword MUST be either a string or an array. If it is
282-
an array, elements of the array MUST be strings and MUST be unique.
283-
</t>
284-
<t>
285-
String values MUST be one of the six primitive types
286-
("null", "boolean", "object", "array", "number", or "string"),
287-
or "integer" which matches any number with a zero fractional part.
288-
</t>
289-
<t>
290-
An instance validates if and only if the instance is in any of the sets listed
291-
for this keyword.
292-
</t>
293-
</section>
294294
</section>
295295

296296
<section title="Validation keywords for numeric instances (number and integer)">

0 commit comments

Comments
 (0)