From a1d596f46e327f2599dd69631c9aaeac4d2af3dc Mon Sep 17 00:00:00 2001 From: Greg Dennis Date: Sun, 20 Oct 2024 19:57:44 +1300 Subject: [PATCH 1/5] refer to core regex section from patternProperties and pattern --- specs/jsonschema-core.md | 5 ++--- specs/jsonschema-validation.md | 3 ++- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/specs/jsonschema-core.md b/specs/jsonschema-core.md index f50726d3..746a8813 100644 --- a/specs/jsonschema-core.md +++ b/specs/jsonschema-core.md @@ -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 diff --git a/specs/jsonschema-validation.md b/specs/jsonschema-validation.md index 0151a2ad..07b983a2 100644 --- a/specs/jsonschema-validation.md +++ b/specs/jsonschema-validation.md @@ -210,7 +210,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}}. + A string instance is considered valid if the regular expression matches the instance successfully. Recall: regular expressions are not implicitly anchored. From 85e38043189d6f3bc9c3c5d88a9150ff90d258cf Mon Sep 17 00:00:00 2001 From: Greg Dennis Date: Tue, 22 Oct 2024 21:11:33 +1300 Subject: [PATCH 2/5] use standard link syntax for cross-file references --- specs/jsonschema-validation.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specs/jsonschema-validation.md b/specs/jsonschema-validation.md index 07b983a2..4fc3b3c4 100644 --- a/specs/jsonschema-validation.md +++ b/specs/jsonschema-validation.md @@ -210,8 +210,7 @@ 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 as indicated in {{jsonschema-core#regex}}. - +regular expression as indicated in [JSON Schema Core, section 6.3](./jsonschema-core.md#regex). A string instance is considered valid if the regular expression matches the instance successfully. Recall: regular expressions are not implicitly anchored. From a98a84d12d225873641895eb05ea7a0c9236c816 Mon Sep 17 00:00:00 2001 From: Greg Dennis Date: Tue, 22 Oct 2024 21:12:11 +1300 Subject: [PATCH 3/5] lint these lines --- specs/jsonschema-validation.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specs/jsonschema-validation.md b/specs/jsonschema-validation.md index 4fc3b3c4..3d2e21f2 100644 --- a/specs/jsonschema-validation.md +++ b/specs/jsonschema-validation.md @@ -210,7 +210,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 as indicated in [JSON Schema Core, section 6.3](./jsonschema-core.md#regex). +regular expression as indicated in +[JSON Schema Core, section 6.3](./jsonschema-core.md#regex). A string instance is considered valid if the regular expression matches the instance successfully. Recall: regular expressions are not implicitly anchored. From 1cf5783da61c338c89acbc2cf4b54be03d52198c Mon Sep 17 00:00:00 2001 From: Greg Dennis Date: Sat, 30 Nov 2024 18:24:05 +1300 Subject: [PATCH 4/5] edit cross-doc link; add comment --- specs/jsonschema-validation.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specs/jsonschema-validation.md b/specs/jsonschema-validation.md index 3d2e21f2..49489024 100644 --- a/specs/jsonschema-validation.md +++ b/specs/jsonschema-validation.md @@ -211,7 +211,8 @@ Omitting this keyword has the same behavior as a value of 0. The value of this keyword MUST be a string. This string SHOULD be a valid regular expression as indicated in -[JSON Schema Core, section 6.3](./jsonschema-core.md#regex). +[JSON Schema Core, section 6.3](./jsonschema-core.html#regex). + A string instance is considered valid if the regular expression matches the instance successfully. Recall: regular expressions are not implicitly anchored. From 5b217f181ecddb1b59bbe41caba964999a61111f Mon Sep 17 00:00:00 2001 From: Greg Dennis Date: Sun, 2 Feb 2025 13:26:24 +1300 Subject: [PATCH 5/5] use .md extension --- specs/jsonschema-validation.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/jsonschema-validation.md b/specs/jsonschema-validation.md index 49489024..44196e22 100644 --- a/specs/jsonschema-validation.md +++ b/specs/jsonschema-validation.md @@ -211,7 +211,7 @@ Omitting this keyword has the same behavior as a value of 0. The value of this keyword MUST be a string. This string SHOULD be a valid regular expression as indicated in -[JSON Schema Core, section 6.3](./jsonschema-core.html#regex). +[JSON Schema Core, section 6.3](./jsonschema-core.md#regex). A string instance is considered valid if the regular expression matches the