Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 58 additions & 14 deletions schemas/v2.0/schema.json
Original file line numberDiff line numberDiff line change
Expand Up@@ -171,15 +171,29 @@
"$ref": "#/definitions/vendorExtension"
},
"^/": {
"$ref": "#/definitions/pathItem"
"oneOf": [
{
"$ref": "#/definitions/pathItem"
},
{
"$ref": "#/definitions/jsonReference"
}
]
}
},
"additionalProperties": false
},
"definitions": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/schema"
"oneOf": [
{
"$ref": "#/definitions/schema"
},
{
"$ref": "#/definitions/jsonReference"
}
]
},
"description": "One or more JSON objects describing the schemas being consumed and produced by the API."
},
Expand DownExpand Up@@ -296,9 +310,6 @@
}
},
"properties": {
"$ref": {
"type": "string"
},
"get": {
"$ref": "#/definitions/operation"
},
Expand DownExpand Up@@ -374,6 +385,9 @@
},
{
"$ref": "#/definitions/fileSchema"
},
{
"$ref": "#/definitions/jsonReference"
}
]
},
Expand DownExpand Up@@ -511,7 +525,14 @@
"default": false
},
"schema": {
"$ref": "#/definitions/schema"
"oneOf": [
{
"$ref": "#/definitions/schema"
},
{
"$ref": "#/definitions/jsonReference"
}
]
}
},
"additionalProperties": false
Expand DownExpand Up@@ -925,9 +946,6 @@
}
},
"properties": {
"$ref": {
"type": "string"
},
"format": {
"type": "string"
},
Expand DownExpand Up@@ -990,6 +1008,9 @@
{
"$ref": "#/definitions/schema"
},
{
"$ref": "#/definitions/jsonReference"
},
{
"type": "boolean"
}
Expand All@@ -1004,11 +1025,21 @@
{
"$ref": "#/definitions/schema"
},
{
"$ref": "#/definitions/jsonReference"
},
{
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/definitions/schema"
"oneOf": [
{
"$ref": "#/definitions/schema"
},
{
"$ref": "#/definitions/jsonReference"
}
]
}
}
],
Expand All@@ -1018,13 +1049,27 @@
"type": "array",
"minItems": 1,
"items": {
"$ref": "#/definitions/schema"
"oneOf": [
{
"$ref": "#/definitions/schema"
},
{
"$ref": "#/definitions/jsonReference"
}
]
}
},
"properties": {
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/schema"
"oneOf": [
{
"$ref": "#/definitions/schema"
},
{
"$ref": "#/definitions/jsonReference"
}
]
},
"default": {}
},
Expand DownExpand Up@@ -1580,12 +1625,11 @@
"required": [
"$ref"
],
"additionalProperties": false,
"properties": {
"$ref": {
"type": "string"
}
}
}
}
}
}