Skip to content

Commit a1d596f

Browse files
committed
refer to core regex section from patternProperties and pattern
1 parent 09d79cf commit a1d596f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

specs/jsonschema-core.md

Lines changed: 2 additions & 3 deletions
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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,8 @@ 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 {{jsonschema-core#regex}}.
214+
<!-- need to verify the {{section}} syntax works across files somehow -->
214215

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

0 commit comments

Comments
 (0)