Skip to content

Commit 26febb0

Browse files
committed
refer to core regex section from patternProperties and pattern
1 parent 4b21ddd commit 26febb0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

specs/jsonschema-core.md

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

16841684
The value of `patternProperties` MUST be an object. Each property name of this
1685-
object SHOULD be a valid regular expression, according to the ECMA-262 regular
1686-
expression dialect. Each property value of this object MUST be a valid JSON
1687-
Schema.
1685+
object SHOULD be a valid regular expression as indicated in {{regex}}. Each
1686+
property value of this object MUST be a valid JSON Schema.
16881687

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

specs/jsonschema-validation.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,8 @@ Omitting this keyword has the same behavior as a value of 0.
208208
#### `pattern` {#pattern}
209209

210210
The value of this keyword MUST be a string. This string SHOULD be a valid
211-
regular expression, according to the ECMA-262 regular expression dialect.
211+
regular expression as indicated in {{jsonschema-core#regex}}.
212+
<!-- need to verify the {{section}} syntax works across files somehow -->
212213

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

0 commit comments

Comments
 (0)