Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit bba80a7

Browse files
use propertyNames to restrict $-keywords
1 parent 154b863 commit bba80a7

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

‎specs/meta/meta.json

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"$schema": "https://json-schema.org/version/year/meta",
3-
"$id": "https://json-schema.org/version/year/meta",
2+
"$schema": "https://json-schema.org/1/2025",
3+
"$id": "https://json-schema.org/1/2025",
44
"$dynamicAnchor": "meta",
55

66
"title": "JSON Schema Core and Validation specification meta-schema",
@@ -147,8 +147,10 @@
147147
}
148148
},
149149
"patternProperties": {
150-
"^x-": true,
151-
"^(?!(?:\\$id|\\$schema|\\$ref|\\$anchor|\\$dynamicRef|\\$dynamicAnchor|\\$comment|\\$defs)$)\\$.*": false
150+
"^x-": true
151+
},
152+
"propertyNames": {
153+
"pattern": "^[^$]|^\\$(id|schema|ref|anchor|dynamicRef|dynamicAnchor|comment|defs)$"
152154
},
153155
"$defs": {
154156
"anchorString": {
@@ -186,6 +188,12 @@
186188
"object",
187189
"string"
188190
]
191+
},
192+
"stringArray": {
193+
"type": "array",
194+
"items": { "type": "string" },
195+
"uniqueItems": true,
196+
"default": []
189197
}
190198
}
191199
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /