Skip to content

Commit ea6bfc2

Browse files
committed
refer to core regex section from patternProperties and pattern
1 parent 258d721 commit ea6bfc2

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
@@ -1669,9 +1669,8 @@ The presence of this keyword affects the behaviors of
16691669
##### `patternProperties`
16701670

16711671
The value of `patternProperties` MUST be an object. Each property name of this
1672-
object SHOULD be a valid regular expression, according to the ECMA-262 regular
1673-
expression dialect. Each property value of this object MUST be a valid JSON
1674-
Schema.
1672+
object SHOULD be a valid regular expression as indicated in {{regex}}. Each
1673+
property value of this object MUST be a valid JSON Schema.
16751674

16761675
Validation succeeds if, for each instance name that matches any regular
16771676
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
@@ -209,7 +209,8 @@ Omitting this keyword has the same behavior as a value of 0.
209209
#### `pattern` {#pattern}
210210

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

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

0 commit comments

Comments
 (0)