Skip to content

Commit

Permalink
refer to core regex section from patternProperties and pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
gregsdennis committed Oct 20, 2024
1 parent 51285b3 commit 037ad82
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions jsonschema-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -1694,9 +1694,8 @@ Omitting this keyword has the same assertion behavior as an empty object.
##### `patternProperties`

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

Validation succeeds if, for each instance name that matches any regular
expressions that appear as a property name in this keyword's value, the child
Expand Down
3 changes: 2 additions & 1 deletion jsonschema-validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,8 @@ Omitting this keyword has the same behavior as a value of 0.
#### `pattern` {#pattern}

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

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

0 comments on commit 037ad82

Please sign in to comment.