pattern : String

pattern

String

A string instance is considered valid if the regular expression matches the instance successfully.

Value This keyword must be set to a valid ECMA-262 regular expression
Kind Assertion
Applies To String
Dialect 2019-09
Changed In Draft 4
Introduced In Draft 1
Vocabulary Validation
Specification https://json-schema.org/draft/2019-09/draft-handrews-json-schema-validation-02#rfc.section.6.3.3
Metaschema https://json-schema.org/draft/2019-09/meta/validation
Official Tests
Default ".*"
Annotation None
Affected By None
Affects None
Also See