Skip to content

Commit e5f0014

Browse files
feat: add OpenAPI Arazzo schema (SchemaStore#5235)
* feat: add OpenAPI Arazzo schema 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 5c7329c commit e5f0014

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed

src/api/json/catalog.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,12 @@
333333
"fileMatch": [],
334334
"url": "https://raw.githubusercontent.com/aquaproj/aqua/main/json-schema/registry.json"
335335
},
336+
{
337+
"name": "arazzo.json",
338+
"description": "An OpenAPI Arazzo document",
339+
"fileMatch": ["arazzo.json", "arazzo.yml", "arazzo.yaml"],
340+
"url": "https://www.schemastore.org/openapi-arazzo-1.X.json"
341+
},
336342
{
337343
"name": "arb.json",
338344
"description": "Application Resource Bundle",

src/schema-validation.jsonc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@
393393
"circleciconfig.json",
394394
"ogen.json",
395395
"openapi-3.X.json", // uses external references
396-
"openapi-overlay-1.X.json" // uses external references
396+
"openapi-overlay-1.X.json", // uses external references
397+
"openapi-arazzo-1.X.json" // uses external references
397398
],
398399
"catalogEntryNoLintNameOrDescription": [
399400
"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-arazzo-1.X.json",
4+
"title": "OpenAPI Arazzo Document v1.X",
5+
"type": "object",
6+
"required": ["arazzo"],
7+
"properties": {
8+
"arazzo": {
9+
"pattern": "^1\\.0\\.",
10+
"type": "string"
11+
}
12+
},
13+
"allOf": [
14+
{
15+
"if": {
16+
"properties": {
17+
"arazzo": {
18+
"pattern": "^1\\.0\\.",
19+
"type": "string"
20+
}
21+
}
22+
},
23+
"then": {
24+
"$ref": "https://spec.openapis.org/arazzo/1.0/schema/2025-10-15"
25+
}
26+
}
27+
]
28+
}

0 commit comments

Comments
 (0)