Skip to content

Commit f9ed32b

Browse files
author
Phil Sturgeon
committed
rough rough rough WIP
1 parent 5f6a25a commit f9ed32b

File tree

3 files changed

+164
-97
lines changed

3 files changed

+164
-97
lines changed

schemas/v3.1/meta-openapi.json

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"$schema": "https://spec.openapis.org/oas/3.1/schema#",
3+
"$id": "https://spec.openapis.org/oas/3.1/meta",
4+
"$vocabulary": {
5+
"https://specs.openapis.org/oas/3.1/vocab/openapi": true
6+
},
7+
"$recursiveAnchor": true,
8+
"title": "OpenAPI Vocabulary Schema",
9+
"type": ["object", "boolean"],
10+
"properties": {
11+
"nullable": {
12+
"type": "boolean",
13+
"deprecated": true
14+
},
15+
"externalDocs": {
16+
"type": "object",
17+
"properties": {
18+
"description": {
19+
"type": "string"
20+
},
21+
"url": {
22+
"type": "string",
23+
"format": "uri"
24+
}
25+
},
26+
"required": ["propertyName"]
27+
},
28+
"discriminator": {
29+
"type": "object",
30+
"properties": {
31+
"propertyName": {
32+
"type": "string"
33+
},
34+
"mapping": {
35+
"additionalProperties": {
36+
"type": "string"
37+
}
38+
}
39+
},
40+
"required": ["propertyName"]
41+
},
42+
"example": {},
43+
"xml": {
44+
"type": "object"
45+
}
46+
}
47+
}

schemas/v3.1/openapi-vocabulary.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"$schema": "http://json-schema.org/draft/2019-WIP/schema#",
3+
"$id": "https://spec.openapis.org/oas/3.1/schema",
4+
"$vocabulary": {
5+
"https://json-schema.org/draft/2019-WIP/vocab/core": true,
6+
"https://json-schema.org/draft/2019-WIP/vocab/applicator": true,
7+
"https://json-schema.org/draft/2019-WIP/vocab/validation": true,
8+
"https://json-schema.org/draft/2019-WIP/vocab/meta-data": true,
9+
"https://json-schema.org/draft/2019-WIP/vocab/format": true,
10+
"https://json-schema.org/draft/2019-WIP/vocab/content": true,
11+
"https://specs.openapis.org/oas/3.1/vocab/openapi": true
12+
},
13+
"$recursiveAnchor": true,
14+
15+
"title": "OpenAPI",
16+
"allOf": [
17+
{"$ref": "http://json-schema.org/draft/2019-WIP/schema"},
18+
{"$ref": "https://spec.openapis.org/oas/3.1/meta"}
19+
]
20+
}

0 commit comments

Comments
 (0)