Skip to content

Commit

Permalink
rough rough rough WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Sturgeon committed Jun 21, 2019
1 parent ed37c7f commit 3b23868
Show file tree
Hide file tree
Showing 3 changed files with 164 additions and 97 deletions.
47 changes: 47 additions & 0 deletions schemas/v3.1/meta-openapi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
"$schema": "https://spec.openapis.org/oas/3.1/schema#",
"$id": "https://spec.openapis.org/oas/3.1/meta",
"$vocabulary": {
"https://specs.openapis.org/draft/2019-WIP/vocab/openapi": true
},
"$recursiveAnchor": true,
"title": "OpenAPI Vocabulary Schema",
"type": ["object", "boolean"],
"properties": {
"nullable": {
"type": "boolean",
"deprecated": true
},
"externalDocs": {
"type": "object",
"properties": {
"description": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
}
},
"required": ["propertyName"]
},
"discriminator": {
"type": "object",
"properties": {
"propertyName": {
"type": "string"
},
"mapping": {
"additionalProperties": {
"type": "string"
}
}
},
"required": ["propertyName"]
},
"example": {},
"xml": {
"type": "object"
}
}
}
20 changes: 20 additions & 0 deletions schemas/v3.1/openapi-vocabulary.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"$schema": "https://spec.openapis.org/oas/3.1/schema#",
"$id": "https://spec.openapis.org/oas/3.1/schema",
"$vocabulary": {
"https://json-schema.org/draft/2019-WIP/vocab/core": true,
"https://json-schema.org/draft/2019-WIP/vocab/applicator": true,
"https://json-schema.org/draft/2019-WIP/vocab/validation": true,
"https://json-schema.org/draft/2019-WIP/vocab/meta-data": true,
"https://json-schema.org/draft/2019-WIP/vocab/format": true,
"https://json-schema.org/draft/2019-WIP/vocab/content": true,
"https://specs.openapis.org/draft/2019-WIP/vocab/openapi": true
},
"$recursiveAnchor": true,

"title": "OpenAPI",
"allOf": [
{"$ref": "http://json-schema.org/draft/2019-WIP/schema"},
{"$ref": "https://spec.openapis.org/oas/3.1/meta"}
]
}
Loading

0 comments on commit 3b23868

Please sign in to comment.