Skip to content

Commit 5c7329c

Browse files
feat: adds overlay documents to the store (SchemaStore#5234)
* feat: adds overlay documents to the store Signed-off-by: Vincent Biret <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Signed-off-by: Vincent Biret <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 19d03fb commit 5c7329c

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
lines changed

src/api/json/catalog.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4445,6 +4445,19 @@
44454445
"fileMatch": ["openapi.json", "openapi.yml", "openapi.yaml"],
44464446
"url": "https://www.schemastore.org/openapi-3.X.json"
44474447
},
4448+
{
4449+
"name": "overlay.json",
4450+
"description": "An OpenAPI Overlay document",
4451+
"fileMatch": [
4452+
"overlay.json",
4453+
"overlay.yml",
4454+
"overlay.yaml",
4455+
"*.overlay.json",
4456+
"*.overlay.yml",
4457+
"*.overlay.yaml"
4458+
],
4459+
"url": "https://www.schemastore.org/openapi-overlay-1.X.json"
4460+
},
44484461
{
44494462
"name": "openrpc.json",
44504463
"description": "An OpenRPC document. Documentation: https://open-rpc.org for more information",

src/schema-validation.jsonc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,8 @@
392392
"lazygit.json",
393393
"circleciconfig.json",
394394
"ogen.json",
395-
"openapi-3.X.json" // uses external references
395+
"openapi-3.X.json", // uses external references
396+
"openapi-overlay-1.X.json" // uses external references
396397
],
397398
"catalogEntryNoLintNameOrDescription": [
398399
"https://json-schema.org/draft-04/schema",
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"$schema": "https://json-schema.org/draft/2020-12/schema",
3+
"$id": "https://www.schemastore.org/openapi-overlay-1.X.json",
4+
"title": "OpenAPI Overlay Document v1.X",
5+
"type": "object",
6+
"required": ["overlay"],
7+
"properties": {
8+
"overlay": {
9+
"pattern": "^1\\.0\\.",
10+
"type": "string"
11+
}
12+
},
13+
"allOf": [
14+
{
15+
"if": {
16+
"properties": {
17+
"overlay": {
18+
"pattern": "^1\\.0\\.",
19+
"type": "string"
20+
}
21+
}
22+
},
23+
"then": {
24+
"$ref": "https://spec.openapis.org/overlay/1.0/schema/2024-10-22"
25+
}
26+
}
27+
]
28+
}

0 commit comments

Comments
 (0)