Skip to content

Commit 80441f7

Browse files
committed
remove object instances as target for contains
1 parent 50893ed commit 80441f7

File tree

1 file changed

+14
-15
lines changed

1 file changed

+14
-15
lines changed

jsonschema-core.md

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1956,11 +1956,11 @@ keyword's annotation causes `contains` to assume a minimum value of 1.
19561956

19571957
The value of this keyword MUST be a valid JSON Schema.
19581958

1959-
This keyword applies its subschema to array elements or object property values.
1959+
This keyword applies its subschema to array elements.
19601960

1961-
An instance is valid against `contains` if the number of elements or property
1962-
values that are valid against its subschema is with the inclusive range of the
1963-
minimum and (if any) maximum number of occurrences.
1961+
An instance is valid against `contains` if the number of elements that are valid
1962+
against its subschema is with the inclusive range of the minimum and (if any)
1963+
maximum number of occurrences.
19641964

19651965
The maximum number of occurrences is provided by the `maxContains` keyword
19661966
within the same schema object as `contains`. If `maxContains` is absent, the
@@ -1970,24 +1970,23 @@ The minimum number of occurrences is provided by the `minContains` keyword
19701970
within the same schema object as `contains`. If `minContains` is absent, the
19711971
minimum number of occurrences MUST be 1.
19721972

1973-
Implementations MAY implement the dependency on `minContians` and `maxContains`
1973+
Implementations MAY implement the dependency on `minContains` and `maxContains`
19741974
by inspecting their values rather than reading annotations produced by those
19751975
keywords.
19761976

1977-
This keyword produces an annotation value which is an array of the indexes or
1978-
property names to which this keyword validates successfully when applying its
1979-
subschema, in ascending order. The value MAY be a boolean `true` if the
1980-
subschema validates successfully when applied to every index or property value
1981-
of the instance. The annotation MUST be present if the instance array or object
1982-
to which this keyword's schema applies is empty.
1977+
This keyword produces an annotation value which is an array of the indexes to
1978+
which this keyword validates successfully when applying its subschema, in
1979+
ascending order. The value MAY be a boolean `true` if the subschema validates
1980+
successfully when applied to every index of the instance. The annotation MUST be
1981+
present if the instance array or object to which this keyword's schema applies
1982+
is empty.
19831983

19841984
This annotation affects the behavior of `unevaluatedItems` in the Unevaluated
19851985
vocabulary.
19861986

1987-
The subschema MUST be applied to every array element or object property value
1988-
even after the first match has been found, in order to collect annotations for
1989-
use by other keywords. This is to ensure that all possible annotations are
1990-
collected.
1987+
The subschema MUST be applied to every array element even after the first match
1988+
has been found, in order to collect annotations for use by other keywords. This
1989+
is to ensure that all possible annotations are collected.
19911990

19921991
## A Vocabulary for Unevaluated Locations
19931992

0 commit comments

Comments
 (0)