diff --git a/jsonschema-validation.xml b/jsonschema-validation.xml index 8c90bdb2..0b04c77e 100644 --- a/jsonschema-validation.xml +++ b/jsonschema-validation.xml @@ -129,12 +129,13 @@ -
+
Two validation keywords, "pattern" and "patternProperties", use regular - expressions to express constraints. These regular expressions SHOULD - be valid according to the ECMA 262 regular - expression dialect. + expressions to express constraints, and the "regex" value for the + "format" keyword constrains the instance value to be a regular expression. + These regular expressions SHOULD be valid according to the + ECMA 262 regular expression dialect. Furthermore, given the high disparity in regular expression constructs support, @@ -896,6 +897,20 @@ RFC 6901, section 5
+
+ + This attribute applies to string instances. + + + A regular expression, which SHOULD be valid according to the + ECMA 262 regular expression dialect. + + + Implementations that validate formats MUST accept at least the subset of + ECMA 262 defined in the Regular Expressions + section of this specification, and SHOULD accept all valid ECMA 262 expressions. + +
diff --git a/schema.json b/schema.json index e5b848e7..859baf8a 100644 --- a/schema.json +++ b/schema.json @@ -118,6 +118,7 @@ "patternProperties": { "type": "object", "additionalProperties": { "$ref": "#" }, + "propertyNames": { "format": "regex" }, "default": {} }, "dependencies": {