Open
Description
locale
: <string>. specify the locale in use for the other keywords in this vocabulary. always evaluates to true. produces an annotation of its own value. when not provided, default value is implementation-defined (but likely the locale of the current runtime environment)caseSensitive
: <boolean>. always evaluates to true. produces an annotation of its own value. may be derived from the locale if not provided.sorted
: <boolean>. only relevant when the instance is an array; only looks at the array elements that are strings (items of other data types are ignored). takes the values oflocale
andcaseSensitive
into account. evaluates to true when the instance array is(n't) sorted.maximum
,minimum
,exclusiveMaximum
,exclusiveMinimum
maximumString
,minimumString
,exclusiveMaximumString
,exclusiveMInimumString
: <string>. only relevant when the instance is a string. takes the values oflocale
andcaseSensitive
into account. evaluates to true when the instance string successfully compares to the keyword string.
(yes, some keyword names overlap with the "validation" vocabulary; this should be okay as we can infer the vocabulary based on instance and keyword data type. That is, if both vocabularies are in use, both vocabularies will look at these keywords and attempt to evaluate them, but the vocabulary(ies) with the mismatched data type(s) will do nothing.)
When considering string ordering, we do NOT use the unicode codepoint order, but rather we respect the sorting and collation semantics of the stated locale -- see https://www.unicode.org/reports/tr10/. case-sensitive sorting will use Unicode Collation Level 4. case-insensitive sorting will use Unicode Collation Level 2.