Skip to content

Commit 7479425

Browse files
committed
refer to core regex section from patternProperties and pattern
1 parent 08943f7 commit 7479425

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

jsonschema-core.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1694,9 +1694,8 @@ Omitting this keyword has the same assertion behavior as an empty object.
16941694
##### `patternProperties`
16951695

16961696
The value of `patternProperties` MUST be an object. Each property name of this
1697-
object SHOULD be a valid regular expression, according to the ECMA-262 regular
1698-
expression dialect. Each property value of this object MUST be a valid JSON
1699-
Schema.
1697+
object SHOULD be a valid regular expression as indicated in {{regex}}. Each
1698+
property value of this object MUST be a valid JSON Schema.
17001699

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

jsonschema-validation.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,8 @@ Omitting this keyword has the same behavior as a value of 0.
207207
#### `pattern` {#pattern}
208208

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

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

0 commit comments

Comments
 (0)