Skip to content

Commit 408ec65

Browse files
committed
Move contains to "other" applicator section
1 parent f5f6dec commit 408ec65

File tree

1 file changed

+36
-34
lines changed

1 file changed

+36
-34
lines changed

jsonschema-core.xml

Lines changed: 36 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2330,40 +2330,6 @@
23302330
Implementations that do not support annotation collection MUST do so.
23312331
</t>
23322332
</section>
2333-
2334-
<section title="contains">
2335-
<t>
2336-
The value of this keyword MUST be a valid JSON Schema.
2337-
</t>
2338-
<t>
2339-
An array instance is valid against "contains" if at least one of
2340-
its elements is valid against the given schema. The subschema MUST be
2341-
applied to every array element even after the first match has
2342-
been found, in order to collect annotations for use by other keywords.
2343-
This is to ensure that all possible annotations are collected.
2344-
</t>
2345-
<t>
2346-
An object instance is valid against "contains" if at least one of
2347-
its property values is valid against the given schema. The subschema
2348-
MUST be applied to every property value even after the first match has
2349-
been found, in order to collect annotations for use by other keywords.
2350-
This is to ensure that all possible annotations are collected.
2351-
</t>
2352-
<t>
2353-
Logically, the validation result of applying the value subschema to each
2354-
item in the array or property in the object MUST be ORed with "false",
2355-
resulting in an overall validation result.
2356-
</t>
2357-
<t>
2358-
This keyword produces an annotation value which is an array of the
2359-
indexes or property names to which this keyword validates successfully
2360-
when applying its subschema, in ascending order. The value MAY be a
2361-
boolean "true" if the subschema validates successfully when applied to
2362-
every index or property value of the instance. The annotation MUST be
2363-
present if the instance array or object to which this keyword's schema
2364-
applies is empty.
2365-
</t>
2366-
</section>
23672333
</section>
23682334

23692335
<section title="Keywords for Applying Subschemas to Objects">
@@ -2458,6 +2424,42 @@
24582424
</t>
24592425
</section>
24602426
</section>
2427+
2428+
<section title="Other Keywords for Applying Subschemas">
2429+
<section title="contains">
2430+
<t>
2431+
The value of this keyword MUST be a valid JSON Schema.
2432+
</t>
2433+
<t>
2434+
An array instance is valid against "contains" if at least one of
2435+
its elements is valid against the given schema. The subschema MUST be
2436+
applied to every array element even after the first match has
2437+
been found, in order to collect annotations for use by other keywords.
2438+
This is to ensure that all possible annotations are collected.
2439+
</t>
2440+
<t>
2441+
An object instance is valid against "contains" if at least one of
2442+
its property values is valid against the given schema. The subschema
2443+
MUST be applied to every property value even after the first match has
2444+
been found, in order to collect annotations for use by other keywords.
2445+
This is to ensure that all possible annotations are collected.
2446+
</t>
2447+
<t>
2448+
Logically, the validation result of applying the value subschema to each
2449+
item in the array or property in the object MUST be ORed with "false",
2450+
resulting in an overall validation result.
2451+
</t>
2452+
<t>
2453+
This keyword produces an annotation value which is an array of the
2454+
indexes or property names to which this keyword validates successfully
2455+
when applying its subschema, in ascending order. The value MAY be a
2456+
boolean "true" if the subschema validates successfully when applied to
2457+
every index or property value of the instance. The annotation MUST be
2458+
present if the instance array or object to which this keyword's schema
2459+
applies is empty.
2460+
</t>
2461+
</section>
2462+
</section>
24612463
</section>
24622464
</section>
24632465

0 commit comments

Comments
 (0)