Skip to content

Commit b23b791

Browse files
authored
Merge pull request #1547 from json-schema-org/gregsdennis/regex-clarification
refer to core regex section from patternProperties and pattern
2 parents a091943 + 5b217f1 commit b23b791

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

specs/jsonschema-core.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -1686,9 +1686,8 @@ The presence of this keyword affects the behaviors of
16861686
##### `patternProperties`
16871687

16881688
The value of `patternProperties` MUST be an object. Each property name of this
1689-
object SHOULD be a valid regular expression, according to the ECMA-262 regular
1690-
expression dialect. Each property value of this object MUST be a valid JSON
1691-
Schema.
1689+
object SHOULD be a valid regular expression as indicated in {{regex}}. Each
1690+
property value of this object MUST be a valid JSON Schema.
16921691

16931692
Validation succeeds if, for each instance name that matches any regular
16941693
expressions that appear as a property name in this keyword's value, the child

specs/jsonschema-validation.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,9 @@ Omitting this keyword has the same behavior as a value of 0.
210210
#### `pattern` {#pattern}
211211

212212
The value of this keyword MUST be a string. This string SHOULD be a valid
213-
regular expression, according to the ECMA-262 regular expression dialect.
213+
regular expression as indicated in
214+
[JSON Schema Core, section 6.3](./jsonschema-core.md#regex).
215+
<!-- This link assume a publish path, which we don't know yet. -->
214216

215217
A string instance is considered valid if the regular expression matches the
216218
instance successfully. Recall: regular expressions are not implicitly anchored.

0 commit comments

Comments
 (0)