Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions specs/jsonschema-core.md
Original file line number Diff line number Diff line change
Expand Up @@ -1686,9 +1686,8 @@ The presence of this keyword affects the behaviors of
##### `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
4 changes: 3 additions & 1 deletion specs/jsonschema-validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,9 @@ 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
[JSON Schema Core, section 6.3](./jsonschema-core.md#regex).
<!-- This link assume a publish path, which we don't know yet. -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a relative path, so it shouldn't matter where it's published in the end as long as they are published in the same relative location.


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