From 50ac531b7a9dac6a5e61289ed7b5bf03d3dee40e Mon Sep 17 00:00:00 2001 From: Jonas Lagoni Date: Mon, 13 May 2024 12:40:21 +0200 Subject: [PATCH] remove release candidate --- .../2.0.0-rc1/APIKeyHTTPSecurityScheme.json | 38 - .../2.0.0-rc1/BearerHTTPSecurityScheme.json | 35 - definitions/2.0.0-rc1/HTTPSecurityScheme.json | 15 - .../NonBearerHTTPSecurityScheme.json | 40 - definitions/2.0.0-rc1/Reference.json | 13 - definitions/2.0.0-rc1/ReferenceObject.json | 6 - .../2.0.0-rc1/SecurityRequirement.json | 12 - definitions/2.0.0-rc1/SecurityScheme.json | 30 - definitions/2.0.0-rc1/X509.json | 25 - definitions/2.0.0-rc1/apiKey.json | 33 - .../2.0.0-rc1/asymmetricEncryption.json | 25 - definitions/2.0.0-rc1/asyncapi.json | 61 - definitions/2.0.0-rc1/channelItem.json | 36 - definitions/2.0.0-rc1/channels.json | 13 - definitions/2.0.0-rc1/components.json | 51 - definitions/2.0.0-rc1/contact.json | 28 - definitions/2.0.0-rc1/correlationId.json | 25 - definitions/2.0.0-rc1/externalDocs.json | 24 - definitions/2.0.0-rc1/info.json | 41 - definitions/2.0.0-rc1/license.json | 25 - definitions/2.0.0-rc1/message.json | 98 - definitions/2.0.0-rc1/messageTrait.json | 84 - definitions/2.0.0-rc1/messages.json | 9 - definitions/2.0.0-rc1/oauth2Flow.json | 28 - definitions/2.0.0-rc1/oauth2Flows.json | 106 -- definitions/2.0.0-rc1/oauth2Scopes.json | 8 - definitions/2.0.0-rc1/openIdConnect.json | 30 - definitions/2.0.0-rc1/operation.json | 79 - definitions/2.0.0-rc1/operationTrait.json | 38 - definitions/2.0.0-rc1/parameter.json | 26 - definitions/2.0.0-rc1/parameters.json | 16 - definitions/2.0.0-rc1/schema.json | 156 -- definitions/2.0.0-rc1/schemas.json | 9 - definitions/2.0.0-rc1/server.json | 44 - definitions/2.0.0-rc1/serverVariable.json | 34 - definitions/2.0.0-rc1/serverVariables.json | 8 - .../2.0.0-rc1/specificationExtension.json | 7 - .../2.0.0-rc1/symmetricEncryption.json | 25 - definitions/2.0.0-rc1/tag.json | 25 - definitions/2.0.0-rc1/traits.json | 15 - definitions/2.0.0-rc1/userPassword.json | 25 - definitions/2.0.0-rc1/xml.json | 25 - .../2.0.0-rc2/APIKeyHTTPSecurityScheme.json | 38 - .../2.0.0-rc2/BearerHTTPSecurityScheme.json | 35 - definitions/2.0.0-rc2/HTTPSecurityScheme.json | 15 - .../NonBearerHTTPSecurityScheme.json | 40 - definitions/2.0.0-rc2/Reference.json | 13 - definitions/2.0.0-rc2/ReferenceObject.json | 6 - .../2.0.0-rc2/SecurityRequirement.json | 12 - definitions/2.0.0-rc2/SecurityScheme.json | 30 - definitions/2.0.0-rc2/X509.json | 25 - definitions/2.0.0-rc2/apiKey.json | 33 - .../2.0.0-rc2/asymmetricEncryption.json | 25 - definitions/2.0.0-rc2/asyncapi.json | 59 - definitions/2.0.0-rc2/bindingsObject.json | 21 - definitions/2.0.0-rc2/channelItem.json | 37 - definitions/2.0.0-rc2/channels.json | 13 - definitions/2.0.0-rc2/components.json | 84 - definitions/2.0.0-rc2/contact.json | 28 - definitions/2.0.0-rc2/correlationId.json | 25 - definitions/2.0.0-rc2/externalDocs.json | 24 - definitions/2.0.0-rc2/info.json | 41 - definitions/2.0.0-rc2/license.json | 25 - definitions/2.0.0-rc2/message.json | 111 -- definitions/2.0.0-rc2/messageTrait.json | 78 - definitions/2.0.0-rc2/messages.json | 9 - definitions/2.0.0-rc2/oauth2Flow.json | 28 - definitions/2.0.0-rc2/oauth2Flows.json | 106 -- definitions/2.0.0-rc2/oauth2Scopes.json | 8 - definitions/2.0.0-rc2/openIdConnect.json | 30 - definitions/2.0.0-rc2/operation.json | 51 - definitions/2.0.0-rc2/operationTrait.json | 35 - definitions/2.0.0-rc2/parameter.json | 27 - definitions/2.0.0-rc2/parameters.json | 16 - definitions/2.0.0-rc2/schema.json | 91 - definitions/2.0.0-rc2/schemas.json | 9 - definitions/2.0.0-rc2/server.json | 43 - definitions/2.0.0-rc2/serverVariable.json | 34 - definitions/2.0.0-rc2/serverVariables.json | 8 - .../2.0.0-rc2/specificationExtension.json | 7 - .../2.0.0-rc2/symmetricEncryption.json | 25 - definitions/2.0.0-rc2/tag.json | 25 - definitions/2.0.0-rc2/userPassword.json | 25 - schemas/2.0.0-rc1-without-$id.json | 1613 ---------------- schemas/2.0.0-rc1.json | 1655 ----------------- schemas/2.0.0-rc2-without-$id.json | 1560 ---------------- schemas/2.0.0-rc2.json | 1602 ---------------- schemas/all.schema-store.json | 28 - scripts/validate-schemas.js | 3 +- spec-json-schemas_test.go | 2 +- test/index.js | 2 +- 91 files changed, 3 insertions(+), 9328 deletions(-) delete mode 100644 definitions/2.0.0-rc1/APIKeyHTTPSecurityScheme.json delete mode 100644 definitions/2.0.0-rc1/BearerHTTPSecurityScheme.json delete mode 100644 definitions/2.0.0-rc1/HTTPSecurityScheme.json delete mode 100644 definitions/2.0.0-rc1/NonBearerHTTPSecurityScheme.json delete mode 100644 definitions/2.0.0-rc1/Reference.json delete mode 100644 definitions/2.0.0-rc1/ReferenceObject.json delete mode 100644 definitions/2.0.0-rc1/SecurityRequirement.json delete mode 100644 definitions/2.0.0-rc1/SecurityScheme.json delete mode 100644 definitions/2.0.0-rc1/X509.json delete mode 100644 definitions/2.0.0-rc1/apiKey.json delete mode 100644 definitions/2.0.0-rc1/asymmetricEncryption.json delete mode 100644 definitions/2.0.0-rc1/asyncapi.json delete mode 100644 definitions/2.0.0-rc1/channelItem.json delete mode 100644 definitions/2.0.0-rc1/channels.json delete mode 100644 definitions/2.0.0-rc1/components.json delete mode 100644 definitions/2.0.0-rc1/contact.json delete mode 100644 definitions/2.0.0-rc1/correlationId.json delete mode 100644 definitions/2.0.0-rc1/externalDocs.json delete mode 100644 definitions/2.0.0-rc1/info.json delete mode 100644 definitions/2.0.0-rc1/license.json delete mode 100644 definitions/2.0.0-rc1/message.json delete mode 100644 definitions/2.0.0-rc1/messageTrait.json delete mode 100644 definitions/2.0.0-rc1/messages.json delete mode 100644 definitions/2.0.0-rc1/oauth2Flow.json delete mode 100644 definitions/2.0.0-rc1/oauth2Flows.json delete mode 100644 definitions/2.0.0-rc1/oauth2Scopes.json delete mode 100644 definitions/2.0.0-rc1/openIdConnect.json delete mode 100644 definitions/2.0.0-rc1/operation.json delete mode 100644 definitions/2.0.0-rc1/operationTrait.json delete mode 100644 definitions/2.0.0-rc1/parameter.json delete mode 100644 definitions/2.0.0-rc1/parameters.json delete mode 100644 definitions/2.0.0-rc1/schema.json delete mode 100644 definitions/2.0.0-rc1/schemas.json delete mode 100644 definitions/2.0.0-rc1/server.json delete mode 100644 definitions/2.0.0-rc1/serverVariable.json delete mode 100644 definitions/2.0.0-rc1/serverVariables.json delete mode 100644 definitions/2.0.0-rc1/specificationExtension.json delete mode 100644 definitions/2.0.0-rc1/symmetricEncryption.json delete mode 100644 definitions/2.0.0-rc1/tag.json delete mode 100644 definitions/2.0.0-rc1/traits.json delete mode 100644 definitions/2.0.0-rc1/userPassword.json delete mode 100644 definitions/2.0.0-rc1/xml.json delete mode 100644 definitions/2.0.0-rc2/APIKeyHTTPSecurityScheme.json delete mode 100644 definitions/2.0.0-rc2/BearerHTTPSecurityScheme.json delete mode 100644 definitions/2.0.0-rc2/HTTPSecurityScheme.json delete mode 100644 definitions/2.0.0-rc2/NonBearerHTTPSecurityScheme.json delete mode 100644 definitions/2.0.0-rc2/Reference.json delete mode 100644 definitions/2.0.0-rc2/ReferenceObject.json delete mode 100644 definitions/2.0.0-rc2/SecurityRequirement.json delete mode 100644 definitions/2.0.0-rc2/SecurityScheme.json delete mode 100644 definitions/2.0.0-rc2/X509.json delete mode 100644 definitions/2.0.0-rc2/apiKey.json delete mode 100644 definitions/2.0.0-rc2/asymmetricEncryption.json delete mode 100644 definitions/2.0.0-rc2/asyncapi.json delete mode 100644 definitions/2.0.0-rc2/bindingsObject.json delete mode 100644 definitions/2.0.0-rc2/channelItem.json delete mode 100644 definitions/2.0.0-rc2/channels.json delete mode 100644 definitions/2.0.0-rc2/components.json delete mode 100644 definitions/2.0.0-rc2/contact.json delete mode 100644 definitions/2.0.0-rc2/correlationId.json delete mode 100644 definitions/2.0.0-rc2/externalDocs.json delete mode 100644 definitions/2.0.0-rc2/info.json delete mode 100644 definitions/2.0.0-rc2/license.json delete mode 100644 definitions/2.0.0-rc2/message.json delete mode 100644 definitions/2.0.0-rc2/messageTrait.json delete mode 100644 definitions/2.0.0-rc2/messages.json delete mode 100644 definitions/2.0.0-rc2/oauth2Flow.json delete mode 100644 definitions/2.0.0-rc2/oauth2Flows.json delete mode 100644 definitions/2.0.0-rc2/oauth2Scopes.json delete mode 100644 definitions/2.0.0-rc2/openIdConnect.json delete mode 100644 definitions/2.0.0-rc2/operation.json delete mode 100644 definitions/2.0.0-rc2/operationTrait.json delete mode 100644 definitions/2.0.0-rc2/parameter.json delete mode 100644 definitions/2.0.0-rc2/parameters.json delete mode 100644 definitions/2.0.0-rc2/schema.json delete mode 100644 definitions/2.0.0-rc2/schemas.json delete mode 100644 definitions/2.0.0-rc2/server.json delete mode 100644 definitions/2.0.0-rc2/serverVariable.json delete mode 100644 definitions/2.0.0-rc2/serverVariables.json delete mode 100644 definitions/2.0.0-rc2/specificationExtension.json delete mode 100644 definitions/2.0.0-rc2/symmetricEncryption.json delete mode 100644 definitions/2.0.0-rc2/tag.json delete mode 100644 definitions/2.0.0-rc2/userPassword.json delete mode 100644 schemas/2.0.0-rc1-without-$id.json delete mode 100644 schemas/2.0.0-rc1.json delete mode 100644 schemas/2.0.0-rc2-without-$id.json delete mode 100644 schemas/2.0.0-rc2.json diff --git a/definitions/2.0.0-rc1/APIKeyHTTPSecurityScheme.json b/definitions/2.0.0-rc1/APIKeyHTTPSecurityScheme.json deleted file mode 100644 index d425aa29..00000000 --- a/definitions/2.0.0-rc1/APIKeyHTTPSecurityScheme.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "type": "object", - "required": [ - "type", - "name", - "in" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "httpApiKey" - ] - }, - "name": { - "type": "string" - }, - "in": { - "type": "string", - "enum": [ - "header", - "query", - "cookie" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/APIKeyHTTPSecurityScheme.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/BearerHTTPSecurityScheme.json b/definitions/2.0.0-rc1/BearerHTTPSecurityScheme.json deleted file mode 100644 index 8d1cc72f..00000000 --- a/definitions/2.0.0-rc1/BearerHTTPSecurityScheme.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "type": "object", - "required": [ - "type", - "scheme" - ], - "properties": { - "scheme": { - "type": "string", - "enum": [ - "bearer" - ] - }, - "bearerFormat": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "http" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/BearerHTTPSecurityScheme.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/HTTPSecurityScheme.json b/definitions/2.0.0-rc1/HTTPSecurityScheme.json deleted file mode 100644 index 67f6597b..00000000 --- a/definitions/2.0.0-rc1/HTTPSecurityScheme.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/NonBearerHTTPSecurityScheme.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/BearerHTTPSecurityScheme.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/APIKeyHTTPSecurityScheme.json" - } - ], - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/HTTPSecurityScheme.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/NonBearerHTTPSecurityScheme.json b/definitions/2.0.0-rc1/NonBearerHTTPSecurityScheme.json deleted file mode 100644 index d1e68ba6..00000000 --- a/definitions/2.0.0-rc1/NonBearerHTTPSecurityScheme.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "not": { - "type": "object", - "properties": { - "scheme": { - "type": "string", - "enum": [ - "bearer" - ] - } - } - }, - "type": "object", - "required": [ - "scheme", - "type" - ], - "properties": { - "scheme": { - "type": "string" - }, - "description": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "http" - ] - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/NonBearerHTTPSecurityScheme.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/Reference.json b/definitions/2.0.0-rc1/Reference.json deleted file mode 100644 index aca06c2f..00000000 --- a/definitions/2.0.0-rc1/Reference.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "type": "object", - "required": [ - "$ref" - ], - "properties": { - "$ref": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/ReferenceObject.json b/definitions/2.0.0-rc1/ReferenceObject.json deleted file mode 100644 index ae779fa0..00000000 --- a/definitions/2.0.0-rc1/ReferenceObject.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "type": "string", - "format": "uri", - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/SecurityRequirement.json b/definitions/2.0.0-rc1/SecurityRequirement.json deleted file mode 100644 index 9595ddce..00000000 --- a/definitions/2.0.0-rc1/SecurityRequirement.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/SecurityRequirement.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/SecurityScheme.json b/definitions/2.0.0-rc1/SecurityScheme.json deleted file mode 100644 index 225f3659..00000000 --- a/definitions/2.0.0-rc1/SecurityScheme.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/userPassword.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/apiKey.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/X509.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/symmetricEncryption.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/asymmetricEncryption.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/HTTPSecurityScheme.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flows.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/openIdConnect.json" - } - ], - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/SecurityScheme.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/X509.json b/definitions/2.0.0-rc1/X509.json deleted file mode 100644 index 5f7f1a9f..00000000 --- a/definitions/2.0.0-rc1/X509.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "X509" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/X509.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/apiKey.json b/definitions/2.0.0-rc1/apiKey.json deleted file mode 100644 index 73f9d0fc..00000000 --- a/definitions/2.0.0-rc1/apiKey.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "type": "object", - "required": [ - "type", - "in" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "apiKey" - ] - }, - "in": { - "type": "string", - "enum": [ - "user", - "password" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/apiKey.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/asymmetricEncryption.json b/definitions/2.0.0-rc1/asymmetricEncryption.json deleted file mode 100644 index fc0994ed..00000000 --- a/definitions/2.0.0-rc1/asymmetricEncryption.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "asymmetricEncryption" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/asymmetricEncryption.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/asyncapi.json b/definitions/2.0.0-rc1/asyncapi.json deleted file mode 100644 index dff177a1..00000000 --- a/definitions/2.0.0-rc1/asyncapi.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "title": "AsyncAPI 2.0.0-rc1 schema.", - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/asyncapi.json", - "type": "object", - "required": [ - "asyncapi", - "id", - "info", - "channels" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "asyncapi": { - "type": "string", - "enum": [ - "2.0.0-rc1" - ], - "description": "The AsyncAPI specification version of this document." - }, - "id": { - "type": "string", - "description": "A unique id representing the application.", - "format": "uri-reference" - }, - "info": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/info.json" - }, - "servers": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/server.json" - }, - "uniqueItems": true - }, - "defaultContentType": { - "type": "string" - }, - "channels": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/channels.json" - }, - "components": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/components.json" - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/tag.json" - }, - "uniqueItems": true - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json" - } - } -} diff --git a/definitions/2.0.0-rc1/channelItem.json b/definitions/2.0.0-rc1/channelItem.json deleted file mode 100644 index 86588d37..00000000 --- a/definitions/2.0.0-rc1/channelItem.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "minProperties": 1, - "properties": { - "$ref": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json" - }, - "parameters": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/parameters.json" - }, - "publish": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/operation.json" - }, - "subscribe": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/operation.json" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "protocolInfo": { - "type": "object", - "additionalProperties": { - "type": "object" - } - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/channelItem.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/channels.json b/definitions/2.0.0-rc1/channels.json deleted file mode 100644 index cc175263..00000000 --- a/definitions/2.0.0-rc1/channels.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "type": "object", - "propertyNames": { - "type": "string", - "format": "uri-template", - "minLength": 1 - }, - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/channelItem.json" - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/channels.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/components.json b/definitions/2.0.0-rc1/components.json deleted file mode 100644 index 3d89e26f..00000000 --- a/definitions/2.0.0-rc1/components.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "type": "object", - "description": "An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.", - "additionalProperties": false, - "properties": { - "schemas": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schemas.json" - }, - "messages": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/messages.json" - }, - "securitySchemes": { - "type": "object", - "patternProperties": { - "^[\\w\\d\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/SecurityScheme.json" - } - ] - } - } - }, - "parameters": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/parameters.json" - }, - "correlationIds": { - "type": "object", - "patternProperties": { - "^[\\w\\d\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/correlationId.json" - } - ] - } - } - }, - "traits": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/traits.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/components.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/contact.json b/definitions/2.0.0-rc1/contact.json deleted file mode 100644 index 1366cd98..00000000 --- a/definitions/2.0.0-rc1/contact.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "object", - "description": "Contact information for the owners of the API.", - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "description": "The identifying name of the contact person/organization." - }, - "url": { - "type": "string", - "description": "The URL pointing to the contact information.", - "format": "uri" - }, - "email": { - "type": "string", - "description": "The email address of the contact person/organization.", - "format": "email" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/contact.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/correlationId.json b/definitions/2.0.0-rc1/correlationId.json deleted file mode 100644 index 75d9bb22..00000000 --- a/definitions/2.0.0-rc1/correlationId.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "object", - "required": [ - "location" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "description": { - "type": "string", - "description": "A optional description of the correlation ID. GitHub Flavored Markdown is allowed." - }, - "location": { - "type": "string", - "description": "A runtime expression that specifies the location of the correlation ID", - "pattern": "^\\$message\\.(header|payload)#(/\\w+)+" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/correlationId.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/externalDocs.json b/definitions/2.0.0-rc1/externalDocs.json deleted file mode 100644 index 47f29c2c..00000000 --- a/definitions/2.0.0-rc1/externalDocs.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "type": "object", - "additionalProperties": false, - "description": "information about external documentation", - "required": [ - "url" - ], - "properties": { - "description": { - "type": "string" - }, - "url": { - "type": "string", - "format": "uri" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/info.json b/definitions/2.0.0-rc1/info.json deleted file mode 100644 index 04c147fd..00000000 --- a/definitions/2.0.0-rc1/info.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "type": "object", - "description": "General information about the API.", - "required": [ - "version", - "title" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "title": { - "type": "string", - "description": "A unique and precise title of the API." - }, - "version": { - "type": "string", - "description": "A semantic version number of the API." - }, - "description": { - "type": "string", - "description": "A longer description of the API. Should be different from the title. CommonMark is allowed." - }, - "termsOfService": { - "type": "string", - "description": "A URL to the Terms of Service for the API. MUST be in the format of a URL.", - "format": "uri" - }, - "contact": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/contact.json" - }, - "license": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/license.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/info.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/license.json b/definitions/2.0.0-rc1/license.json deleted file mode 100644 index 5de88bf6..00000000 --- a/definitions/2.0.0-rc1/license.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "object", - "required": [ - "name" - ], - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "description": "The name of the license type. It's encouraged to use an OSI compatible license." - }, - "url": { - "type": "string", - "description": "The URL pointing to the license.", - "format": "uri" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/license.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/message.json b/definitions/2.0.0-rc1/message.json deleted file mode 100644 index e417596d..00000000 --- a/definitions/2.0.0-rc1/message.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "schemaFormat": { - "type": "string" - }, - "contentType": { - "type": "string" - }, - "headers": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - } - ] - } - }, - "payload": {}, - "correlationId": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/correlationId.json" - } - ] - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/tag.json" - }, - "uniqueItems": true - }, - "summary": { - "type": "string", - "description": "A brief summary of the message." - }, - "name": { - "type": "string", - "description": "Name of the message." - }, - "title": { - "type": "string", - "description": "A human-friendly title for the message." - }, - "description": { - "type": "string", - "description": "A longer description of the message. CommonMark is allowed." - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": { - "type": "object" - } - }, - "protocolInfo": { - "type": "object", - "additionalProperties": { - "type": "object" - } - }, - "traits": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json" - } - ] - } - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/message.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/messageTrait.json b/definitions/2.0.0-rc1/messageTrait.json deleted file mode 100644 index a6adc081..00000000 --- a/definitions/2.0.0-rc1/messageTrait.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "schemaFormat": { - "type": "string" - }, - "contentType": { - "type": "string" - }, - "headers": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - } - ] - } - }, - "correlationId": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/correlationId.json" - } - ] - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/tag.json" - }, - "uniqueItems": true - }, - "summary": { - "type": "string", - "description": "A brief summary of the message." - }, - "name": { - "type": "string", - "description": "Name of the message." - }, - "title": { - "type": "string", - "description": "A human-friendly title for the message." - }, - "description": { - "type": "string", - "description": "A longer description of the message. CommonMark is allowed." - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": { - "type": "object" - } - }, - "protocolInfo": { - "type": "object", - "additionalProperties": { - "type": "object" - } - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/messages.json b/definitions/2.0.0-rc1/messages.json deleted file mode 100644 index c8b2c17e..00000000 --- a/definitions/2.0.0-rc1/messages.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/message.json" - }, - "description": "JSON objects describing the messages being consumed and produced by the API.", - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/messages.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/oauth2Flow.json b/definitions/2.0.0-rc1/oauth2Flow.json deleted file mode 100644 index 396d0637..00000000 --- a/definitions/2.0.0-rc1/oauth2Flow.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "object", - "properties": { - "authorizationUrl": { - "type": "string", - "format": "uri" - }, - "tokenUrl": { - "type": "string", - "format": "uri" - }, - "refreshUrl": { - "type": "string", - "format": "uri" - }, - "scopes": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Scopes.json" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/oauth2Flows.json b/definitions/2.0.0-rc1/oauth2Flows.json deleted file mode 100644 index 730fcf3a..00000000 --- a/definitions/2.0.0-rc1/oauth2Flows.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "type": "object", - "required": [ - "type", - "flows" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "oauth2" - ] - }, - "description": { - "type": "string" - }, - "flows": { - "type": "object", - "properties": { - "implicit": { - "allOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json" - }, - { - "required": [ - "authorizationUrl", - "scopes" - ] - }, - { - "not": { - "required": [ - "tokenUrl" - ] - } - } - ] - }, - "password": { - "allOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json" - }, - { - "required": [ - "tokenUrl", - "scopes" - ] - }, - { - "not": { - "required": [ - "authorizationUrl" - ] - } - } - ] - }, - "clientCredentials": { - "allOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json" - }, - { - "required": [ - "tokenUrl", - "scopes" - ] - }, - { - "not": { - "required": [ - "authorizationUrl" - ] - } - } - ] - }, - "authorizationCode": { - "allOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json" - }, - { - "required": [ - "authorizationUrl", - "tokenUrl", - "scopes" - ] - } - ] - } - }, - "additionalProperties": false, - "minProperties": 1 - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flows.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/oauth2Scopes.json b/definitions/2.0.0-rc1/oauth2Scopes.json deleted file mode 100644 index 1e5569fa..00000000 --- a/definitions/2.0.0-rc1/oauth2Scopes.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "type": "object", - "additionalProperties": { - "type": "string" - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Scopes.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/openIdConnect.json b/definitions/2.0.0-rc1/openIdConnect.json deleted file mode 100644 index 7bc8a4a0..00000000 --- a/definitions/2.0.0-rc1/openIdConnect.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "type": "object", - "required": [ - "type", - "openIdConnectUrl" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "openIdConnect" - ] - }, - "description": { - "type": "string" - }, - "openIdConnectUrl": { - "type": "string", - "format": "uri" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/openIdConnect.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/operation.json b/definitions/2.0.0-rc1/operation.json deleted file mode 100644 index fa9f566e..00000000 --- a/definitions/2.0.0-rc1/operation.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "traits": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json" - } - ] - } - }, - "summary": { - "type": "string" - }, - "description": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/tag.json" - }, - "uniqueItems": true - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json" - }, - "operationId": { - "type": "string" - }, - "protocolInfo": { - "type": "object", - "additionalProperties": { - "type": "object" - } - }, - "message": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/message.json" - }, - { - "type": "object", - "required": [ - "oneOf" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "oneOf": { - "type": "array", - "minItems": 2, - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/message.json" - } - } - } - } - ] - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/operation.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/operationTrait.json b/definitions/2.0.0-rc1/operationTrait.json deleted file mode 100644 index 053a6a1c..00000000 --- a/definitions/2.0.0-rc1/operationTrait.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "summary": { - "type": "string" - }, - "description": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/tag.json" - }, - "uniqueItems": true - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json" - }, - "operationId": { - "type": "string" - }, - "protocolInfo": { - "type": "object", - "additionalProperties": { - "type": "object" - } - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/parameter.json b/definitions/2.0.0-rc1/parameter.json deleted file mode 100644 index 97118c20..00000000 --- a/definitions/2.0.0-rc1/parameter.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "description": { - "type": "string", - "description": "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." - }, - "name": { - "type": "string", - "description": "The name of the parameter." - }, - "schema": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - }, - "$ref": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/parameter.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/parameters.json b/definitions/2.0.0-rc1/parameters.json deleted file mode 100644 index f2c76621..00000000 --- a/definitions/2.0.0-rc1/parameters.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/parameter.json" - } - ] - }, - "description": "JSON objects describing re-usable channel parameters.", - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/parameters.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/schema.json b/definitions/2.0.0-rc1/schema.json deleted file mode 100644 index 44cded50..00000000 --- a/definitions/2.0.0-rc1/schema.json +++ /dev/null @@ -1,156 +0,0 @@ -{ - "type": "object", - "description": "A deterministic version of a JSON Schema object.", - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "$ref": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json" - }, - "format": { - "type": "string" - }, - "title": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/title" - }, - "description": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/description" - }, - "default": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/default" - }, - "multipleOf": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/multipleOf" - }, - "maximum": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/maximum" - }, - "exclusiveMaximum": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum" - }, - "minimum": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/minimum" - }, - "exclusiveMinimum": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum" - }, - "maxLength": { - "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger" - }, - "minLength": { - "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" - }, - "pattern": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/pattern" - }, - "maxItems": { - "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger" - }, - "minItems": { - "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" - }, - "uniqueItems": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/uniqueItems" - }, - "maxProperties": { - "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger" - }, - "minProperties": { - "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" - }, - "required": { - "$ref": "http://json-schema.org/draft-04/schema#/definitions/stringArray" - }, - "enum": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/enum" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "additionalProperties": { - "anyOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - }, - { - "type": "boolean" - } - ], - "default": {} - }, - "type": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/type" - }, - "items": { - "anyOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - }, - { - "type": "array", - "minItems": 1, - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - } - } - ], - "default": {} - }, - "allOf": { - "type": "array", - "minItems": 1, - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - } - }, - "oneOf": { - "type": "array", - "minItems": 2, - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - } - }, - "anyOf": { - "type": "array", - "minItems": 2, - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - } - }, - "not": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - }, - "properties": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - }, - "default": {} - }, - "discriminator": { - "type": "string" - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "xml": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/xml.json" - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json" - }, - "example": {}, - "examples": { - "type": "array", - "items": {} - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/schemas.json b/definitions/2.0.0-rc1/schemas.json deleted file mode 100644 index e8a37c8e..00000000 --- a/definitions/2.0.0-rc1/schemas.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - }, - "description": "JSON objects describing schemas the API uses.", - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/schemas.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/server.json b/definitions/2.0.0-rc1/server.json deleted file mode 100644 index 7b58b29d..00000000 --- a/definitions/2.0.0-rc1/server.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "type": "object", - "description": "An object representing a Server.", - "required": [ - "url", - "protocol" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "url": { - "type": "string" - }, - "description": { - "type": "string" - }, - "protocol": { - "type": "string", - "description": "The transfer protocol." - }, - "protocolVersion": { - "type": "string" - }, - "variables": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/serverVariables.json" - }, - "baseChannel": { - "type": "string", - "x-format": "uri-path" - }, - "security": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/SecurityRequirement.json" - } - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/server.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/serverVariable.json b/definitions/2.0.0-rc1/serverVariable.json deleted file mode 100644 index 19ebaa99..00000000 --- a/definitions/2.0.0-rc1/serverVariable.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "type": "object", - "description": "An object representing a Server Variable for server URL template substitution.", - "minProperties": 1, - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "enum": { - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true - }, - "default": { - "type": "string" - }, - "description": { - "type": "string" - }, - "examples": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/serverVariable.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/serverVariables.json b/definitions/2.0.0-rc1/serverVariables.json deleted file mode 100644 index f49ff468..00000000 --- a/definitions/2.0.0-rc1/serverVariables.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/serverVariable.json" - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/serverVariables.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/specificationExtension.json b/definitions/2.0.0-rc1/specificationExtension.json deleted file mode 100644 index 64894f22..00000000 --- a/definitions/2.0.0-rc1/specificationExtension.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "description": "Any property starting with x- is valid.", - "additionalProperties": true, - "additionalItems": true, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/symmetricEncryption.json b/definitions/2.0.0-rc1/symmetricEncryption.json deleted file mode 100644 index b6364002..00000000 --- a/definitions/2.0.0-rc1/symmetricEncryption.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "symmetricEncryption" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/symmetricEncryption.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/tag.json b/definitions/2.0.0-rc1/tag.json deleted file mode 100644 index 6cde7b2c..00000000 --- a/definitions/2.0.0-rc1/tag.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "object", - "additionalProperties": false, - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/tag.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/traits.json b/definitions/2.0.0-rc1/traits.json deleted file mode 100644 index 59a7632e..00000000 --- a/definitions/2.0.0-rc1/traits.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "type": "object", - "additionalProperties": { - "anyOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json" - } - ] - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/traits.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/userPassword.json b/definitions/2.0.0-rc1/userPassword.json deleted file mode 100644 index 808c7732..00000000 --- a/definitions/2.0.0-rc1/userPassword.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "userPassword" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/userPassword.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc1/xml.json b/definitions/2.0.0-rc1/xml.json deleted file mode 100644 index babc7944..00000000 --- a/definitions/2.0.0-rc1/xml.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "object", - "additionalProperties": false, - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - }, - "prefix": { - "type": "string" - }, - "attribute": { - "type": "boolean", - "default": false - }, - "wrapped": { - "type": "boolean", - "default": false - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/xml.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/APIKeyHTTPSecurityScheme.json b/definitions/2.0.0-rc2/APIKeyHTTPSecurityScheme.json deleted file mode 100644 index a3ad8e89..00000000 --- a/definitions/2.0.0-rc2/APIKeyHTTPSecurityScheme.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - "type": "object", - "required": [ - "type", - "name", - "in" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "httpApiKey" - ] - }, - "name": { - "type": "string" - }, - "in": { - "type": "string", - "enum": [ - "header", - "query", - "cookie" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/APIKeyHTTPSecurityScheme.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/BearerHTTPSecurityScheme.json b/definitions/2.0.0-rc2/BearerHTTPSecurityScheme.json deleted file mode 100644 index 54cd3159..00000000 --- a/definitions/2.0.0-rc2/BearerHTTPSecurityScheme.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "type": "object", - "required": [ - "type", - "scheme" - ], - "properties": { - "scheme": { - "type": "string", - "enum": [ - "bearer" - ] - }, - "bearerFormat": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "http" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/BearerHTTPSecurityScheme.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/HTTPSecurityScheme.json b/definitions/2.0.0-rc2/HTTPSecurityScheme.json deleted file mode 100644 index 5d794713..00000000 --- a/definitions/2.0.0-rc2/HTTPSecurityScheme.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/NonBearerHTTPSecurityScheme.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/BearerHTTPSecurityScheme.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/APIKeyHTTPSecurityScheme.json" - } - ], - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/HTTPSecurityScheme.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/NonBearerHTTPSecurityScheme.json b/definitions/2.0.0-rc2/NonBearerHTTPSecurityScheme.json deleted file mode 100644 index 6363b58f..00000000 --- a/definitions/2.0.0-rc2/NonBearerHTTPSecurityScheme.json +++ /dev/null @@ -1,40 +0,0 @@ -{ - "not": { - "type": "object", - "properties": { - "scheme": { - "type": "string", - "enum": [ - "bearer" - ] - } - } - }, - "type": "object", - "required": [ - "scheme", - "type" - ], - "properties": { - "scheme": { - "type": "string" - }, - "description": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "http" - ] - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/NonBearerHTTPSecurityScheme.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/Reference.json b/definitions/2.0.0-rc2/Reference.json deleted file mode 100644 index 3dec6738..00000000 --- a/definitions/2.0.0-rc2/Reference.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "type": "object", - "required": [ - "$ref" - ], - "properties": { - "$ref": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/ReferenceObject.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/ReferenceObject.json b/definitions/2.0.0-rc2/ReferenceObject.json deleted file mode 100644 index 58537f85..00000000 --- a/definitions/2.0.0-rc2/ReferenceObject.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "type": "string", - "format": "uri-reference", - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/ReferenceObject.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/SecurityRequirement.json b/definitions/2.0.0-rc2/SecurityRequirement.json deleted file mode 100644 index f016ab77..00000000 --- a/definitions/2.0.0-rc2/SecurityRequirement.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/SecurityRequirement.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/SecurityScheme.json b/definitions/2.0.0-rc2/SecurityScheme.json deleted file mode 100644 index 3681c7f7..00000000 --- a/definitions/2.0.0-rc2/SecurityScheme.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/userPassword.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/apiKey.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/X509.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/symmetricEncryption.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/asymmetricEncryption.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/HTTPSecurityScheme.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flows.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/openIdConnect.json" - } - ], - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/SecurityScheme.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/X509.json b/definitions/2.0.0-rc2/X509.json deleted file mode 100644 index a0e54416..00000000 --- a/definitions/2.0.0-rc2/X509.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "X509" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/X509.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/apiKey.json b/definitions/2.0.0-rc2/apiKey.json deleted file mode 100644 index a9bd3778..00000000 --- a/definitions/2.0.0-rc2/apiKey.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "type": "object", - "required": [ - "type", - "in" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "apiKey" - ] - }, - "in": { - "type": "string", - "enum": [ - "user", - "password" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/apiKey.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/asymmetricEncryption.json b/definitions/2.0.0-rc2/asymmetricEncryption.json deleted file mode 100644 index 54f4ca27..00000000 --- a/definitions/2.0.0-rc2/asymmetricEncryption.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "asymmetricEncryption" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/asymmetricEncryption.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/asyncapi.json b/definitions/2.0.0-rc2/asyncapi.json deleted file mode 100644 index d228bfe3..00000000 --- a/definitions/2.0.0-rc2/asyncapi.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "title": "AsyncAPI 2.0.0-rc2 schema.", - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/asyncapi.json", - "type": "object", - "required": [ - "asyncapi", - "info", - "channels" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "asyncapi": { - "type": "string", - "enum": [ - "2.0.0-rc2" - ], - "description": "The AsyncAPI specification version of this document." - }, - "id": { - "type": "string", - "description": "A unique id representing the application.", - "format": "uri" - }, - "info": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/info.json" - }, - "servers": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/server.json" - } - }, - "defaultContentType": { - "type": "string" - }, - "channels": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/channels.json" - }, - "components": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/components.json" - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/tag.json" - }, - "uniqueItems": true - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json" - } - } -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/bindingsObject.json b/definitions/2.0.0-rc2/bindingsObject.json deleted file mode 100644 index 57ed4e7e..00000000 --- a/definitions/2.0.0-rc2/bindingsObject.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "type": "object", - "additionalProperties": true, - "properties": { - "http": {}, - "ws": {}, - "amqp": {}, - "amqp1": {}, - "mqtt": {}, - "mqtt5": {}, - "kafka": {}, - "nats": {}, - "jms": {}, - "sns": {}, - "sqs": {}, - "stomp": {}, - "redis": {} - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/channelItem.json b/definitions/2.0.0-rc2/channelItem.json deleted file mode 100644 index 307caab5..00000000 --- a/definitions/2.0.0-rc2/channelItem.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "minProperties": 1, - "properties": { - "$ref": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/ReferenceObject.json" - }, - "parameters": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/parameters.json" - }, - "description": { - "type": "string", - "description": "A description of the channel." - }, - "publish": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/operation.json" - }, - "subscribe": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/operation.json" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "bindings": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/channelItem.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/channels.json b/definitions/2.0.0-rc2/channels.json deleted file mode 100644 index 71287a4a..00000000 --- a/definitions/2.0.0-rc2/channels.json +++ /dev/null @@ -1,13 +0,0 @@ -{ - "type": "object", - "propertyNames": { - "type": "string", - "format": "uri-template", - "minLength": 1 - }, - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/channelItem.json" - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/channels.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/components.json b/definitions/2.0.0-rc2/components.json deleted file mode 100644 index ce124407..00000000 --- a/definitions/2.0.0-rc2/components.json +++ /dev/null @@ -1,84 +0,0 @@ -{ - "type": "object", - "description": "An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.", - "additionalProperties": false, - "properties": { - "schemas": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schemas.json" - }, - "messages": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/messages.json" - }, - "securitySchemes": { - "type": "object", - "patternProperties": { - "^[\\w\\d\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/SecurityScheme.json" - } - ] - } - } - }, - "parameters": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/parameters.json" - }, - "correlationIds": { - "type": "object", - "patternProperties": { - "^[\\w\\d\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/correlationId.json" - } - ] - } - } - }, - "operationTraits": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json" - } - }, - "messageTraits": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json" - } - }, - "serverBindings": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" - } - }, - "channelBindings": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" - } - }, - "operationBindings": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" - } - }, - "messageBindings": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" - } - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/components.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/contact.json b/definitions/2.0.0-rc2/contact.json deleted file mode 100644 index a9f64d10..00000000 --- a/definitions/2.0.0-rc2/contact.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "object", - "description": "Contact information for the owners of the API.", - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "description": "The identifying name of the contact person/organization." - }, - "url": { - "type": "string", - "description": "The URL pointing to the contact information.", - "format": "uri" - }, - "email": { - "type": "string", - "description": "The email address of the contact person/organization.", - "format": "email" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/contact.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/correlationId.json b/definitions/2.0.0-rc2/correlationId.json deleted file mode 100644 index 357c33a3..00000000 --- a/definitions/2.0.0-rc2/correlationId.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "object", - "required": [ - "location" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "description": { - "type": "string", - "description": "A optional description of the correlation ID. GitHub Flavored Markdown is allowed." - }, - "location": { - "type": "string", - "description": "A runtime expression that specifies the location of the correlation ID", - "pattern": "^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/correlationId.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/externalDocs.json b/definitions/2.0.0-rc2/externalDocs.json deleted file mode 100644 index 26f913df..00000000 --- a/definitions/2.0.0-rc2/externalDocs.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "type": "object", - "additionalProperties": false, - "description": "information about external documentation", - "required": [ - "url" - ], - "properties": { - "description": { - "type": "string" - }, - "url": { - "type": "string", - "format": "uri" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/info.json b/definitions/2.0.0-rc2/info.json deleted file mode 100644 index 138066b5..00000000 --- a/definitions/2.0.0-rc2/info.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "type": "object", - "description": "General information about the API.", - "required": [ - "version", - "title" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "title": { - "type": "string", - "description": "A unique and precise title of the API." - }, - "version": { - "type": "string", - "description": "A semantic version number of the API." - }, - "description": { - "type": "string", - "description": "A longer description of the API. Should be different from the title. CommonMark is allowed." - }, - "termsOfService": { - "type": "string", - "description": "A URL to the Terms of Service for the API. MUST be in the format of a URL.", - "format": "uri" - }, - "contact": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/contact.json" - }, - "license": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/license.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/info.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/license.json b/definitions/2.0.0-rc2/license.json deleted file mode 100644 index 55eef656..00000000 --- a/definitions/2.0.0-rc2/license.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "object", - "required": [ - "name" - ], - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "description": "The name of the license type. It's encouraged to use an OSI compatible license." - }, - "url": { - "type": "string", - "description": "The URL pointing to the license.", - "format": "uri" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/license.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/message.json b/definitions/2.0.0-rc2/message.json deleted file mode 100644 index d0cf30f3..00000000 --- a/definitions/2.0.0-rc2/message.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" - }, - { - "oneOf": [ - { - "type": "object", - "required": [ - "oneOf" - ], - "additionalProperties": false, - "properties": { - "oneOf": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/message.json" - } - } - } - }, - { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "schemaFormat": { - "type": "string" - }, - "contentType": { - "type": "string" - }, - "headers": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - }, - "payload": {}, - "correlationId": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/correlationId.json" - } - ] - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/tag.json" - }, - "uniqueItems": true - }, - "summary": { - "type": "string", - "description": "A brief summary of the message." - }, - "name": { - "type": "string", - "description": "Name of the message." - }, - "title": { - "type": "string", - "description": "A human-friendly title for the message." - }, - "description": { - "type": "string", - "description": "A longer description of the message. CommonMark is allowed." - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": { - "type": "object" - } - }, - "bindings": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" - }, - "traits": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json" - } - ] - } - } - } - } - ] - } - ], - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/message.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/messageTrait.json b/definitions/2.0.0-rc2/messageTrait.json deleted file mode 100644 index 5a77ac1d..00000000 --- a/definitions/2.0.0-rc2/messageTrait.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "schemaFormat": { - "type": "string" - }, - "contentType": { - "type": "string" - }, - "headers": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - } - ] - }, - "correlationId": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/correlationId.json" - } - ] - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/tag.json" - }, - "uniqueItems": true - }, - "summary": { - "type": "string", - "description": "A brief summary of the message." - }, - "name": { - "type": "string", - "description": "Name of the message." - }, - "title": { - "type": "string", - "description": "A human-friendly title for the message." - }, - "description": { - "type": "string", - "description": "A longer description of the message. CommonMark is allowed." - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": { - "type": "object" - } - }, - "bindings": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/messages.json b/definitions/2.0.0-rc2/messages.json deleted file mode 100644 index 5d842a27..00000000 --- a/definitions/2.0.0-rc2/messages.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/message.json" - }, - "description": "JSON objects describing the messages being consumed and produced by the API.", - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/messages.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/oauth2Flow.json b/definitions/2.0.0-rc2/oauth2Flow.json deleted file mode 100644 index 24d4880e..00000000 --- a/definitions/2.0.0-rc2/oauth2Flow.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "type": "object", - "properties": { - "authorizationUrl": { - "type": "string", - "format": "uri" - }, - "tokenUrl": { - "type": "string", - "format": "uri" - }, - "refreshUrl": { - "type": "string", - "format": "uri" - }, - "scopes": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Scopes.json" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/oauth2Flows.json b/definitions/2.0.0-rc2/oauth2Flows.json deleted file mode 100644 index 0d6843c9..00000000 --- a/definitions/2.0.0-rc2/oauth2Flows.json +++ /dev/null @@ -1,106 +0,0 @@ -{ - "type": "object", - "required": [ - "type", - "flows" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "oauth2" - ] - }, - "description": { - "type": "string" - }, - "flows": { - "type": "object", - "properties": { - "implicit": { - "allOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json" - }, - { - "required": [ - "authorizationUrl", - "scopes" - ] - }, - { - "not": { - "required": [ - "tokenUrl" - ] - } - } - ] - }, - "password": { - "allOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json" - }, - { - "required": [ - "tokenUrl", - "scopes" - ] - }, - { - "not": { - "required": [ - "authorizationUrl" - ] - } - } - ] - }, - "clientCredentials": { - "allOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json" - }, - { - "required": [ - "tokenUrl", - "scopes" - ] - }, - { - "not": { - "required": [ - "authorizationUrl" - ] - } - } - ] - }, - "authorizationCode": { - "allOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json" - }, - { - "required": [ - "authorizationUrl", - "tokenUrl", - "scopes" - ] - } - ] - } - }, - "additionalProperties": false, - "minProperties": 1 - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flows.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/oauth2Scopes.json b/definitions/2.0.0-rc2/oauth2Scopes.json deleted file mode 100644 index 82edfa86..00000000 --- a/definitions/2.0.0-rc2/oauth2Scopes.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "type": "object", - "additionalProperties": { - "type": "string" - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Scopes.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/openIdConnect.json b/definitions/2.0.0-rc2/openIdConnect.json deleted file mode 100644 index ebafafd6..00000000 --- a/definitions/2.0.0-rc2/openIdConnect.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "type": "object", - "required": [ - "type", - "openIdConnectUrl" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "openIdConnect" - ] - }, - "description": { - "type": "string" - }, - "openIdConnectUrl": { - "type": "string", - "format": "uri" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/openIdConnect.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/operation.json b/definitions/2.0.0-rc2/operation.json deleted file mode 100644 index 825da2d3..00000000 --- a/definitions/2.0.0-rc2/operation.json +++ /dev/null @@ -1,51 +0,0 @@ -{ - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "traits": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json" - } - ] - } - }, - "summary": { - "type": "string" - }, - "description": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/tag.json" - }, - "uniqueItems": true - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json" - }, - "operationId": { - "type": "string" - }, - "bindings": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" - }, - "message": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/message.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/operation.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/operationTrait.json b/definitions/2.0.0-rc2/operationTrait.json deleted file mode 100644 index 50079695..00000000 --- a/definitions/2.0.0-rc2/operationTrait.json +++ /dev/null @@ -1,35 +0,0 @@ -{ - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "summary": { - "type": "string" - }, - "description": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/tag.json" - }, - "uniqueItems": true - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json" - }, - "operationId": { - "type": "string" - }, - "bindings": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/parameter.json b/definitions/2.0.0-rc2/parameter.json deleted file mode 100644 index 13827c99..00000000 --- a/definitions/2.0.0-rc2/parameter.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "description": { - "type": "string", - "description": "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." - }, - "schema": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - }, - "location": { - "type": "string", - "description": "A runtime expression that specifies the location of the parameter value", - "pattern": "^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*" - }, - "$ref": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/ReferenceObject.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/parameter.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/parameters.json b/definitions/2.0.0-rc2/parameters.json deleted file mode 100644 index 17076e15..00000000 --- a/definitions/2.0.0-rc2/parameters.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/parameter.json" - } - ] - }, - "description": "JSON objects describing re-usable channel parameters.", - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/parameters.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/schema.json b/definitions/2.0.0-rc2/schema.json deleted file mode 100644 index 9de8a2cf..00000000 --- a/definitions/2.0.0-rc2/schema.json +++ /dev/null @@ -1,91 +0,0 @@ -{ - "allOf": [ - { - "$ref": "http://json-schema.org/draft-07/schema#" - }, - { - "type": "object", - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - }, - "items": { - "anyOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - }, - { - "type": "array", - "minItems": 1, - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - } - } - ], - "default": {} - }, - "allOf": { - "type": "array", - "minItems": 1, - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - } - }, - "oneOf": { - "type": "array", - "minItems": 2, - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - } - }, - "anyOf": { - "type": "array", - "minItems": 2, - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - } - }, - "not": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - }, - "properties": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - }, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - }, - "default": {} - }, - "propertyNames": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - }, - "contains": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - }, - "discriminator": { - "type": "string" - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json" - }, - "deprecated": { - "type": "boolean", - "default": false - } - } - } - ], - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/schemas.json b/definitions/2.0.0-rc2/schemas.json deleted file mode 100644 index ffacd8a0..00000000 --- a/definitions/2.0.0-rc2/schemas.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - }, - "description": "JSON objects describing schemas the API uses.", - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/schemas.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/server.json b/definitions/2.0.0-rc2/server.json deleted file mode 100644 index e16498b4..00000000 --- a/definitions/2.0.0-rc2/server.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "type": "object", - "description": "An object representing a Server.", - "required": [ - "url", - "protocol" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "url": { - "type": "string" - }, - "description": { - "type": "string" - }, - "protocol": { - "type": "string", - "description": "The transfer protocol." - }, - "protocolVersion": { - "type": "string" - }, - "variables": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/serverVariables.json" - }, - "security": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/SecurityRequirement.json" - } - }, - "bindings": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/server.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/serverVariable.json b/definitions/2.0.0-rc2/serverVariable.json deleted file mode 100644 index 4dce643d..00000000 --- a/definitions/2.0.0-rc2/serverVariable.json +++ /dev/null @@ -1,34 +0,0 @@ -{ - "type": "object", - "description": "An object representing a Server Variable for server URL template substitution.", - "minProperties": 1, - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "enum": { - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true - }, - "default": { - "type": "string" - }, - "description": { - "type": "string" - }, - "examples": { - "type": "array", - "items": { - "type": "string" - } - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/serverVariable.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/serverVariables.json b/definitions/2.0.0-rc2/serverVariables.json deleted file mode 100644 index dfbe5c8f..00000000 --- a/definitions/2.0.0-rc2/serverVariables.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/serverVariable.json" - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/serverVariables.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/specificationExtension.json b/definitions/2.0.0-rc2/specificationExtension.json deleted file mode 100644 index e7ebc1e9..00000000 --- a/definitions/2.0.0-rc2/specificationExtension.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "description": "Any property starting with x- is valid.", - "additionalProperties": true, - "additionalItems": true, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/symmetricEncryption.json b/definitions/2.0.0-rc2/symmetricEncryption.json deleted file mode 100644 index 6e965e5c..00000000 --- a/definitions/2.0.0-rc2/symmetricEncryption.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "symmetricEncryption" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/symmetricEncryption.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/tag.json b/definitions/2.0.0-rc2/tag.json deleted file mode 100644 index 3ad3bd8c..00000000 --- a/definitions/2.0.0-rc2/tag.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "object", - "additionalProperties": false, - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/tag.json" -} \ No newline at end of file diff --git a/definitions/2.0.0-rc2/userPassword.json b/definitions/2.0.0-rc2/userPassword.json deleted file mode 100644 index 46dfa2e6..00000000 --- a/definitions/2.0.0-rc2/userPassword.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "userPassword" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "additionalProperties": false, - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/userPassword.json" -} \ No newline at end of file diff --git a/schemas/2.0.0-rc1-without-$id.json b/schemas/2.0.0-rc1-without-$id.json deleted file mode 100644 index 8a2e342d..00000000 --- a/schemas/2.0.0-rc1-without-$id.json +++ /dev/null @@ -1,1613 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "title": "AsyncAPI 2.0.0-rc1 schema.", - "type": "object", - "required": [ - "asyncapi", - "id", - "info", - "channels" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "asyncapi": { - "type": "string", - "enum": [ - "2.0.0-rc1" - ], - "description": "The AsyncAPI specification version of this document." - }, - "id": { - "type": "string", - "description": "A unique id representing the application.", - "format": "uri-reference" - }, - "info": { - "$ref": "#/definitions/info" - }, - "servers": { - "type": "array", - "items": { - "$ref": "#/definitions/server" - }, - "uniqueItems": true - }, - "defaultContentType": { - "type": "string" - }, - "channels": { - "$ref": "#/definitions/channels" - }, - "components": { - "$ref": "#/definitions/components" - }, - "tags": { - "type": "array", - "items": { - "$ref": "#/definitions/tag" - }, - "uniqueItems": true - }, - "externalDocs": { - "$ref": "#/definitions/externalDocs" - } - }, - "definitions": { - "specificationExtension": { - "description": "Any property starting with x- is valid.", - "additionalProperties": true, - "additionalItems": true - }, - "info": { - "type": "object", - "description": "General information about the API.", - "required": [ - "version", - "title" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "title": { - "type": "string", - "description": "A unique and precise title of the API." - }, - "version": { - "type": "string", - "description": "A semantic version number of the API." - }, - "description": { - "type": "string", - "description": "A longer description of the API. Should be different from the title. CommonMark is allowed." - }, - "termsOfService": { - "type": "string", - "description": "A URL to the Terms of Service for the API. MUST be in the format of a URL.", - "format": "uri" - }, - "contact": { - "$ref": "#/definitions/contact" - }, - "license": { - "$ref": "#/definitions/license" - } - } - }, - "contact": { - "type": "object", - "description": "Contact information for the owners of the API.", - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "description": "The identifying name of the contact person/organization." - }, - "url": { - "type": "string", - "description": "The URL pointing to the contact information.", - "format": "uri" - }, - "email": { - "type": "string", - "description": "The email address of the contact person/organization.", - "format": "email" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - } - }, - "license": { - "type": "object", - "required": [ - "name" - ], - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "description": "The name of the license type. It's encouraged to use an OSI compatible license." - }, - "url": { - "type": "string", - "description": "The URL pointing to the license.", - "format": "uri" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - } - }, - "server": { - "type": "object", - "description": "An object representing a Server.", - "required": [ - "url", - "protocol" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "url": { - "type": "string" - }, - "description": { - "type": "string" - }, - "protocol": { - "type": "string", - "description": "The transfer protocol." - }, - "protocolVersion": { - "type": "string" - }, - "variables": { - "$ref": "#/definitions/serverVariables" - }, - "baseChannel": { - "type": "string", - "x-format": "uri-path" - }, - "security": { - "type": "array", - "items": { - "$ref": "#/definitions/SecurityRequirement" - } - } - } - }, - "serverVariables": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/serverVariable" - } - }, - "serverVariable": { - "type": "object", - "description": "An object representing a Server Variable for server URL template substitution.", - "minProperties": 1, - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "enum": { - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true - }, - "default": { - "type": "string" - }, - "description": { - "type": "string" - }, - "examples": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "SecurityRequirement": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true - } - }, - "channels": { - "type": "object", - "propertyNames": { - "type": "string", - "format": "uri-template", - "minLength": 1 - }, - "additionalProperties": { - "$ref": "#/definitions/channelItem" - } - }, - "channelItem": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "minProperties": 1, - "properties": { - "$ref": { - "$ref": "#/definitions/ReferenceObject" - }, - "parameters": { - "$ref": "#/definitions/parameters" - }, - "publish": { - "$ref": "#/definitions/operation" - }, - "subscribe": { - "$ref": "#/definitions/operation" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "protocolInfo": { - "type": "object", - "additionalProperties": { - "type": "object" - } - } - } - }, - "ReferenceObject": { - "type": "string", - "format": "uri" - }, - "parameters": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/parameter" - } - ] - }, - "description": "JSON objects describing re-usable channel parameters." - }, - "Reference": { - "type": "object", - "required": [ - "$ref" - ], - "properties": { - "$ref": { - "$ref": "#/definitions/ReferenceObject" - } - } - }, - "parameter": { - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "description": { - "type": "string", - "description": "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." - }, - "name": { - "type": "string", - "description": "The name of the parameter." - }, - "schema": { - "$ref": "#/definitions/schema" - }, - "$ref": { - "$ref": "#/definitions/ReferenceObject" - } - } - }, - "schema": { - "type": "object", - "description": "A deterministic version of a JSON Schema object.", - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "$ref": { - "$ref": "#/definitions/ReferenceObject" - }, - "format": { - "type": "string" - }, - "title": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "description": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "default": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "multipleOf": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "maximum": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "exclusiveMaximum": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "minimum": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "exclusiveMinimum": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "maxLength": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "minLength": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "pattern": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "maxItems": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "minItems": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "uniqueItems": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "maxProperties": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "minProperties": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "required": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "enum": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "additionalProperties": { - "anyOf": [ - { - "$ref": "#/definitions/schema" - }, - { - "type": "boolean" - } - ], - "default": {} - }, - "type": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "items": { - "anyOf": [ - { - "$ref": "#/definitions/schema" - }, - { - "type": "array", - "minItems": 1, - "items": { - "$ref": "#/definitions/schema" - } - } - ], - "default": {} - }, - "allOf": { - "type": "array", - "minItems": 1, - "items": { - "$ref": "#/definitions/schema" - } - }, - "oneOf": { - "type": "array", - "minItems": 2, - "items": { - "$ref": "#/definitions/schema" - } - }, - "anyOf": { - "type": "array", - "minItems": 2, - "items": { - "$ref": "#/definitions/schema" - } - }, - "not": { - "$ref": "#/definitions/schema" - }, - "properties": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/schema" - }, - "default": {} - }, - "discriminator": { - "type": "string" - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "xml": { - "$ref": "#/definitions/xml" - }, - "externalDocs": { - "$ref": "#/definitions/externalDocs" - }, - "example": {}, - "examples": { - "type": "array", - "items": {} - } - }, - "additionalProperties": false - }, - "json-schema-draft-07-schema": { - "id": "http://json-schema.org/draft-04/schema", - "$schema": "http://json-schema.org/draft-04/schema", - "description": "Core schema meta-schema", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": { - "$ref": "#/definitions/json-schema-draft-07-schema" - } - }, - "positiveInteger": { - "type": "integer", - "minimum": 0 - }, - "positiveIntegerDefault0": { - "allOf": [ - { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/positiveInteger" - }, - { - "default": 0 - } - ] - }, - "simpleTypes": { - "enum": [ - "array", - "boolean", - "integer", - "null", - "number", - "object", - "string" - ] - }, - "stringArray": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "uniqueItems": true - } - }, - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "$schema": { - "type": "string" - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": {}, - "multipleOf": { - "type": "number", - "minimum": 0, - "exclusiveMinimum": true - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "boolean", - "default": false - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "boolean", - "default": false - }, - "maxLength": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/positiveInteger" - }, - "minLength": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/positiveIntegerDefault0" - }, - "pattern": { - "type": "string", - "format": "regex" - }, - "additionalItems": { - "anyOf": [ - { - "type": "boolean" - }, - { - "$ref": "#/definitions/json-schema-draft-07-schema" - } - ], - "default": {} - }, - "items": { - "anyOf": [ - { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/schemaArray" - } - ], - "default": {} - }, - "maxItems": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/positiveInteger" - }, - "minItems": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/positiveIntegerDefault0" - }, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxProperties": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/positiveInteger" - }, - "minProperties": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/positiveIntegerDefault0" - }, - "required": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/stringArray" - }, - "additionalProperties": { - "anyOf": [ - { - "type": "boolean" - }, - { - "$ref": "#/definitions/json-schema-draft-07-schema" - } - ], - "default": {} - }, - "definitions": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "default": {} - }, - "properties": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "default": {} - }, - "dependencies": { - "type": "object", - "additionalProperties": { - "anyOf": [ - { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/stringArray" - } - ] - } - }, - "enum": { - "type": "array", - "minItems": 1, - "uniqueItems": true - }, - "type": { - "anyOf": [ - { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/simpleTypes" - }, - { - "type": "array", - "items": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/simpleTypes" - }, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "format": { - "type": "string" - }, - "allOf": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/schemaArray" - }, - "anyOf": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/schemaArray" - }, - "oneOf": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/schemaArray" - }, - "not": { - "$ref": "#/definitions/json-schema-draft-07-schema" - } - }, - "dependencies": { - "exclusiveMaximum": [ - "maximum" - ], - "exclusiveMinimum": [ - "minimum" - ] - }, - "default": {} - }, - "xml": { - "type": "object", - "additionalProperties": false, - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - }, - "prefix": { - "type": "string" - }, - "attribute": { - "type": "boolean", - "default": false - }, - "wrapped": { - "type": "boolean", - "default": false - } - } - }, - "externalDocs": { - "type": "object", - "additionalProperties": false, - "description": "information about external documentation", - "required": [ - "url" - ], - "properties": { - "description": { - "type": "string" - }, - "url": { - "type": "string", - "format": "uri" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - } - }, - "operation": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "traits": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/operationTrait" - } - ] - } - }, - "summary": { - "type": "string" - }, - "description": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "$ref": "#/definitions/tag" - }, - "uniqueItems": true - }, - "externalDocs": { - "$ref": "#/definitions/externalDocs" - }, - "operationId": { - "type": "string" - }, - "protocolInfo": { - "type": "object", - "additionalProperties": { - "type": "object" - } - }, - "message": { - "oneOf": [ - { - "$ref": "#/definitions/message" - }, - { - "type": "object", - "required": [ - "oneOf" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "oneOf": { - "type": "array", - "minItems": 2, - "items": { - "$ref": "#/definitions/message" - } - } - } - } - ] - } - } - }, - "operationTrait": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "summary": { - "type": "string" - }, - "description": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "$ref": "#/definitions/tag" - }, - "uniqueItems": true - }, - "externalDocs": { - "$ref": "#/definitions/externalDocs" - }, - "operationId": { - "type": "string" - }, - "protocolInfo": { - "type": "object", - "additionalProperties": { - "type": "object" - } - } - } - }, - "tag": { - "type": "object", - "additionalProperties": false, - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "externalDocs": { - "$ref": "#/definitions/externalDocs" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - } - }, - "message": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "schemaFormat": { - "type": "string" - }, - "contentType": { - "type": "string" - }, - "headers": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/schema" - } - ] - } - }, - "payload": {}, - "correlationId": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/correlationId" - } - ] - }, - "tags": { - "type": "array", - "items": { - "$ref": "#/definitions/tag" - }, - "uniqueItems": true - }, - "summary": { - "type": "string", - "description": "A brief summary of the message." - }, - "name": { - "type": "string", - "description": "Name of the message." - }, - "title": { - "type": "string", - "description": "A human-friendly title for the message." - }, - "description": { - "type": "string", - "description": "A longer description of the message. CommonMark is allowed." - }, - "externalDocs": { - "$ref": "#/definitions/externalDocs" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": { - "type": "object" - } - }, - "protocolInfo": { - "type": "object", - "additionalProperties": { - "type": "object" - } - }, - "traits": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/messageTrait" - } - ] - } - } - } - }, - "correlationId": { - "type": "object", - "required": [ - "location" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "description": { - "type": "string", - "description": "A optional description of the correlation ID. GitHub Flavored Markdown is allowed." - }, - "location": { - "type": "string", - "description": "A runtime expression that specifies the location of the correlation ID", - "pattern": "^\\$message\\.(header|payload)#(/\\w+)+" - } - } - }, - "messageTrait": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "schemaFormat": { - "type": "string" - }, - "contentType": { - "type": "string" - }, - "headers": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/schema" - } - ] - } - }, - "correlationId": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/correlationId" - } - ] - }, - "tags": { - "type": "array", - "items": { - "$ref": "#/definitions/tag" - }, - "uniqueItems": true - }, - "summary": { - "type": "string", - "description": "A brief summary of the message." - }, - "name": { - "type": "string", - "description": "Name of the message." - }, - "title": { - "type": "string", - "description": "A human-friendly title for the message." - }, - "description": { - "type": "string", - "description": "A longer description of the message. CommonMark is allowed." - }, - "externalDocs": { - "$ref": "#/definitions/externalDocs" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": { - "type": "object" - } - }, - "protocolInfo": { - "type": "object", - "additionalProperties": { - "type": "object" - } - } - } - }, - "components": { - "type": "object", - "description": "An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.", - "additionalProperties": false, - "properties": { - "schemas": { - "$ref": "#/definitions/schemas" - }, - "messages": { - "$ref": "#/definitions/messages" - }, - "securitySchemes": { - "type": "object", - "patternProperties": { - "^[\\w\\d\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/SecurityScheme" - } - ] - } - } - }, - "parameters": { - "$ref": "#/definitions/parameters" - }, - "correlationIds": { - "type": "object", - "patternProperties": { - "^[\\w\\d\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/correlationId" - } - ] - } - } - }, - "traits": { - "$ref": "#/definitions/traits" - } - } - }, - "schemas": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/schema" - }, - "description": "JSON objects describing schemas the API uses." - }, - "messages": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/message" - }, - "description": "JSON objects describing the messages being consumed and produced by the API." - }, - "SecurityScheme": { - "oneOf": [ - { - "$ref": "#/definitions/userPassword" - }, - { - "$ref": "#/definitions/apiKey" - }, - { - "$ref": "#/definitions/X509" - }, - { - "$ref": "#/definitions/symmetricEncryption" - }, - { - "$ref": "#/definitions/asymmetricEncryption" - }, - { - "$ref": "#/definitions/HTTPSecurityScheme" - }, - { - "$ref": "#/definitions/oauth2Flows" - }, - { - "$ref": "#/definitions/openIdConnect" - } - ] - }, - "userPassword": { - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "userPassword" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "additionalProperties": false - }, - "apiKey": { - "type": "object", - "required": [ - "type", - "in" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "apiKey" - ] - }, - "in": { - "type": "string", - "enum": [ - "user", - "password" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "additionalProperties": false - }, - "X509": { - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "X509" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "additionalProperties": false - }, - "symmetricEncryption": { - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "symmetricEncryption" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "additionalProperties": false - }, - "asymmetricEncryption": { - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "asymmetricEncryption" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "additionalProperties": false - }, - "HTTPSecurityScheme": { - "oneOf": [ - { - "$ref": "#/definitions/NonBearerHTTPSecurityScheme" - }, - { - "$ref": "#/definitions/BearerHTTPSecurityScheme" - }, - { - "$ref": "#/definitions/APIKeyHTTPSecurityScheme" - } - ] - }, - "NonBearerHTTPSecurityScheme": { - "not": { - "type": "object", - "properties": { - "scheme": { - "type": "string", - "enum": [ - "bearer" - ] - } - } - }, - "type": "object", - "required": [ - "scheme", - "type" - ], - "properties": { - "scheme": { - "type": "string" - }, - "description": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "http" - ] - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "additionalProperties": false - }, - "BearerHTTPSecurityScheme": { - "type": "object", - "required": [ - "type", - "scheme" - ], - "properties": { - "scheme": { - "type": "string", - "enum": [ - "bearer" - ] - }, - "bearerFormat": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "http" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "additionalProperties": false - }, - "APIKeyHTTPSecurityScheme": { - "type": "object", - "required": [ - "type", - "name", - "in" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "httpApiKey" - ] - }, - "name": { - "type": "string" - }, - "in": { - "type": "string", - "enum": [ - "header", - "query", - "cookie" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "additionalProperties": false - }, - "oauth2Flows": { - "type": "object", - "required": [ - "type", - "flows" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "oauth2" - ] - }, - "description": { - "type": "string" - }, - "flows": { - "type": "object", - "properties": { - "implicit": { - "allOf": [ - { - "$ref": "#/definitions/oauth2Flow" - }, - { - "required": [ - "authorizationUrl", - "scopes" - ] - }, - { - "not": { - "required": [ - "tokenUrl" - ] - } - } - ] - }, - "password": { - "allOf": [ - { - "$ref": "#/definitions/oauth2Flow" - }, - { - "required": [ - "tokenUrl", - "scopes" - ] - }, - { - "not": { - "required": [ - "authorizationUrl" - ] - } - } - ] - }, - "clientCredentials": { - "allOf": [ - { - "$ref": "#/definitions/oauth2Flow" - }, - { - "required": [ - "tokenUrl", - "scopes" - ] - }, - { - "not": { - "required": [ - "authorizationUrl" - ] - } - } - ] - }, - "authorizationCode": { - "allOf": [ - { - "$ref": "#/definitions/oauth2Flow" - }, - { - "required": [ - "authorizationUrl", - "tokenUrl", - "scopes" - ] - } - ] - } - }, - "additionalProperties": false, - "minProperties": 1 - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - } - }, - "oauth2Flow": { - "type": "object", - "properties": { - "authorizationUrl": { - "type": "string", - "format": "uri" - }, - "tokenUrl": { - "type": "string", - "format": "uri" - }, - "refreshUrl": { - "type": "string", - "format": "uri" - }, - "scopes": { - "$ref": "#/definitions/oauth2Scopes" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "additionalProperties": false - }, - "oauth2Scopes": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "openIdConnect": { - "type": "object", - "required": [ - "type", - "openIdConnectUrl" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "openIdConnect" - ] - }, - "description": { - "type": "string" - }, - "openIdConnectUrl": { - "type": "string", - "format": "uri" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "additionalProperties": false - }, - "traits": { - "type": "object", - "additionalProperties": { - "anyOf": [ - { - "$ref": "#/definitions/operationTrait" - }, - { - "$ref": "#/definitions/messageTrait" - } - ] - } - } - }, - "description": "!!Auto generated!! \n Do not manually edit. " -} \ No newline at end of file diff --git a/schemas/2.0.0-rc1.json b/schemas/2.0.0-rc1.json deleted file mode 100644 index 77553efc..00000000 --- a/schemas/2.0.0-rc1.json +++ /dev/null @@ -1,1655 +0,0 @@ -{ - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/asyncapi.json", - "$schema": "http://json-schema.org/draft-07/schema", - "title": "AsyncAPI 2.0.0-rc1 schema.", - "type": "object", - "required": [ - "asyncapi", - "id", - "info", - "channels" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "asyncapi": { - "type": "string", - "enum": [ - "2.0.0-rc1" - ], - "description": "The AsyncAPI specification version of this document." - }, - "id": { - "type": "string", - "description": "A unique id representing the application.", - "format": "uri-reference" - }, - "info": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/info.json" - }, - "servers": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/server.json" - }, - "uniqueItems": true - }, - "defaultContentType": { - "type": "string" - }, - "channels": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/channels.json" - }, - "components": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/components.json" - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/tag.json" - }, - "uniqueItems": true - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json" - } - }, - "definitions": { - "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json", - "description": "Any property starting with x- is valid.", - "additionalProperties": true, - "additionalItems": true - }, - "http://asyncapi.com/definitions/2.0.0-rc1/info.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/info.json", - "type": "object", - "description": "General information about the API.", - "required": [ - "version", - "title" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "title": { - "type": "string", - "description": "A unique and precise title of the API." - }, - "version": { - "type": "string", - "description": "A semantic version number of the API." - }, - "description": { - "type": "string", - "description": "A longer description of the API. Should be different from the title. CommonMark is allowed." - }, - "termsOfService": { - "type": "string", - "description": "A URL to the Terms of Service for the API. MUST be in the format of a URL.", - "format": "uri" - }, - "contact": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/contact.json" - }, - "license": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/license.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/contact.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/contact.json", - "type": "object", - "description": "Contact information for the owners of the API.", - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "description": "The identifying name of the contact person/organization." - }, - "url": { - "type": "string", - "description": "The URL pointing to the contact information.", - "format": "uri" - }, - "email": { - "type": "string", - "description": "The email address of the contact person/organization.", - "format": "email" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/license.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/license.json", - "type": "object", - "required": [ - "name" - ], - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "description": "The name of the license type. It's encouraged to use an OSI compatible license." - }, - "url": { - "type": "string", - "description": "The URL pointing to the license.", - "format": "uri" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/server.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/server.json", - "type": "object", - "description": "An object representing a Server.", - "required": [ - "url", - "protocol" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "url": { - "type": "string" - }, - "description": { - "type": "string" - }, - "protocol": { - "type": "string", - "description": "The transfer protocol." - }, - "protocolVersion": { - "type": "string" - }, - "variables": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/serverVariables.json" - }, - "baseChannel": { - "type": "string", - "x-format": "uri-path" - }, - "security": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/SecurityRequirement.json" - } - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/serverVariables.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/serverVariables.json", - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/serverVariable.json" - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/serverVariable.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/serverVariable.json", - "type": "object", - "description": "An object representing a Server Variable for server URL template substitution.", - "minProperties": 1, - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "enum": { - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true - }, - "default": { - "type": "string" - }, - "description": { - "type": "string" - }, - "examples": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/SecurityRequirement.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/SecurityRequirement.json", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/channels.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/channels.json", - "type": "object", - "propertyNames": { - "type": "string", - "format": "uri-template", - "minLength": 1 - }, - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/channelItem.json" - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/channelItem.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/channelItem.json", - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "minProperties": 1, - "properties": { - "$ref": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json" - }, - "parameters": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/parameters.json" - }, - "publish": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/operation.json" - }, - "subscribe": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/operation.json" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "protocolInfo": { - "type": "object", - "additionalProperties": { - "type": "object" - } - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json", - "type": "string", - "format": "uri" - }, - "http://asyncapi.com/definitions/2.0.0-rc1/parameters.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/parameters.json", - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/parameter.json" - } - ] - }, - "description": "JSON objects describing re-usable channel parameters." - }, - "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json", - "type": "object", - "required": [ - "$ref" - ], - "properties": { - "$ref": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/parameter.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/parameter.json", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "description": { - "type": "string", - "description": "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." - }, - "name": { - "type": "string", - "description": "The name of the parameter." - }, - "schema": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - }, - "$ref": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/schema.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json", - "type": "object", - "description": "A deterministic version of a JSON Schema object.", - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "$ref": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/ReferenceObject.json" - }, - "format": { - "type": "string" - }, - "title": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/title" - }, - "description": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/description" - }, - "default": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/default" - }, - "multipleOf": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/multipleOf" - }, - "maximum": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/maximum" - }, - "exclusiveMaximum": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMaximum" - }, - "minimum": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/minimum" - }, - "exclusiveMinimum": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/exclusiveMinimum" - }, - "maxLength": { - "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger" - }, - "minLength": { - "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" - }, - "pattern": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/pattern" - }, - "maxItems": { - "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger" - }, - "minItems": { - "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" - }, - "uniqueItems": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/uniqueItems" - }, - "maxProperties": { - "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveInteger" - }, - "minProperties": { - "$ref": "http://json-schema.org/draft-04/schema#/definitions/positiveIntegerDefault0" - }, - "required": { - "$ref": "http://json-schema.org/draft-04/schema#/definitions/stringArray" - }, - "enum": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/enum" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "additionalProperties": { - "anyOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - }, - { - "type": "boolean" - } - ], - "default": {} - }, - "type": { - "$ref": "http://json-schema.org/draft-04/schema#/properties/type" - }, - "items": { - "anyOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - }, - { - "type": "array", - "minItems": 1, - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - } - } - ], - "default": {} - }, - "allOf": { - "type": "array", - "minItems": 1, - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - } - }, - "oneOf": { - "type": "array", - "minItems": 2, - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - } - }, - "anyOf": { - "type": "array", - "minItems": 2, - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - } - }, - "not": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - }, - "properties": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - }, - "default": {} - }, - "discriminator": { - "type": "string" - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "xml": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/xml.json" - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json" - }, - "example": {}, - "examples": { - "type": "array", - "items": {} - } - }, - "additionalProperties": false - }, - "http://json-schema.org/draft-04/schema": { - "id": "http://json-schema.org/draft-04/schema", - "$schema": "http://json-schema.org/draft-04/schema", - "description": "Core schema meta-schema", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": { - "$ref": "#" - } - }, - "positiveInteger": { - "type": "integer", - "minimum": 0 - }, - "positiveIntegerDefault0": { - "allOf": [ - { - "$ref": "#/definitions/positiveInteger" - }, - { - "default": 0 - } - ] - }, - "simpleTypes": { - "enum": [ - "array", - "boolean", - "integer", - "null", - "number", - "object", - "string" - ] - }, - "stringArray": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "uniqueItems": true - } - }, - "type": "object", - "properties": { - "id": { - "type": "string" - }, - "$schema": { - "type": "string" - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": {}, - "multipleOf": { - "type": "number", - "minimum": 0, - "exclusiveMinimum": true - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "boolean", - "default": false - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "boolean", - "default": false - }, - "maxLength": { - "$ref": "#/definitions/positiveInteger" - }, - "minLength": { - "$ref": "#/definitions/positiveIntegerDefault0" - }, - "pattern": { - "type": "string", - "format": "regex" - }, - "additionalItems": { - "anyOf": [ - { - "type": "boolean" - }, - { - "$ref": "#" - } - ], - "default": {} - }, - "items": { - "anyOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/schemaArray" - } - ], - "default": {} - }, - "maxItems": { - "$ref": "#/definitions/positiveInteger" - }, - "minItems": { - "$ref": "#/definitions/positiveIntegerDefault0" - }, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxProperties": { - "$ref": "#/definitions/positiveInteger" - }, - "minProperties": { - "$ref": "#/definitions/positiveIntegerDefault0" - }, - "required": { - "$ref": "#/definitions/stringArray" - }, - "additionalProperties": { - "anyOf": [ - { - "type": "boolean" - }, - { - "$ref": "#" - } - ], - "default": {} - }, - "definitions": { - "type": "object", - "additionalProperties": { - "$ref": "#" - }, - "default": {} - }, - "properties": { - "type": "object", - "additionalProperties": { - "$ref": "#" - }, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": { - "$ref": "#" - }, - "default": {} - }, - "dependencies": { - "type": "object", - "additionalProperties": { - "anyOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/stringArray" - } - ] - } - }, - "enum": { - "type": "array", - "minItems": 1, - "uniqueItems": true - }, - "type": { - "anyOf": [ - { - "$ref": "#/definitions/simpleTypes" - }, - { - "type": "array", - "items": { - "$ref": "#/definitions/simpleTypes" - }, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "format": { - "type": "string" - }, - "allOf": { - "$ref": "#/definitions/schemaArray" - }, - "anyOf": { - "$ref": "#/definitions/schemaArray" - }, - "oneOf": { - "$ref": "#/definitions/schemaArray" - }, - "not": { - "$ref": "#" - } - }, - "dependencies": { - "exclusiveMaximum": [ - "maximum" - ], - "exclusiveMinimum": [ - "minimum" - ] - }, - "default": {} - }, - "http://asyncapi.com/definitions/2.0.0-rc1/xml.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/xml.json", - "type": "object", - "additionalProperties": false, - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string" - }, - "prefix": { - "type": "string" - }, - "attribute": { - "type": "boolean", - "default": false - }, - "wrapped": { - "type": "boolean", - "default": false - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json", - "type": "object", - "additionalProperties": false, - "description": "information about external documentation", - "required": [ - "url" - ], - "properties": { - "description": { - "type": "string" - }, - "url": { - "type": "string", - "format": "uri" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/operation.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/operation.json", - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "traits": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json" - } - ] - } - }, - "summary": { - "type": "string" - }, - "description": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/tag.json" - }, - "uniqueItems": true - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json" - }, - "operationId": { - "type": "string" - }, - "protocolInfo": { - "type": "object", - "additionalProperties": { - "type": "object" - } - }, - "message": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/message.json" - }, - { - "type": "object", - "required": [ - "oneOf" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "oneOf": { - "type": "array", - "minItems": 2, - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/message.json" - } - } - } - } - ] - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json", - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "summary": { - "type": "string" - }, - "description": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/tag.json" - }, - "uniqueItems": true - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json" - }, - "operationId": { - "type": "string" - }, - "protocolInfo": { - "type": "object", - "additionalProperties": { - "type": "object" - } - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/tag.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/tag.json", - "type": "object", - "additionalProperties": false, - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/message.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/message.json", - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "schemaFormat": { - "type": "string" - }, - "contentType": { - "type": "string" - }, - "headers": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - } - ] - } - }, - "payload": {}, - "correlationId": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/correlationId.json" - } - ] - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/tag.json" - }, - "uniqueItems": true - }, - "summary": { - "type": "string", - "description": "A brief summary of the message." - }, - "name": { - "type": "string", - "description": "Name of the message." - }, - "title": { - "type": "string", - "description": "A human-friendly title for the message." - }, - "description": { - "type": "string", - "description": "A longer description of the message. CommonMark is allowed." - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": { - "type": "object" - } - }, - "protocolInfo": { - "type": "object", - "additionalProperties": { - "type": "object" - } - }, - "traits": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json" - } - ] - } - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/correlationId.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/correlationId.json", - "type": "object", - "required": [ - "location" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "description": { - "type": "string", - "description": "A optional description of the correlation ID. GitHub Flavored Markdown is allowed." - }, - "location": { - "type": "string", - "description": "A runtime expression that specifies the location of the correlation ID", - "pattern": "^\\$message\\.(header|payload)#(/\\w+)+" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json", - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "properties": { - "schemaFormat": { - "type": "string" - }, - "contentType": { - "type": "string" - }, - "headers": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - } - ] - } - }, - "correlationId": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/correlationId.json" - } - ] - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/tag.json" - }, - "uniqueItems": true - }, - "summary": { - "type": "string", - "description": "A brief summary of the message." - }, - "name": { - "type": "string", - "description": "Name of the message." - }, - "title": { - "type": "string", - "description": "A human-friendly title for the message." - }, - "description": { - "type": "string", - "description": "A longer description of the message. CommonMark is allowed." - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/externalDocs.json" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": { - "type": "object" - } - }, - "protocolInfo": { - "type": "object", - "additionalProperties": { - "type": "object" - } - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/components.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/components.json", - "type": "object", - "description": "An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.", - "additionalProperties": false, - "properties": { - "schemas": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schemas.json" - }, - "messages": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/messages.json" - }, - "securitySchemes": { - "type": "object", - "patternProperties": { - "^[\\w\\d\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/SecurityScheme.json" - } - ] - } - } - }, - "parameters": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/parameters.json" - }, - "correlationIds": { - "type": "object", - "patternProperties": { - "^[\\w\\d\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/correlationId.json" - } - ] - } - } - }, - "traits": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/traits.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/schemas.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/schemas.json", - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/schema.json" - }, - "description": "JSON objects describing schemas the API uses." - }, - "http://asyncapi.com/definitions/2.0.0-rc1/messages.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/messages.json", - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/message.json" - }, - "description": "JSON objects describing the messages being consumed and produced by the API." - }, - "http://asyncapi.com/definitions/2.0.0-rc1/SecurityScheme.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/SecurityScheme.json", - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/userPassword.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/apiKey.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/X509.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/symmetricEncryption.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/asymmetricEncryption.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/HTTPSecurityScheme.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flows.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/openIdConnect.json" - } - ] - }, - "http://asyncapi.com/definitions/2.0.0-rc1/userPassword.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/userPassword.json", - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "userPassword" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "additionalProperties": false - }, - "http://asyncapi.com/definitions/2.0.0-rc1/apiKey.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/apiKey.json", - "type": "object", - "required": [ - "type", - "in" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "apiKey" - ] - }, - "in": { - "type": "string", - "enum": [ - "user", - "password" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "additionalProperties": false - }, - "http://asyncapi.com/definitions/2.0.0-rc1/X509.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/X509.json", - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "X509" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "additionalProperties": false - }, - "http://asyncapi.com/definitions/2.0.0-rc1/symmetricEncryption.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/symmetricEncryption.json", - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "symmetricEncryption" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "additionalProperties": false - }, - "http://asyncapi.com/definitions/2.0.0-rc1/asymmetricEncryption.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/asymmetricEncryption.json", - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "asymmetricEncryption" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "additionalProperties": false - }, - "http://asyncapi.com/definitions/2.0.0-rc1/HTTPSecurityScheme.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/HTTPSecurityScheme.json", - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/NonBearerHTTPSecurityScheme.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/BearerHTTPSecurityScheme.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/APIKeyHTTPSecurityScheme.json" - } - ] - }, - "http://asyncapi.com/definitions/2.0.0-rc1/NonBearerHTTPSecurityScheme.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/NonBearerHTTPSecurityScheme.json", - "not": { - "type": "object", - "properties": { - "scheme": { - "type": "string", - "enum": [ - "bearer" - ] - } - } - }, - "type": "object", - "required": [ - "scheme", - "type" - ], - "properties": { - "scheme": { - "type": "string" - }, - "description": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "http" - ] - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "additionalProperties": false - }, - "http://asyncapi.com/definitions/2.0.0-rc1/BearerHTTPSecurityScheme.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/BearerHTTPSecurityScheme.json", - "type": "object", - "required": [ - "type", - "scheme" - ], - "properties": { - "scheme": { - "type": "string", - "enum": [ - "bearer" - ] - }, - "bearerFormat": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "http" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "additionalProperties": false - }, - "http://asyncapi.com/definitions/2.0.0-rc1/APIKeyHTTPSecurityScheme.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/APIKeyHTTPSecurityScheme.json", - "type": "object", - "required": [ - "type", - "name", - "in" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "httpApiKey" - ] - }, - "name": { - "type": "string" - }, - "in": { - "type": "string", - "enum": [ - "header", - "query", - "cookie" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "additionalProperties": false - }, - "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flows.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flows.json", - "type": "object", - "required": [ - "type", - "flows" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "oauth2" - ] - }, - "description": { - "type": "string" - }, - "flows": { - "type": "object", - "properties": { - "implicit": { - "allOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json" - }, - { - "required": [ - "authorizationUrl", - "scopes" - ] - }, - { - "not": { - "required": [ - "tokenUrl" - ] - } - } - ] - }, - "password": { - "allOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json" - }, - { - "required": [ - "tokenUrl", - "scopes" - ] - }, - { - "not": { - "required": [ - "authorizationUrl" - ] - } - } - ] - }, - "clientCredentials": { - "allOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json" - }, - { - "required": [ - "tokenUrl", - "scopes" - ] - }, - { - "not": { - "required": [ - "authorizationUrl" - ] - } - } - ] - }, - "authorizationCode": { - "allOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json" - }, - { - "required": [ - "authorizationUrl", - "tokenUrl", - "scopes" - ] - } - ] - } - }, - "additionalProperties": false, - "minProperties": 1 - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Flow.json", - "type": "object", - "properties": { - "authorizationUrl": { - "type": "string", - "format": "uri" - }, - "tokenUrl": { - "type": "string", - "format": "uri" - }, - "refreshUrl": { - "type": "string", - "format": "uri" - }, - "scopes": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Scopes.json" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "additionalProperties": false - }, - "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Scopes.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/oauth2Scopes.json", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "http://asyncapi.com/definitions/2.0.0-rc1/openIdConnect.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/openIdConnect.json", - "type": "object", - "required": [ - "type", - "openIdConnectUrl" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "openIdConnect" - ] - }, - "description": { - "type": "string" - }, - "openIdConnectUrl": { - "type": "string", - "format": "uri" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/specificationExtension.json" - } - }, - "additionalProperties": false - }, - "http://asyncapi.com/definitions/2.0.0-rc1/traits.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc1/traits.json", - "type": "object", - "additionalProperties": { - "anyOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json" - } - ] - } - } - }, - "description": "!!Auto generated!! \n Do not manually edit. " -} \ No newline at end of file diff --git a/schemas/2.0.0-rc2-without-$id.json b/schemas/2.0.0-rc2-without-$id.json deleted file mode 100644 index 97be4c9b..00000000 --- a/schemas/2.0.0-rc2-without-$id.json +++ /dev/null @@ -1,1560 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema", - "title": "AsyncAPI 2.0.0-rc2 schema.", - "type": "object", - "required": [ - "asyncapi", - "info", - "channels" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "asyncapi": { - "type": "string", - "enum": [ - "2.0.0-rc2" - ], - "description": "The AsyncAPI specification version of this document." - }, - "id": { - "type": "string", - "description": "A unique id representing the application.", - "format": "uri" - }, - "info": { - "$ref": "#/definitions/info" - }, - "servers": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/server" - } - }, - "defaultContentType": { - "type": "string" - }, - "channels": { - "$ref": "#/definitions/channels" - }, - "components": { - "$ref": "#/definitions/components" - }, - "tags": { - "type": "array", - "items": { - "$ref": "#/definitions/tag" - }, - "uniqueItems": true - }, - "externalDocs": { - "$ref": "#/definitions/externalDocs" - } - }, - "definitions": { - "specificationExtension": { - "description": "Any property starting with x- is valid.", - "additionalProperties": true, - "additionalItems": true - }, - "info": { - "type": "object", - "description": "General information about the API.", - "required": [ - "version", - "title" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "title": { - "type": "string", - "description": "A unique and precise title of the API." - }, - "version": { - "type": "string", - "description": "A semantic version number of the API." - }, - "description": { - "type": "string", - "description": "A longer description of the API. Should be different from the title. CommonMark is allowed." - }, - "termsOfService": { - "type": "string", - "description": "A URL to the Terms of Service for the API. MUST be in the format of a URL.", - "format": "uri" - }, - "contact": { - "$ref": "#/definitions/contact" - }, - "license": { - "$ref": "#/definitions/license" - } - } - }, - "contact": { - "type": "object", - "description": "Contact information for the owners of the API.", - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "description": "The identifying name of the contact person/organization." - }, - "url": { - "type": "string", - "description": "The URL pointing to the contact information.", - "format": "uri" - }, - "email": { - "type": "string", - "description": "The email address of the contact person/organization.", - "format": "email" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - } - }, - "license": { - "type": "object", - "required": [ - "name" - ], - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "description": "The name of the license type. It's encouraged to use an OSI compatible license." - }, - "url": { - "type": "string", - "description": "The URL pointing to the license.", - "format": "uri" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - } - }, - "server": { - "type": "object", - "description": "An object representing a Server.", - "required": [ - "url", - "protocol" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "url": { - "type": "string" - }, - "description": { - "type": "string" - }, - "protocol": { - "type": "string", - "description": "The transfer protocol." - }, - "protocolVersion": { - "type": "string" - }, - "variables": { - "$ref": "#/definitions/serverVariables" - }, - "security": { - "type": "array", - "items": { - "$ref": "#/definitions/SecurityRequirement" - } - }, - "bindings": { - "$ref": "#/definitions/bindingsObject" - } - } - }, - "serverVariables": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/serverVariable" - } - }, - "serverVariable": { - "type": "object", - "description": "An object representing a Server Variable for server URL template substitution.", - "minProperties": 1, - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "enum": { - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true - }, - "default": { - "type": "string" - }, - "description": { - "type": "string" - }, - "examples": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "SecurityRequirement": { - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true - } - }, - "bindingsObject": { - "type": "object", - "additionalProperties": true, - "properties": { - "http": {}, - "ws": {}, - "amqp": {}, - "amqp1": {}, - "mqtt": {}, - "mqtt5": {}, - "kafka": {}, - "nats": {}, - "jms": {}, - "sns": {}, - "sqs": {}, - "stomp": {}, - "redis": {} - } - }, - "channels": { - "type": "object", - "propertyNames": { - "type": "string", - "format": "uri-template", - "minLength": 1 - }, - "additionalProperties": { - "$ref": "#/definitions/channelItem" - } - }, - "channelItem": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "minProperties": 1, - "properties": { - "$ref": { - "$ref": "#/definitions/ReferenceObject" - }, - "parameters": { - "$ref": "#/definitions/parameters" - }, - "description": { - "type": "string", - "description": "A description of the channel." - }, - "publish": { - "$ref": "#/definitions/operation" - }, - "subscribe": { - "$ref": "#/definitions/operation" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "bindings": { - "$ref": "#/definitions/bindingsObject" - } - } - }, - "ReferenceObject": { - "type": "string", - "format": "uri-reference" - }, - "parameters": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/parameter" - } - ] - }, - "description": "JSON objects describing re-usable channel parameters." - }, - "Reference": { - "type": "object", - "required": [ - "$ref" - ], - "properties": { - "$ref": { - "$ref": "#/definitions/ReferenceObject" - } - } - }, - "parameter": { - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "description": { - "type": "string", - "description": "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." - }, - "schema": { - "$ref": "#/definitions/schema" - }, - "location": { - "type": "string", - "description": "A runtime expression that specifies the location of the parameter value", - "pattern": "^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*" - }, - "$ref": { - "$ref": "#/definitions/ReferenceObject" - } - } - }, - "schema": { - "allOf": [ - { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - { - "type": "object", - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "additionalProperties": { - "$ref": "#/definitions/schema" - }, - "items": { - "anyOf": [ - { - "$ref": "#/definitions/schema" - }, - { - "type": "array", - "minItems": 1, - "items": { - "$ref": "#/definitions/schema" - } - } - ], - "default": {} - }, - "allOf": { - "type": "array", - "minItems": 1, - "items": { - "$ref": "#/definitions/schema" - } - }, - "oneOf": { - "type": "array", - "minItems": 2, - "items": { - "$ref": "#/definitions/schema" - } - }, - "anyOf": { - "type": "array", - "minItems": 2, - "items": { - "$ref": "#/definitions/schema" - } - }, - "not": { - "$ref": "#/definitions/schema" - }, - "properties": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/schema" - }, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/schema" - }, - "default": {} - }, - "propertyNames": { - "$ref": "#/definitions/schema" - }, - "contains": { - "$ref": "#/definitions/schema" - }, - "discriminator": { - "type": "string" - }, - "externalDocs": { - "$ref": "#/definitions/externalDocs" - }, - "deprecated": { - "type": "boolean", - "default": false - } - } - } - ] - }, - "json-schema-draft-07-schema": { - "title": "Core schema meta-schema", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": { - "$ref": "#/definitions/json-schema-draft-07-schema" - } - }, - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "allOf": [ - { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/nonNegativeInteger" - }, - { - "default": 0 - } - ] - }, - "simpleTypes": { - "enum": [ - "array", - "boolean", - "integer", - "null", - "number", - "object", - "string" - ] - }, - "stringArray": { - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true, - "default": [] - } - }, - "type": [ - "object", - "boolean" - ], - "properties": { - "$id": { - "type": "string", - "format": "uri-reference" - }, - "$schema": { - "type": "string", - "format": "uri" - }, - "$ref": { - "type": "string", - "format": "uri-reference" - }, - "$comment": { - "type": "string" - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": true, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": true - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/nonNegativeInteger" - }, - "minLength": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/nonNegativeIntegerDefault0" - }, - "pattern": { - "type": "string", - "format": "regex" - }, - "additionalItems": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "items": { - "anyOf": [ - { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/schemaArray" - } - ], - "default": true - }, - "maxItems": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/nonNegativeInteger" - }, - "minItems": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/nonNegativeIntegerDefault0" - }, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "contains": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "maxProperties": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/nonNegativeInteger" - }, - "minProperties": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/nonNegativeIntegerDefault0" - }, - "required": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/stringArray" - }, - "additionalProperties": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "definitions": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "default": {} - }, - "properties": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "propertyNames": { - "format": "regex" - }, - "default": {} - }, - "dependencies": { - "type": "object", - "additionalProperties": { - "anyOf": [ - { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/stringArray" - } - ] - } - }, - "propertyNames": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "const": true, - "enum": { - "type": "array", - "items": true, - "minItems": 1, - "uniqueItems": true - }, - "type": { - "anyOf": [ - { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/simpleTypes" - }, - { - "type": "array", - "items": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/simpleTypes" - }, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "format": { - "type": "string" - }, - "contentMediaType": { - "type": "string" - }, - "contentEncoding": { - "type": "string" - }, - "if": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "then": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "else": { - "$ref": "#/definitions/json-schema-draft-07-schema" - }, - "allOf": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/schemaArray" - }, - "anyOf": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/schemaArray" - }, - "oneOf": { - "$ref": "#/definitions/json-schema-draft-07-schema/definitions/schemaArray" - }, - "not": { - "$ref": "#/definitions/json-schema-draft-07-schema" - } - }, - "default": true - }, - "externalDocs": { - "type": "object", - "additionalProperties": false, - "description": "information about external documentation", - "required": [ - "url" - ], - "properties": { - "description": { - "type": "string" - }, - "url": { - "type": "string", - "format": "uri" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - } - }, - "operation": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "traits": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/operationTrait" - } - ] - } - }, - "summary": { - "type": "string" - }, - "description": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "$ref": "#/definitions/tag" - }, - "uniqueItems": true - }, - "externalDocs": { - "$ref": "#/definitions/externalDocs" - }, - "operationId": { - "type": "string" - }, - "bindings": { - "$ref": "#/definitions/bindingsObject" - }, - "message": { - "$ref": "#/definitions/message" - } - } - }, - "operationTrait": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "summary": { - "type": "string" - }, - "description": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "$ref": "#/definitions/tag" - }, - "uniqueItems": true - }, - "externalDocs": { - "$ref": "#/definitions/externalDocs" - }, - "operationId": { - "type": "string" - }, - "bindings": { - "$ref": "#/definitions/bindingsObject" - } - } - }, - "tag": { - "type": "object", - "additionalProperties": false, - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "externalDocs": { - "$ref": "#/definitions/externalDocs" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - } - }, - "message": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "oneOf": [ - { - "type": "object", - "required": [ - "oneOf" - ], - "additionalProperties": false, - "properties": { - "oneOf": { - "type": "array", - "items": { - "$ref": "#/definitions/message" - } - } - } - }, - { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "schemaFormat": { - "type": "string" - }, - "contentType": { - "type": "string" - }, - "headers": { - "$ref": "#/definitions/schema" - }, - "payload": {}, - "correlationId": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/correlationId" - } - ] - }, - "tags": { - "type": "array", - "items": { - "$ref": "#/definitions/tag" - }, - "uniqueItems": true - }, - "summary": { - "type": "string", - "description": "A brief summary of the message." - }, - "name": { - "type": "string", - "description": "Name of the message." - }, - "title": { - "type": "string", - "description": "A human-friendly title for the message." - }, - "description": { - "type": "string", - "description": "A longer description of the message. CommonMark is allowed." - }, - "externalDocs": { - "$ref": "#/definitions/externalDocs" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": { - "type": "object" - } - }, - "bindings": { - "$ref": "#/definitions/bindingsObject" - }, - "traits": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/messageTrait" - } - ] - } - } - } - } - ] - } - ] - }, - "correlationId": { - "type": "object", - "required": [ - "location" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "description": { - "type": "string", - "description": "A optional description of the correlation ID. GitHub Flavored Markdown is allowed." - }, - "location": { - "type": "string", - "description": "A runtime expression that specifies the location of the correlation ID", - "pattern": "^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*" - } - } - }, - "messageTrait": { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "properties": { - "schemaFormat": { - "type": "string" - }, - "contentType": { - "type": "string" - }, - "headers": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/schema" - } - ] - }, - "correlationId": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/correlationId" - } - ] - }, - "tags": { - "type": "array", - "items": { - "$ref": "#/definitions/tag" - }, - "uniqueItems": true - }, - "summary": { - "type": "string", - "description": "A brief summary of the message." - }, - "name": { - "type": "string", - "description": "Name of the message." - }, - "title": { - "type": "string", - "description": "A human-friendly title for the message." - }, - "description": { - "type": "string", - "description": "A longer description of the message. CommonMark is allowed." - }, - "externalDocs": { - "$ref": "#/definitions/externalDocs" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": { - "type": "object" - } - }, - "bindings": { - "$ref": "#/definitions/bindingsObject" - } - } - }, - "components": { - "type": "object", - "description": "An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.", - "additionalProperties": false, - "properties": { - "schemas": { - "$ref": "#/definitions/schemas" - }, - "messages": { - "$ref": "#/definitions/messages" - }, - "securitySchemes": { - "type": "object", - "patternProperties": { - "^[\\w\\d\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/SecurityScheme" - } - ] - } - } - }, - "parameters": { - "$ref": "#/definitions/parameters" - }, - "correlationIds": { - "type": "object", - "patternProperties": { - "^[\\w\\d\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/correlationId" - } - ] - } - } - }, - "operationTraits": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/operationTrait" - } - }, - "messageTraits": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/messageTrait" - } - }, - "serverBindings": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/bindingsObject" - } - }, - "channelBindings": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/bindingsObject" - } - }, - "operationBindings": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/bindingsObject" - } - }, - "messageBindings": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/bindingsObject" - } - } - } - }, - "schemas": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/schema" - }, - "description": "JSON objects describing schemas the API uses." - }, - "messages": { - "type": "object", - "additionalProperties": { - "$ref": "#/definitions/message" - }, - "description": "JSON objects describing the messages being consumed and produced by the API." - }, - "SecurityScheme": { - "oneOf": [ - { - "$ref": "#/definitions/userPassword" - }, - { - "$ref": "#/definitions/apiKey" - }, - { - "$ref": "#/definitions/X509" - }, - { - "$ref": "#/definitions/symmetricEncryption" - }, - { - "$ref": "#/definitions/asymmetricEncryption" - }, - { - "$ref": "#/definitions/HTTPSecurityScheme" - }, - { - "$ref": "#/definitions/oauth2Flows" - }, - { - "$ref": "#/definitions/openIdConnect" - } - ] - }, - "userPassword": { - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "userPassword" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "additionalProperties": false - }, - "apiKey": { - "type": "object", - "required": [ - "type", - "in" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "apiKey" - ] - }, - "in": { - "type": "string", - "enum": [ - "user", - "password" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "additionalProperties": false - }, - "X509": { - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "X509" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "additionalProperties": false - }, - "symmetricEncryption": { - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "symmetricEncryption" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "additionalProperties": false - }, - "asymmetricEncryption": { - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "asymmetricEncryption" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "additionalProperties": false - }, - "HTTPSecurityScheme": { - "oneOf": [ - { - "$ref": "#/definitions/NonBearerHTTPSecurityScheme" - }, - { - "$ref": "#/definitions/BearerHTTPSecurityScheme" - }, - { - "$ref": "#/definitions/APIKeyHTTPSecurityScheme" - } - ] - }, - "NonBearerHTTPSecurityScheme": { - "not": { - "type": "object", - "properties": { - "scheme": { - "type": "string", - "enum": [ - "bearer" - ] - } - } - }, - "type": "object", - "required": [ - "scheme", - "type" - ], - "properties": { - "scheme": { - "type": "string" - }, - "description": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "http" - ] - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "additionalProperties": false - }, - "BearerHTTPSecurityScheme": { - "type": "object", - "required": [ - "type", - "scheme" - ], - "properties": { - "scheme": { - "type": "string", - "enum": [ - "bearer" - ] - }, - "bearerFormat": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "http" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "additionalProperties": false - }, - "APIKeyHTTPSecurityScheme": { - "type": "object", - "required": [ - "type", - "name", - "in" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "httpApiKey" - ] - }, - "name": { - "type": "string" - }, - "in": { - "type": "string", - "enum": [ - "header", - "query", - "cookie" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "additionalProperties": false - }, - "oauth2Flows": { - "type": "object", - "required": [ - "type", - "flows" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "oauth2" - ] - }, - "description": { - "type": "string" - }, - "flows": { - "type": "object", - "properties": { - "implicit": { - "allOf": [ - { - "$ref": "#/definitions/oauth2Flow" - }, - { - "required": [ - "authorizationUrl", - "scopes" - ] - }, - { - "not": { - "required": [ - "tokenUrl" - ] - } - } - ] - }, - "password": { - "allOf": [ - { - "$ref": "#/definitions/oauth2Flow" - }, - { - "required": [ - "tokenUrl", - "scopes" - ] - }, - { - "not": { - "required": [ - "authorizationUrl" - ] - } - } - ] - }, - "clientCredentials": { - "allOf": [ - { - "$ref": "#/definitions/oauth2Flow" - }, - { - "required": [ - "tokenUrl", - "scopes" - ] - }, - { - "not": { - "required": [ - "authorizationUrl" - ] - } - } - ] - }, - "authorizationCode": { - "allOf": [ - { - "$ref": "#/definitions/oauth2Flow" - }, - { - "required": [ - "authorizationUrl", - "tokenUrl", - "scopes" - ] - } - ] - } - }, - "additionalProperties": false, - "minProperties": 1 - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - } - }, - "oauth2Flow": { - "type": "object", - "properties": { - "authorizationUrl": { - "type": "string", - "format": "uri" - }, - "tokenUrl": { - "type": "string", - "format": "uri" - }, - "refreshUrl": { - "type": "string", - "format": "uri" - }, - "scopes": { - "$ref": "#/definitions/oauth2Scopes" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "additionalProperties": false - }, - "oauth2Scopes": { - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "openIdConnect": { - "type": "object", - "required": [ - "type", - "openIdConnectUrl" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "openIdConnect" - ] - }, - "description": { - "type": "string" - }, - "openIdConnectUrl": { - "type": "string", - "format": "uri" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "#/definitions/specificationExtension" - } - }, - "additionalProperties": false - } - }, - "description": "!!Auto generated!! \n Do not manually edit. " -} \ No newline at end of file diff --git a/schemas/2.0.0-rc2.json b/schemas/2.0.0-rc2.json deleted file mode 100644 index 38c0c5e9..00000000 --- a/schemas/2.0.0-rc2.json +++ /dev/null @@ -1,1602 +0,0 @@ -{ - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/asyncapi.json", - "$schema": "http://json-schema.org/draft-07/schema", - "title": "AsyncAPI 2.0.0-rc2 schema.", - "type": "object", - "required": [ - "asyncapi", - "info", - "channels" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "asyncapi": { - "type": "string", - "enum": [ - "2.0.0-rc2" - ], - "description": "The AsyncAPI specification version of this document." - }, - "id": { - "type": "string", - "description": "A unique id representing the application.", - "format": "uri" - }, - "info": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/info.json" - }, - "servers": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/server.json" - } - }, - "defaultContentType": { - "type": "string" - }, - "channels": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/channels.json" - }, - "components": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/components.json" - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/tag.json" - }, - "uniqueItems": true - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json" - } - }, - "definitions": { - "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json", - "description": "Any property starting with x- is valid.", - "additionalProperties": true, - "additionalItems": true - }, - "http://asyncapi.com/definitions/2.0.0-rc2/info.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/info.json", - "type": "object", - "description": "General information about the API.", - "required": [ - "version", - "title" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "title": { - "type": "string", - "description": "A unique and precise title of the API." - }, - "version": { - "type": "string", - "description": "A semantic version number of the API." - }, - "description": { - "type": "string", - "description": "A longer description of the API. Should be different from the title. CommonMark is allowed." - }, - "termsOfService": { - "type": "string", - "description": "A URL to the Terms of Service for the API. MUST be in the format of a URL.", - "format": "uri" - }, - "contact": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/contact.json" - }, - "license": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/license.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/contact.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/contact.json", - "type": "object", - "description": "Contact information for the owners of the API.", - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "description": "The identifying name of the contact person/organization." - }, - "url": { - "type": "string", - "description": "The URL pointing to the contact information.", - "format": "uri" - }, - "email": { - "type": "string", - "description": "The email address of the contact person/organization.", - "format": "email" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/license.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/license.json", - "type": "object", - "required": [ - "name" - ], - "additionalProperties": false, - "properties": { - "name": { - "type": "string", - "description": "The name of the license type. It's encouraged to use an OSI compatible license." - }, - "url": { - "type": "string", - "description": "The URL pointing to the license.", - "format": "uri" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/server.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/server.json", - "type": "object", - "description": "An object representing a Server.", - "required": [ - "url", - "protocol" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "url": { - "type": "string" - }, - "description": { - "type": "string" - }, - "protocol": { - "type": "string", - "description": "The transfer protocol." - }, - "protocolVersion": { - "type": "string" - }, - "variables": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/serverVariables.json" - }, - "security": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/SecurityRequirement.json" - } - }, - "bindings": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/serverVariables.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/serverVariables.json", - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/serverVariable.json" - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/serverVariable.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/serverVariable.json", - "type": "object", - "description": "An object representing a Server Variable for server URL template substitution.", - "minProperties": 1, - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "enum": { - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true - }, - "default": { - "type": "string" - }, - "description": { - "type": "string" - }, - "examples": { - "type": "array", - "items": { - "type": "string" - } - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/SecurityRequirement.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/SecurityRequirement.json", - "type": "object", - "additionalProperties": { - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json", - "type": "object", - "additionalProperties": true, - "properties": { - "http": {}, - "ws": {}, - "amqp": {}, - "amqp1": {}, - "mqtt": {}, - "mqtt5": {}, - "kafka": {}, - "nats": {}, - "jms": {}, - "sns": {}, - "sqs": {}, - "stomp": {}, - "redis": {} - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/channels.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/channels.json", - "type": "object", - "propertyNames": { - "type": "string", - "format": "uri-template", - "minLength": 1 - }, - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/channelItem.json" - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/channelItem.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/channelItem.json", - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "minProperties": 1, - "properties": { - "$ref": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/ReferenceObject.json" - }, - "parameters": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/parameters.json" - }, - "description": { - "type": "string", - "description": "A description of the channel." - }, - "publish": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/operation.json" - }, - "subscribe": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/operation.json" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "bindings": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/ReferenceObject.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/ReferenceObject.json", - "type": "string", - "format": "uri-reference" - }, - "http://asyncapi.com/definitions/2.0.0-rc2/parameters.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/parameters.json", - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/parameter.json" - } - ] - }, - "description": "JSON objects describing re-usable channel parameters." - }, - "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json", - "type": "object", - "required": [ - "$ref" - ], - "properties": { - "$ref": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/ReferenceObject.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/parameter.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/parameter.json", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "description": { - "type": "string", - "description": "A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed." - }, - "schema": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - }, - "location": { - "type": "string", - "description": "A runtime expression that specifies the location of the parameter value", - "pattern": "^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*" - }, - "$ref": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/ReferenceObject.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/schema.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json", - "allOf": [ - { - "$ref": "http://json-schema.org/draft-07/schema#" - }, - { - "type": "object", - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - }, - "items": { - "anyOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - }, - { - "type": "array", - "minItems": 1, - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - } - } - ], - "default": {} - }, - "allOf": { - "type": "array", - "minItems": 1, - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - } - }, - "oneOf": { - "type": "array", - "minItems": 2, - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - } - }, - "anyOf": { - "type": "array", - "minItems": 2, - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - } - }, - "not": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - }, - "properties": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - }, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - }, - "default": {} - }, - "propertyNames": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - }, - "contains": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - }, - "discriminator": { - "type": "string" - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json" - }, - "deprecated": { - "type": "boolean", - "default": false - } - } - } - ] - }, - "http://json-schema.org/draft-07/schema": { - "$id": "http://json-schema.org/draft-07/schema", - "title": "Core schema meta-schema", - "definitions": { - "schemaArray": { - "type": "array", - "minItems": 1, - "items": { - "$ref": "#" - } - }, - "nonNegativeInteger": { - "type": "integer", - "minimum": 0 - }, - "nonNegativeIntegerDefault0": { - "allOf": [ - { - "$ref": "#/definitions/nonNegativeInteger" - }, - { - "default": 0 - } - ] - }, - "simpleTypes": { - "enum": [ - "array", - "boolean", - "integer", - "null", - "number", - "object", - "string" - ] - }, - "stringArray": { - "type": "array", - "items": { - "type": "string" - }, - "uniqueItems": true, - "default": [] - } - }, - "type": [ - "object", - "boolean" - ], - "properties": { - "$id": { - "type": "string", - "format": "uri-reference" - }, - "$schema": { - "type": "string", - "format": "uri" - }, - "$ref": { - "type": "string", - "format": "uri-reference" - }, - "$comment": { - "type": "string" - }, - "title": { - "type": "string" - }, - "description": { - "type": "string" - }, - "default": true, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": true - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "number" - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "number" - }, - "maxLength": { - "$ref": "#/definitions/nonNegativeInteger" - }, - "minLength": { - "$ref": "#/definitions/nonNegativeIntegerDefault0" - }, - "pattern": { - "type": "string", - "format": "regex" - }, - "additionalItems": { - "$ref": "#" - }, - "items": { - "anyOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/schemaArray" - } - ], - "default": true - }, - "maxItems": { - "$ref": "#/definitions/nonNegativeInteger" - }, - "minItems": { - "$ref": "#/definitions/nonNegativeIntegerDefault0" - }, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "contains": { - "$ref": "#" - }, - "maxProperties": { - "$ref": "#/definitions/nonNegativeInteger" - }, - "minProperties": { - "$ref": "#/definitions/nonNegativeIntegerDefault0" - }, - "required": { - "$ref": "#/definitions/stringArray" - }, - "additionalProperties": { - "$ref": "#" - }, - "definitions": { - "type": "object", - "additionalProperties": { - "$ref": "#" - }, - "default": {} - }, - "properties": { - "type": "object", - "additionalProperties": { - "$ref": "#" - }, - "default": {} - }, - "patternProperties": { - "type": "object", - "additionalProperties": { - "$ref": "#" - }, - "propertyNames": { - "format": "regex" - }, - "default": {} - }, - "dependencies": { - "type": "object", - "additionalProperties": { - "anyOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/stringArray" - } - ] - } - }, - "propertyNames": { - "$ref": "#" - }, - "const": true, - "enum": { - "type": "array", - "items": true, - "minItems": 1, - "uniqueItems": true - }, - "type": { - "anyOf": [ - { - "$ref": "#/definitions/simpleTypes" - }, - { - "type": "array", - "items": { - "$ref": "#/definitions/simpleTypes" - }, - "minItems": 1, - "uniqueItems": true - } - ] - }, - "format": { - "type": "string" - }, - "contentMediaType": { - "type": "string" - }, - "contentEncoding": { - "type": "string" - }, - "if": { - "$ref": "#" - }, - "then": { - "$ref": "#" - }, - "else": { - "$ref": "#" - }, - "allOf": { - "$ref": "#/definitions/schemaArray" - }, - "anyOf": { - "$ref": "#/definitions/schemaArray" - }, - "oneOf": { - "$ref": "#/definitions/schemaArray" - }, - "not": { - "$ref": "#" - } - }, - "default": true - }, - "http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json", - "type": "object", - "additionalProperties": false, - "description": "information about external documentation", - "required": [ - "url" - ], - "properties": { - "description": { - "type": "string" - }, - "url": { - "type": "string", - "format": "uri" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/operation.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/operation.json", - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "traits": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json" - } - ] - } - }, - "summary": { - "type": "string" - }, - "description": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/tag.json" - }, - "uniqueItems": true - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json" - }, - "operationId": { - "type": "string" - }, - "bindings": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" - }, - "message": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/message.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json", - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "summary": { - "type": "string" - }, - "description": { - "type": "string" - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/tag.json" - }, - "uniqueItems": true - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json" - }, - "operationId": { - "type": "string" - }, - "bindings": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/tag.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/tag.json", - "type": "object", - "additionalProperties": false, - "required": [ - "name" - ], - "properties": { - "name": { - "type": "string" - }, - "description": { - "type": "string" - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/message.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/message.json", - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" - }, - { - "oneOf": [ - { - "type": "object", - "required": [ - "oneOf" - ], - "additionalProperties": false, - "properties": { - "oneOf": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/message.json" - } - } - } - }, - { - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "schemaFormat": { - "type": "string" - }, - "contentType": { - "type": "string" - }, - "headers": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - }, - "payload": {}, - "correlationId": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/correlationId.json" - } - ] - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/tag.json" - }, - "uniqueItems": true - }, - "summary": { - "type": "string", - "description": "A brief summary of the message." - }, - "name": { - "type": "string", - "description": "Name of the message." - }, - "title": { - "type": "string", - "description": "A human-friendly title for the message." - }, - "description": { - "type": "string", - "description": "A longer description of the message. CommonMark is allowed." - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": { - "type": "object" - } - }, - "bindings": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" - }, - "traits": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json" - } - ] - } - } - } - } - ] - } - ] - }, - "http://asyncapi.com/definitions/2.0.0-rc2/correlationId.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/correlationId.json", - "type": "object", - "required": [ - "location" - ], - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "description": { - "type": "string", - "description": "A optional description of the correlation ID. GitHub Flavored Markdown is allowed." - }, - "location": { - "type": "string", - "description": "A runtime expression that specifies the location of the correlation ID", - "pattern": "^\\$message\\.(header|payload)#(\\/(([^\\/~])|(~[01]))*)*" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json", - "type": "object", - "additionalProperties": false, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "properties": { - "schemaFormat": { - "type": "string" - }, - "contentType": { - "type": "string" - }, - "headers": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - } - ] - }, - "correlationId": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/correlationId.json" - } - ] - }, - "tags": { - "type": "array", - "items": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/tag.json" - }, - "uniqueItems": true - }, - "summary": { - "type": "string", - "description": "A brief summary of the message." - }, - "name": { - "type": "string", - "description": "Name of the message." - }, - "title": { - "type": "string", - "description": "A human-friendly title for the message." - }, - "description": { - "type": "string", - "description": "A longer description of the message. CommonMark is allowed." - }, - "externalDocs": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/externalDocs.json" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "examples": { - "type": "array", - "items": { - "type": "object" - } - }, - "bindings": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/components.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/components.json", - "type": "object", - "description": "An object to hold a set of reusable objects for different aspects of the AsyncAPI Specification.", - "additionalProperties": false, - "properties": { - "schemas": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schemas.json" - }, - "messages": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/messages.json" - }, - "securitySchemes": { - "type": "object", - "patternProperties": { - "^[\\w\\d\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/SecurityScheme.json" - } - ] - } - } - }, - "parameters": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/parameters.json" - }, - "correlationIds": { - "type": "object", - "patternProperties": { - "^[\\w\\d\\.\\-_]+$": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/correlationId.json" - } - ] - } - } - }, - "operationTraits": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json" - } - }, - "messageTraits": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json" - } - }, - "serverBindings": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" - } - }, - "channelBindings": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" - } - }, - "operationBindings": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" - } - }, - "messageBindings": { - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/bindingsObject.json" - } - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/schemas.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/schemas.json", - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/schema.json" - }, - "description": "JSON objects describing schemas the API uses." - }, - "http://asyncapi.com/definitions/2.0.0-rc2/messages.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/messages.json", - "type": "object", - "additionalProperties": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/message.json" - }, - "description": "JSON objects describing the messages being consumed and produced by the API." - }, - "http://asyncapi.com/definitions/2.0.0-rc2/SecurityScheme.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/SecurityScheme.json", - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/userPassword.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/apiKey.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/X509.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/symmetricEncryption.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/asymmetricEncryption.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/HTTPSecurityScheme.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flows.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/openIdConnect.json" - } - ] - }, - "http://asyncapi.com/definitions/2.0.0-rc2/userPassword.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/userPassword.json", - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "userPassword" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "additionalProperties": false - }, - "http://asyncapi.com/definitions/2.0.0-rc2/apiKey.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/apiKey.json", - "type": "object", - "required": [ - "type", - "in" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "apiKey" - ] - }, - "in": { - "type": "string", - "enum": [ - "user", - "password" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "additionalProperties": false - }, - "http://asyncapi.com/definitions/2.0.0-rc2/X509.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/X509.json", - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "X509" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "additionalProperties": false - }, - "http://asyncapi.com/definitions/2.0.0-rc2/symmetricEncryption.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/symmetricEncryption.json", - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "symmetricEncryption" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "additionalProperties": false - }, - "http://asyncapi.com/definitions/2.0.0-rc2/asymmetricEncryption.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/asymmetricEncryption.json", - "type": "object", - "required": [ - "type" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "asymmetricEncryption" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "additionalProperties": false - }, - "http://asyncapi.com/definitions/2.0.0-rc2/HTTPSecurityScheme.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/HTTPSecurityScheme.json", - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/NonBearerHTTPSecurityScheme.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/BearerHTTPSecurityScheme.json" - }, - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/APIKeyHTTPSecurityScheme.json" - } - ] - }, - "http://asyncapi.com/definitions/2.0.0-rc2/NonBearerHTTPSecurityScheme.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/NonBearerHTTPSecurityScheme.json", - "not": { - "type": "object", - "properties": { - "scheme": { - "type": "string", - "enum": [ - "bearer" - ] - } - } - }, - "type": "object", - "required": [ - "scheme", - "type" - ], - "properties": { - "scheme": { - "type": "string" - }, - "description": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "http" - ] - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "additionalProperties": false - }, - "http://asyncapi.com/definitions/2.0.0-rc2/BearerHTTPSecurityScheme.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/BearerHTTPSecurityScheme.json", - "type": "object", - "required": [ - "type", - "scheme" - ], - "properties": { - "scheme": { - "type": "string", - "enum": [ - "bearer" - ] - }, - "bearerFormat": { - "type": "string" - }, - "type": { - "type": "string", - "enum": [ - "http" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "additionalProperties": false - }, - "http://asyncapi.com/definitions/2.0.0-rc2/APIKeyHTTPSecurityScheme.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/APIKeyHTTPSecurityScheme.json", - "type": "object", - "required": [ - "type", - "name", - "in" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "httpApiKey" - ] - }, - "name": { - "type": "string" - }, - "in": { - "type": "string", - "enum": [ - "header", - "query", - "cookie" - ] - }, - "description": { - "type": "string" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "additionalProperties": false - }, - "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flows.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flows.json", - "type": "object", - "required": [ - "type", - "flows" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "oauth2" - ] - }, - "description": { - "type": "string" - }, - "flows": { - "type": "object", - "properties": { - "implicit": { - "allOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json" - }, - { - "required": [ - "authorizationUrl", - "scopes" - ] - }, - { - "not": { - "required": [ - "tokenUrl" - ] - } - } - ] - }, - "password": { - "allOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json" - }, - { - "required": [ - "tokenUrl", - "scopes" - ] - }, - { - "not": { - "required": [ - "authorizationUrl" - ] - } - } - ] - }, - "clientCredentials": { - "allOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json" - }, - { - "required": [ - "tokenUrl", - "scopes" - ] - }, - { - "not": { - "required": [ - "authorizationUrl" - ] - } - } - ] - }, - "authorizationCode": { - "allOf": [ - { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json" - }, - { - "required": [ - "authorizationUrl", - "tokenUrl", - "scopes" - ] - } - ] - } - }, - "additionalProperties": false, - "minProperties": 1 - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Flow.json", - "type": "object", - "properties": { - "authorizationUrl": { - "type": "string", - "format": "uri" - }, - "tokenUrl": { - "type": "string", - "format": "uri" - }, - "refreshUrl": { - "type": "string", - "format": "uri" - }, - "scopes": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Scopes.json" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "additionalProperties": false - }, - "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Scopes.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/oauth2Scopes.json", - "type": "object", - "additionalProperties": { - "type": "string" - } - }, - "http://asyncapi.com/definitions/2.0.0-rc2/openIdConnect.json": { - "$id": "http://asyncapi.com/definitions/2.0.0-rc2/openIdConnect.json", - "type": "object", - "required": [ - "type", - "openIdConnectUrl" - ], - "properties": { - "type": { - "type": "string", - "enum": [ - "openIdConnect" - ] - }, - "description": { - "type": "string" - }, - "openIdConnectUrl": { - "type": "string", - "format": "uri" - } - }, - "patternProperties": { - "^x-[\\w\\d\\.\\x2d_]+$": { - "$ref": "http://asyncapi.com/definitions/2.0.0-rc2/specificationExtension.json" - } - }, - "additionalProperties": false - } - }, - "description": "!!Auto generated!! \n Do not manually edit. " -} \ No newline at end of file diff --git a/schemas/all.schema-store.json b/schemas/all.schema-store.json index c8241a9e..d37d4141 100644 --- a/schemas/all.schema-store.json +++ b/schemas/all.schema-store.json @@ -47,34 +47,6 @@ } ] }, - { - "allOf": [ - { - "properties": { - "asyncapi": { - "const": "2.0.0-rc1" - } - } - }, - { - "$ref": "http://asyncapi.com/schema-store/2.0.0-rc1-without-$id.json" - } - ] - }, - { - "allOf": [ - { - "properties": { - "asyncapi": { - "const": "2.0.0-rc2" - } - } - }, - { - "$ref": "http://asyncapi.com/schema-store/2.0.0-rc2-without-$id.json" - } - ] - }, { "allOf": [ { diff --git a/scripts/validate-schemas.js b/scripts/validate-schemas.js index 4b1ba6e9..a5c74f2b 100644 --- a/scripts/validate-schemas.js +++ b/scripts/validate-schemas.js @@ -66,7 +66,6 @@ function validation(excludedFiles) { } } -const excludedFiles = ['2.0.0-rc1.json', '2.0.0-rc1-without-$id.json']; // added temporarily to avoid validation failure due to these two files. The schemas version are incorrect in these and needs to be fixed. - +const excludedFiles = []; validation(excludedFiles); console.log('\nValidation completed successfully.'); diff --git a/spec-json-schemas_test.go b/spec-json-schemas_test.go index d8f60f20..8ba8912f 100644 --- a/spec-json-schemas_test.go +++ b/spec-json-schemas_test.go @@ -17,7 +17,7 @@ func TestGet(t *testing.T) { }{ { name: "All schemas should be available", - versions: []string{"1.0.0", "1.1.0", "1.2.0", "2.0.0-rc1", "2.0.0-rc2", "2.1.0", "2.2.0"}, + versions: []string{"1.0.0", "1.1.0", "1.2.0", "2.1.0", "2.2.0"}, }, { name: "Missing schema should return nil", diff --git a/test/index.js b/test/index.js index 5d174716..ef988c25 100644 --- a/test/index.js +++ b/test/index.js @@ -9,7 +9,7 @@ describe('AsyncAPI', () => { }); it('should check if json schema is exported and if it matches the original file', () => { - const skipFiles = ['README', 'all.schema-store', '1.0.0', '1.1.0', '1.2.0', '2.0.0-rc1', '2.0.0-rc2', '1.0.0-without-$id', '1.1.0-without-$id', '1.2.0-without-$id', '2.0.0-rc1-without-$id', '2.0.0-rc2-without-$id']; + const skipFiles = ['README', 'all.schema-store', '1.0.0', '1.1.0', '1.2.0', '1.0.0-without-$id', '1.1.0-without-$id', '1.2.0-without-$id']; const files = fs.readdirSync('schemas'); files.forEach(file => { const fileName = path.parse(file).name;