diff --git a/bindings/kafka/0.4.0/message.json b/bindings/kafka/0.4.0/message.json index 173a9bad..d7d4fc61 100644 --- a/bindings/kafka/0.4.0/message.json +++ b/bindings/kafka/0.4.0/message.json @@ -19,7 +19,7 @@ "$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" }, { - "$ref": "http://asyncapi.com/definitions/3.0.0/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } ], "description": "The message key." diff --git a/common/openapiSchema_3_0.json b/common/openapiSchema_3_0.json deleted file mode 100644 index a4b11b8b..00000000 --- a/common/openapiSchema_3_0.json +++ /dev/null @@ -1,288 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/3.0.0/openapiSchema_3_0.json", - "type": "object", - "definitions": { - "ExternalDocumentation": { - "type": "object", - "required": [ - "url" - ], - "properties": { - "description": { - "type": "string" - }, - "url": { - "type": "string", - "format": "uri-reference" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Discriminator": { - "type": "object", - "required": [ - "propertyName" - ], - "properties": { - "propertyName": { - "type": "string" - }, - "mapping": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "Reference": { - "type": "object", - "required": [ - "$ref" - ], - "patternProperties": { - "^\\$ref$": { - "type": "string", - "format": "uri-reference" - } - } - }, - "XML": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string", - "format": "uri" - }, - "prefix": { - "type": "string" - }, - "attribute": { - "type": "boolean", - "default": false - }, - "wrapped": { - "type": "boolean", - "default": false - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - } - }, - "properties": { - "title": { - "type": "string" - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "boolean", - "default": false - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "boolean", - "default": false - }, - "maxLength": { - "type": "integer", - "minimum": 0 - }, - "minLength": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": { - "type": "integer", - "minimum": 0 - }, - "minItems": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxProperties": { - "type": "integer", - "minimum": 0 - }, - "minProperties": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "required": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "uniqueItems": true - }, - "enum": { - "type": "array", - "items": true, - "minItems": 1, - "uniqueItems": false - }, - "type": { - "type": "string", - "enum": [ - "array", - "boolean", - "integer", - "number", - "object", - "string" - ] - }, - "not": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "allOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "oneOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "anyOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "properties": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "additionalProperties": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - }, - { - "type": "boolean" - } - ], - "default": true - }, - "description": { - "type": "string" - }, - "format": { - "type": "string" - }, - "default": true, - "nullable": { - "type": "boolean", - "default": false - }, - "discriminator": { - "$ref": "#/definitions/Discriminator" - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "example": true, - "externalDocs": { - "$ref": "#/definitions/ExternalDocumentation" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "xml": { - "$ref": "#/definitions/XML" - } - }, - "patternProperties": { - "^x-": true - }, - "additionalProperties": false -} \ No newline at end of file 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/definitions/2.0.0/avroSchema_v1.json b/definitions/2.0.0/avroSchema_v1.json deleted file mode 100644 index 781e66e8..00000000 --- a/definitions/2.0.0/avroSchema_v1.json +++ /dev/null @@ -1,317 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0/avroSchema_v1.json", - "definitions": { - "avroSchema": { - "title": "Avro Schema", - "description": "Root Schema", - "oneOf": [ - { - "$ref": "#/definitions/types" - } - ] - }, - "types": { - "title": "Avro Types", - "description": "Allowed Avro types", - "oneOf": [ - { - "$ref": "#/definitions/primitiveType" - }, - { - "$ref": "#/definitions/primitiveTypeWithMetadata" - }, - { - "$ref": "#/definitions/customTypeReference" - }, - { - "$ref": "#/definitions/avroRecord" - }, - { - "$ref": "#/definitions/avroEnum" - }, - { - "$ref": "#/definitions/avroArray" - }, - { - "$ref": "#/definitions/avroMap" - }, - { - "$ref": "#/definitions/avroFixed" - }, - { - "$ref": "#/definitions/avroUnion" - } - ] - }, - "primitiveType": { - "title": "Primitive Type", - "description": "Basic type primitives.", - "type": "string", - "enum": [ - "null", - "boolean", - "int", - "long", - "float", - "double", - "bytes", - "string" - ] - }, - "primitiveTypeWithMetadata": { - "title": "Primitive Type With Metadata", - "description": "A primitive type with metadata attached.", - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/primitiveType" - } - }, - "required": [ - "type" - ] - }, - "customTypeReference": { - "title": "Custom Type", - "description": "Reference to a ComplexType", - "not": { - "$ref": "#/definitions/primitiveType" - }, - "type": "string", - "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$" - }, - "avroUnion": { - "title": "Union", - "description": "A Union of types", - "type": "array", - "items": { - "$ref": "#/definitions/avroSchema" - }, - "minItems": 1 - }, - "avroField": { - "title": "Field", - "description": "A field within a Record", - "type": "object", - "properties": { - "name": { - "$ref": "#/definitions/name" - }, - "type": { - "$ref": "#/definitions/types" - }, - "doc": { - "type": "string" - }, - "default": true, - "order": { - "enum": [ - "ascending", - "descending", - "ignore" - ] - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - } - }, - "required": [ - "name", - "type" - ] - }, - "avroRecord": { - "title": "Record", - "description": "A Record", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "record" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "fields": { - "type": "array", - "items": { - "$ref": "#/definitions/avroField" - } - } - }, - "required": [ - "type", - "name", - "fields" - ] - }, - "avroEnum": { - "title": "Enum", - "description": "An enumeration", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "enum" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "symbols": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - } - }, - "required": [ - "type", - "name", - "symbols" - ] - }, - "avroArray": { - "title": "Array", - "description": "An array", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "array" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "items": { - "$ref": "#/definitions/types" - } - }, - "required": [ - "type", - "items" - ] - }, - "avroMap": { - "title": "Map", - "description": "A map of values", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "map" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "values": { - "$ref": "#/definitions/types" - } - }, - "required": [ - "type", - "values" - ] - }, - "avroFixed": { - "title": "Fixed", - "description": "A fixed sized array of bytes", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "fixed" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "size": { - "type": "number" - } - }, - "required": [ - "type", - "name", - "size" - ] - }, - "name": { - "type": "string", - "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" - }, - "namespace": { - "type": "string", - "pattern": "^([A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*)*$" - } - }, - "description": "Json-Schema definition for Avro AVSC files.", - "oneOf": [ - { - "$ref": "#/definitions/avroSchema" - } - ], - "title": "Avro Schema Definition" -} \ No newline at end of file diff --git a/definitions/2.0.0/message.json b/definitions/2.0.0/message.json index 141dcd93..66b3a946 100644 --- a/definitions/2.0.0/message.json +++ b/definitions/2.0.0/message.json @@ -200,7 +200,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.0.0/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json" } } } @@ -223,7 +223,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.0.0/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } diff --git a/definitions/2.1.0/avroSchema_v1.json b/definitions/2.1.0/avroSchema_v1.json deleted file mode 100644 index be559eff..00000000 --- a/definitions/2.1.0/avroSchema_v1.json +++ /dev/null @@ -1,317 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.1.0/avroSchema_v1.json", - "definitions": { - "avroSchema": { - "title": "Avro Schema", - "description": "Root Schema", - "oneOf": [ - { - "$ref": "#/definitions/types" - } - ] - }, - "types": { - "title": "Avro Types", - "description": "Allowed Avro types", - "oneOf": [ - { - "$ref": "#/definitions/primitiveType" - }, - { - "$ref": "#/definitions/primitiveTypeWithMetadata" - }, - { - "$ref": "#/definitions/customTypeReference" - }, - { - "$ref": "#/definitions/avroRecord" - }, - { - "$ref": "#/definitions/avroEnum" - }, - { - "$ref": "#/definitions/avroArray" - }, - { - "$ref": "#/definitions/avroMap" - }, - { - "$ref": "#/definitions/avroFixed" - }, - { - "$ref": "#/definitions/avroUnion" - } - ] - }, - "primitiveType": { - "title": "Primitive Type", - "description": "Basic type primitives.", - "type": "string", - "enum": [ - "null", - "boolean", - "int", - "long", - "float", - "double", - "bytes", - "string" - ] - }, - "primitiveTypeWithMetadata": { - "title": "Primitive Type With Metadata", - "description": "A primitive type with metadata attached.", - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/primitiveType" - } - }, - "required": [ - "type" - ] - }, - "customTypeReference": { - "title": "Custom Type", - "description": "Reference to a ComplexType", - "not": { - "$ref": "#/definitions/primitiveType" - }, - "type": "string", - "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$" - }, - "avroUnion": { - "title": "Union", - "description": "A Union of types", - "type": "array", - "items": { - "$ref": "#/definitions/avroSchema" - }, - "minItems": 1 - }, - "avroField": { - "title": "Field", - "description": "A field within a Record", - "type": "object", - "properties": { - "name": { - "$ref": "#/definitions/name" - }, - "type": { - "$ref": "#/definitions/types" - }, - "doc": { - "type": "string" - }, - "default": true, - "order": { - "enum": [ - "ascending", - "descending", - "ignore" - ] - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - } - }, - "required": [ - "name", - "type" - ] - }, - "avroRecord": { - "title": "Record", - "description": "A Record", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "record" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "fields": { - "type": "array", - "items": { - "$ref": "#/definitions/avroField" - } - } - }, - "required": [ - "type", - "name", - "fields" - ] - }, - "avroEnum": { - "title": "Enum", - "description": "An enumeration", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "enum" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "symbols": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - } - }, - "required": [ - "type", - "name", - "symbols" - ] - }, - "avroArray": { - "title": "Array", - "description": "An array", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "array" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "items": { - "$ref": "#/definitions/types" - } - }, - "required": [ - "type", - "items" - ] - }, - "avroMap": { - "title": "Map", - "description": "A map of values", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "map" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "values": { - "$ref": "#/definitions/types" - } - }, - "required": [ - "type", - "values" - ] - }, - "avroFixed": { - "title": "Fixed", - "description": "A fixed sized array of bytes", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "fixed" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "size": { - "type": "number" - } - }, - "required": [ - "type", - "name", - "size" - ] - }, - "name": { - "type": "string", - "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" - }, - "namespace": { - "type": "string", - "pattern": "^([A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*)*$" - } - }, - "description": "Json-Schema definition for Avro AVSC files.", - "oneOf": [ - { - "$ref": "#/definitions/avroSchema" - } - ], - "title": "Avro Schema Definition" -} \ No newline at end of file diff --git a/definitions/2.1.0/message.json b/definitions/2.1.0/message.json index ef9f65da..59fd06ab 100644 --- a/definitions/2.1.0/message.json +++ b/definitions/2.1.0/message.json @@ -223,7 +223,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.1.0/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json" } } } @@ -246,7 +246,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.1.0/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } diff --git a/definitions/2.1.0/openapiSchema_3_0.json b/definitions/2.1.0/openapiSchema_3_0.json deleted file mode 100644 index d50f113a..00000000 --- a/definitions/2.1.0/openapiSchema_3_0.json +++ /dev/null @@ -1,288 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.1.0/openapiSchema_3_0.json", - "type": "object", - "definitions": { - "ExternalDocumentation": { - "type": "object", - "required": [ - "url" - ], - "properties": { - "description": { - "type": "string" - }, - "url": { - "type": "string", - "format": "uri-reference" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Discriminator": { - "type": "object", - "required": [ - "propertyName" - ], - "properties": { - "propertyName": { - "type": "string" - }, - "mapping": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "Reference": { - "type": "object", - "required": [ - "$ref" - ], - "patternProperties": { - "^\\$ref$": { - "type": "string", - "format": "uri-reference" - } - } - }, - "XML": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string", - "format": "uri" - }, - "prefix": { - "type": "string" - }, - "attribute": { - "type": "boolean", - "default": false - }, - "wrapped": { - "type": "boolean", - "default": false - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - } - }, - "properties": { - "title": { - "type": "string" - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "boolean", - "default": false - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "boolean", - "default": false - }, - "maxLength": { - "type": "integer", - "minimum": 0 - }, - "minLength": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": { - "type": "integer", - "minimum": 0 - }, - "minItems": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxProperties": { - "type": "integer", - "minimum": 0 - }, - "minProperties": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "required": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "uniqueItems": true - }, - "enum": { - "type": "array", - "items": true, - "minItems": 1, - "uniqueItems": false - }, - "type": { - "type": "string", - "enum": [ - "array", - "boolean", - "integer", - "number", - "object", - "string" - ] - }, - "not": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "allOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "oneOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "anyOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "properties": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "additionalProperties": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - }, - { - "type": "boolean" - } - ], - "default": true - }, - "description": { - "type": "string" - }, - "format": { - "type": "string" - }, - "default": true, - "nullable": { - "type": "boolean", - "default": false - }, - "discriminator": { - "$ref": "#/definitions/Discriminator" - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "example": true, - "externalDocs": { - "$ref": "#/definitions/ExternalDocumentation" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "xml": { - "$ref": "#/definitions/XML" - } - }, - "patternProperties": { - "^x-": true - }, - "additionalProperties": false -} \ No newline at end of file diff --git a/definitions/2.2.0/avroSchema_v1.json b/definitions/2.2.0/avroSchema_v1.json deleted file mode 100644 index f5ec8a12..00000000 --- a/definitions/2.2.0/avroSchema_v1.json +++ /dev/null @@ -1,317 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.2.0/avroSchema_v1.json", - "definitions": { - "avroSchema": { - "title": "Avro Schema", - "description": "Root Schema", - "oneOf": [ - { - "$ref": "#/definitions/types" - } - ] - }, - "types": { - "title": "Avro Types", - "description": "Allowed Avro types", - "oneOf": [ - { - "$ref": "#/definitions/primitiveType" - }, - { - "$ref": "#/definitions/primitiveTypeWithMetadata" - }, - { - "$ref": "#/definitions/customTypeReference" - }, - { - "$ref": "#/definitions/avroRecord" - }, - { - "$ref": "#/definitions/avroEnum" - }, - { - "$ref": "#/definitions/avroArray" - }, - { - "$ref": "#/definitions/avroMap" - }, - { - "$ref": "#/definitions/avroFixed" - }, - { - "$ref": "#/definitions/avroUnion" - } - ] - }, - "primitiveType": { - "title": "Primitive Type", - "description": "Basic type primitives.", - "type": "string", - "enum": [ - "null", - "boolean", - "int", - "long", - "float", - "double", - "bytes", - "string" - ] - }, - "primitiveTypeWithMetadata": { - "title": "Primitive Type With Metadata", - "description": "A primitive type with metadata attached.", - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/primitiveType" - } - }, - "required": [ - "type" - ] - }, - "customTypeReference": { - "title": "Custom Type", - "description": "Reference to a ComplexType", - "not": { - "$ref": "#/definitions/primitiveType" - }, - "type": "string", - "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$" - }, - "avroUnion": { - "title": "Union", - "description": "A Union of types", - "type": "array", - "items": { - "$ref": "#/definitions/avroSchema" - }, - "minItems": 1 - }, - "avroField": { - "title": "Field", - "description": "A field within a Record", - "type": "object", - "properties": { - "name": { - "$ref": "#/definitions/name" - }, - "type": { - "$ref": "#/definitions/types" - }, - "doc": { - "type": "string" - }, - "default": true, - "order": { - "enum": [ - "ascending", - "descending", - "ignore" - ] - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - } - }, - "required": [ - "name", - "type" - ] - }, - "avroRecord": { - "title": "Record", - "description": "A Record", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "record" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "fields": { - "type": "array", - "items": { - "$ref": "#/definitions/avroField" - } - } - }, - "required": [ - "type", - "name", - "fields" - ] - }, - "avroEnum": { - "title": "Enum", - "description": "An enumeration", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "enum" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "symbols": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - } - }, - "required": [ - "type", - "name", - "symbols" - ] - }, - "avroArray": { - "title": "Array", - "description": "An array", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "array" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "items": { - "$ref": "#/definitions/types" - } - }, - "required": [ - "type", - "items" - ] - }, - "avroMap": { - "title": "Map", - "description": "A map of values", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "map" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "values": { - "$ref": "#/definitions/types" - } - }, - "required": [ - "type", - "values" - ] - }, - "avroFixed": { - "title": "Fixed", - "description": "A fixed sized array of bytes", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "fixed" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "size": { - "type": "number" - } - }, - "required": [ - "type", - "name", - "size" - ] - }, - "name": { - "type": "string", - "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" - }, - "namespace": { - "type": "string", - "pattern": "^([A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*)*$" - } - }, - "description": "Json-Schema definition for Avro AVSC files.", - "oneOf": [ - { - "$ref": "#/definitions/avroSchema" - } - ], - "title": "Avro Schema Definition" -} \ No newline at end of file diff --git a/definitions/2.2.0/message.json b/definitions/2.2.0/message.json index 472a75da..706dd5b0 100644 --- a/definitions/2.2.0/message.json +++ b/definitions/2.2.0/message.json @@ -226,7 +226,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.2.0/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json" } } } @@ -249,7 +249,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.2.0/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } diff --git a/definitions/2.2.0/openapiSchema_3_0.json b/definitions/2.2.0/openapiSchema_3_0.json deleted file mode 100644 index 99963d2e..00000000 --- a/definitions/2.2.0/openapiSchema_3_0.json +++ /dev/null @@ -1,288 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.2.0/openapiSchema_3_0.json", - "type": "object", - "definitions": { - "ExternalDocumentation": { - "type": "object", - "required": [ - "url" - ], - "properties": { - "description": { - "type": "string" - }, - "url": { - "type": "string", - "format": "uri-reference" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Discriminator": { - "type": "object", - "required": [ - "propertyName" - ], - "properties": { - "propertyName": { - "type": "string" - }, - "mapping": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "Reference": { - "type": "object", - "required": [ - "$ref" - ], - "patternProperties": { - "^\\$ref$": { - "type": "string", - "format": "uri-reference" - } - } - }, - "XML": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string", - "format": "uri" - }, - "prefix": { - "type": "string" - }, - "attribute": { - "type": "boolean", - "default": false - }, - "wrapped": { - "type": "boolean", - "default": false - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - } - }, - "properties": { - "title": { - "type": "string" - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "boolean", - "default": false - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "boolean", - "default": false - }, - "maxLength": { - "type": "integer", - "minimum": 0 - }, - "minLength": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": { - "type": "integer", - "minimum": 0 - }, - "minItems": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxProperties": { - "type": "integer", - "minimum": 0 - }, - "minProperties": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "required": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "uniqueItems": true - }, - "enum": { - "type": "array", - "items": true, - "minItems": 1, - "uniqueItems": false - }, - "type": { - "type": "string", - "enum": [ - "array", - "boolean", - "integer", - "number", - "object", - "string" - ] - }, - "not": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "allOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "oneOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "anyOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "properties": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "additionalProperties": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - }, - { - "type": "boolean" - } - ], - "default": true - }, - "description": { - "type": "string" - }, - "format": { - "type": "string" - }, - "default": true, - "nullable": { - "type": "boolean", - "default": false - }, - "discriminator": { - "$ref": "#/definitions/Discriminator" - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "example": true, - "externalDocs": { - "$ref": "#/definitions/ExternalDocumentation" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "xml": { - "$ref": "#/definitions/XML" - } - }, - "patternProperties": { - "^x-": true - }, - "additionalProperties": false -} \ No newline at end of file diff --git a/definitions/2.3.0/avroSchema_v1.json b/definitions/2.3.0/avroSchema_v1.json deleted file mode 100644 index 93a7615d..00000000 --- a/definitions/2.3.0/avroSchema_v1.json +++ /dev/null @@ -1,317 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.3.0/avroSchema_v1.json", - "definitions": { - "avroSchema": { - "title": "Avro Schema", - "description": "Root Schema", - "oneOf": [ - { - "$ref": "#/definitions/types" - } - ] - }, - "types": { - "title": "Avro Types", - "description": "Allowed Avro types", - "oneOf": [ - { - "$ref": "#/definitions/primitiveType" - }, - { - "$ref": "#/definitions/primitiveTypeWithMetadata" - }, - { - "$ref": "#/definitions/customTypeReference" - }, - { - "$ref": "#/definitions/avroRecord" - }, - { - "$ref": "#/definitions/avroEnum" - }, - { - "$ref": "#/definitions/avroArray" - }, - { - "$ref": "#/definitions/avroMap" - }, - { - "$ref": "#/definitions/avroFixed" - }, - { - "$ref": "#/definitions/avroUnion" - } - ] - }, - "primitiveType": { - "title": "Primitive Type", - "description": "Basic type primitives.", - "type": "string", - "enum": [ - "null", - "boolean", - "int", - "long", - "float", - "double", - "bytes", - "string" - ] - }, - "primitiveTypeWithMetadata": { - "title": "Primitive Type With Metadata", - "description": "A primitive type with metadata attached.", - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/primitiveType" - } - }, - "required": [ - "type" - ] - }, - "customTypeReference": { - "title": "Custom Type", - "description": "Reference to a ComplexType", - "not": { - "$ref": "#/definitions/primitiveType" - }, - "type": "string", - "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$" - }, - "avroUnion": { - "title": "Union", - "description": "A Union of types", - "type": "array", - "items": { - "$ref": "#/definitions/avroSchema" - }, - "minItems": 1 - }, - "avroField": { - "title": "Field", - "description": "A field within a Record", - "type": "object", - "properties": { - "name": { - "$ref": "#/definitions/name" - }, - "type": { - "$ref": "#/definitions/types" - }, - "doc": { - "type": "string" - }, - "default": true, - "order": { - "enum": [ - "ascending", - "descending", - "ignore" - ] - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - } - }, - "required": [ - "name", - "type" - ] - }, - "avroRecord": { - "title": "Record", - "description": "A Record", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "record" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "fields": { - "type": "array", - "items": { - "$ref": "#/definitions/avroField" - } - } - }, - "required": [ - "type", - "name", - "fields" - ] - }, - "avroEnum": { - "title": "Enum", - "description": "An enumeration", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "enum" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "symbols": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - } - }, - "required": [ - "type", - "name", - "symbols" - ] - }, - "avroArray": { - "title": "Array", - "description": "An array", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "array" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "items": { - "$ref": "#/definitions/types" - } - }, - "required": [ - "type", - "items" - ] - }, - "avroMap": { - "title": "Map", - "description": "A map of values", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "map" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "values": { - "$ref": "#/definitions/types" - } - }, - "required": [ - "type", - "values" - ] - }, - "avroFixed": { - "title": "Fixed", - "description": "A fixed sized array of bytes", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "fixed" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "size": { - "type": "number" - } - }, - "required": [ - "type", - "name", - "size" - ] - }, - "name": { - "type": "string", - "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" - }, - "namespace": { - "type": "string", - "pattern": "^([A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*)*$" - } - }, - "description": "Json-Schema definition for Avro AVSC files.", - "oneOf": [ - { - "$ref": "#/definitions/avroSchema" - } - ], - "title": "Avro Schema Definition" -} \ No newline at end of file diff --git a/definitions/2.3.0/message.json b/definitions/2.3.0/message.json index 478a66f4..bc6f1a05 100644 --- a/definitions/2.3.0/message.json +++ b/definitions/2.3.0/message.json @@ -229,7 +229,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.3.0/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json" } } } @@ -252,7 +252,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.3.0/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } diff --git a/definitions/2.3.0/openapiSchema_3_0.json b/definitions/2.3.0/openapiSchema_3_0.json deleted file mode 100644 index 15de2abc..00000000 --- a/definitions/2.3.0/openapiSchema_3_0.json +++ /dev/null @@ -1,288 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.3.0/openapiSchema_3_0.json", - "type": "object", - "definitions": { - "ExternalDocumentation": { - "type": "object", - "required": [ - "url" - ], - "properties": { - "description": { - "type": "string" - }, - "url": { - "type": "string", - "format": "uri-reference" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Discriminator": { - "type": "object", - "required": [ - "propertyName" - ], - "properties": { - "propertyName": { - "type": "string" - }, - "mapping": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "Reference": { - "type": "object", - "required": [ - "$ref" - ], - "patternProperties": { - "^\\$ref$": { - "type": "string", - "format": "uri-reference" - } - } - }, - "XML": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string", - "format": "uri" - }, - "prefix": { - "type": "string" - }, - "attribute": { - "type": "boolean", - "default": false - }, - "wrapped": { - "type": "boolean", - "default": false - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - } - }, - "properties": { - "title": { - "type": "string" - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "boolean", - "default": false - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "boolean", - "default": false - }, - "maxLength": { - "type": "integer", - "minimum": 0 - }, - "minLength": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": { - "type": "integer", - "minimum": 0 - }, - "minItems": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxProperties": { - "type": "integer", - "minimum": 0 - }, - "minProperties": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "required": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "uniqueItems": true - }, - "enum": { - "type": "array", - "items": true, - "minItems": 1, - "uniqueItems": false - }, - "type": { - "type": "string", - "enum": [ - "array", - "boolean", - "integer", - "number", - "object", - "string" - ] - }, - "not": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "allOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "oneOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "anyOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "properties": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "additionalProperties": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - }, - { - "type": "boolean" - } - ], - "default": true - }, - "description": { - "type": "string" - }, - "format": { - "type": "string" - }, - "default": true, - "nullable": { - "type": "boolean", - "default": false - }, - "discriminator": { - "$ref": "#/definitions/Discriminator" - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "example": true, - "externalDocs": { - "$ref": "#/definitions/ExternalDocumentation" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "xml": { - "$ref": "#/definitions/XML" - } - }, - "patternProperties": { - "^x-": true - }, - "additionalProperties": false -} \ No newline at end of file diff --git a/definitions/2.4.0/avroSchema_v1.json b/definitions/2.4.0/avroSchema_v1.json deleted file mode 100644 index 19394659..00000000 --- a/definitions/2.4.0/avroSchema_v1.json +++ /dev/null @@ -1,317 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.4.0/avroSchema_v1.json", - "definitions": { - "avroSchema": { - "title": "Avro Schema", - "description": "Root Schema", - "oneOf": [ - { - "$ref": "#/definitions/types" - } - ] - }, - "types": { - "title": "Avro Types", - "description": "Allowed Avro types", - "oneOf": [ - { - "$ref": "#/definitions/primitiveType" - }, - { - "$ref": "#/definitions/primitiveTypeWithMetadata" - }, - { - "$ref": "#/definitions/customTypeReference" - }, - { - "$ref": "#/definitions/avroRecord" - }, - { - "$ref": "#/definitions/avroEnum" - }, - { - "$ref": "#/definitions/avroArray" - }, - { - "$ref": "#/definitions/avroMap" - }, - { - "$ref": "#/definitions/avroFixed" - }, - { - "$ref": "#/definitions/avroUnion" - } - ] - }, - "primitiveType": { - "title": "Primitive Type", - "description": "Basic type primitives.", - "type": "string", - "enum": [ - "null", - "boolean", - "int", - "long", - "float", - "double", - "bytes", - "string" - ] - }, - "primitiveTypeWithMetadata": { - "title": "Primitive Type With Metadata", - "description": "A primitive type with metadata attached.", - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/primitiveType" - } - }, - "required": [ - "type" - ] - }, - "customTypeReference": { - "title": "Custom Type", - "description": "Reference to a ComplexType", - "not": { - "$ref": "#/definitions/primitiveType" - }, - "type": "string", - "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$" - }, - "avroUnion": { - "title": "Union", - "description": "A Union of types", - "type": "array", - "items": { - "$ref": "#/definitions/avroSchema" - }, - "minItems": 1 - }, - "avroField": { - "title": "Field", - "description": "A field within a Record", - "type": "object", - "properties": { - "name": { - "$ref": "#/definitions/name" - }, - "type": { - "$ref": "#/definitions/types" - }, - "doc": { - "type": "string" - }, - "default": true, - "order": { - "enum": [ - "ascending", - "descending", - "ignore" - ] - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - } - }, - "required": [ - "name", - "type" - ] - }, - "avroRecord": { - "title": "Record", - "description": "A Record", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "record" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "fields": { - "type": "array", - "items": { - "$ref": "#/definitions/avroField" - } - } - }, - "required": [ - "type", - "name", - "fields" - ] - }, - "avroEnum": { - "title": "Enum", - "description": "An enumeration", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "enum" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "symbols": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - } - }, - "required": [ - "type", - "name", - "symbols" - ] - }, - "avroArray": { - "title": "Array", - "description": "An array", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "array" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "items": { - "$ref": "#/definitions/types" - } - }, - "required": [ - "type", - "items" - ] - }, - "avroMap": { - "title": "Map", - "description": "A map of values", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "map" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "values": { - "$ref": "#/definitions/types" - } - }, - "required": [ - "type", - "values" - ] - }, - "avroFixed": { - "title": "Fixed", - "description": "A fixed sized array of bytes", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "fixed" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "size": { - "type": "number" - } - }, - "required": [ - "type", - "name", - "size" - ] - }, - "name": { - "type": "string", - "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" - }, - "namespace": { - "type": "string", - "pattern": "^([A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*)*$" - } - }, - "description": "Json-Schema definition for Avro AVSC files.", - "oneOf": [ - { - "$ref": "#/definitions/avroSchema" - } - ], - "title": "Avro Schema Definition" -} \ No newline at end of file diff --git a/definitions/2.4.0/message.json b/definitions/2.4.0/message.json index 458996dc..48c8a953 100644 --- a/definitions/2.4.0/message.json +++ b/definitions/2.4.0/message.json @@ -235,7 +235,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.4.0/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json" } } } @@ -258,7 +258,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.4.0/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } diff --git a/definitions/2.4.0/openapiSchema_3_0.json b/definitions/2.4.0/openapiSchema_3_0.json deleted file mode 100644 index ef4b91f4..00000000 --- a/definitions/2.4.0/openapiSchema_3_0.json +++ /dev/null @@ -1,288 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.4.0/openapiSchema_3_0.json", - "type": "object", - "definitions": { - "ExternalDocumentation": { - "type": "object", - "required": [ - "url" - ], - "properties": { - "description": { - "type": "string" - }, - "url": { - "type": "string", - "format": "uri-reference" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Discriminator": { - "type": "object", - "required": [ - "propertyName" - ], - "properties": { - "propertyName": { - "type": "string" - }, - "mapping": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "Reference": { - "type": "object", - "required": [ - "$ref" - ], - "patternProperties": { - "^\\$ref$": { - "type": "string", - "format": "uri-reference" - } - } - }, - "XML": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string", - "format": "uri" - }, - "prefix": { - "type": "string" - }, - "attribute": { - "type": "boolean", - "default": false - }, - "wrapped": { - "type": "boolean", - "default": false - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - } - }, - "properties": { - "title": { - "type": "string" - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "boolean", - "default": false - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "boolean", - "default": false - }, - "maxLength": { - "type": "integer", - "minimum": 0 - }, - "minLength": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": { - "type": "integer", - "minimum": 0 - }, - "minItems": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxProperties": { - "type": "integer", - "minimum": 0 - }, - "minProperties": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "required": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "uniqueItems": true - }, - "enum": { - "type": "array", - "items": true, - "minItems": 1, - "uniqueItems": false - }, - "type": { - "type": "string", - "enum": [ - "array", - "boolean", - "integer", - "number", - "object", - "string" - ] - }, - "not": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "allOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "oneOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "anyOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "properties": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "additionalProperties": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - }, - { - "type": "boolean" - } - ], - "default": true - }, - "description": { - "type": "string" - }, - "format": { - "type": "string" - }, - "default": true, - "nullable": { - "type": "boolean", - "default": false - }, - "discriminator": { - "$ref": "#/definitions/Discriminator" - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "example": true, - "externalDocs": { - "$ref": "#/definitions/ExternalDocumentation" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "xml": { - "$ref": "#/definitions/XML" - } - }, - "patternProperties": { - "^x-": true - }, - "additionalProperties": false -} \ No newline at end of file diff --git a/definitions/2.5.0/avroSchema_v1.json b/definitions/2.5.0/avroSchema_v1.json deleted file mode 100644 index 34386294..00000000 --- a/definitions/2.5.0/avroSchema_v1.json +++ /dev/null @@ -1,317 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.5.0/avroSchema_v1.json", - "definitions": { - "avroSchema": { - "title": "Avro Schema", - "description": "Root Schema", - "oneOf": [ - { - "$ref": "#/definitions/types" - } - ] - }, - "types": { - "title": "Avro Types", - "description": "Allowed Avro types", - "oneOf": [ - { - "$ref": "#/definitions/primitiveType" - }, - { - "$ref": "#/definitions/primitiveTypeWithMetadata" - }, - { - "$ref": "#/definitions/customTypeReference" - }, - { - "$ref": "#/definitions/avroRecord" - }, - { - "$ref": "#/definitions/avroEnum" - }, - { - "$ref": "#/definitions/avroArray" - }, - { - "$ref": "#/definitions/avroMap" - }, - { - "$ref": "#/definitions/avroFixed" - }, - { - "$ref": "#/definitions/avroUnion" - } - ] - }, - "primitiveType": { - "title": "Primitive Type", - "description": "Basic type primitives.", - "type": "string", - "enum": [ - "null", - "boolean", - "int", - "long", - "float", - "double", - "bytes", - "string" - ] - }, - "primitiveTypeWithMetadata": { - "title": "Primitive Type With Metadata", - "description": "A primitive type with metadata attached.", - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/primitiveType" - } - }, - "required": [ - "type" - ] - }, - "customTypeReference": { - "title": "Custom Type", - "description": "Reference to a ComplexType", - "not": { - "$ref": "#/definitions/primitiveType" - }, - "type": "string", - "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$" - }, - "avroUnion": { - "title": "Union", - "description": "A Union of types", - "type": "array", - "items": { - "$ref": "#/definitions/avroSchema" - }, - "minItems": 1 - }, - "avroField": { - "title": "Field", - "description": "A field within a Record", - "type": "object", - "properties": { - "name": { - "$ref": "#/definitions/name" - }, - "type": { - "$ref": "#/definitions/types" - }, - "doc": { - "type": "string" - }, - "default": true, - "order": { - "enum": [ - "ascending", - "descending", - "ignore" - ] - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - } - }, - "required": [ - "name", - "type" - ] - }, - "avroRecord": { - "title": "Record", - "description": "A Record", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "record" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "fields": { - "type": "array", - "items": { - "$ref": "#/definitions/avroField" - } - } - }, - "required": [ - "type", - "name", - "fields" - ] - }, - "avroEnum": { - "title": "Enum", - "description": "An enumeration", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "enum" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "symbols": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - } - }, - "required": [ - "type", - "name", - "symbols" - ] - }, - "avroArray": { - "title": "Array", - "description": "An array", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "array" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "items": { - "$ref": "#/definitions/types" - } - }, - "required": [ - "type", - "items" - ] - }, - "avroMap": { - "title": "Map", - "description": "A map of values", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "map" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "values": { - "$ref": "#/definitions/types" - } - }, - "required": [ - "type", - "values" - ] - }, - "avroFixed": { - "title": "Fixed", - "description": "A fixed sized array of bytes", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "fixed" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "size": { - "type": "number" - } - }, - "required": [ - "type", - "name", - "size" - ] - }, - "name": { - "type": "string", - "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" - }, - "namespace": { - "type": "string", - "pattern": "^([A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*)*$" - } - }, - "description": "Json-Schema definition for Avro AVSC files.", - "oneOf": [ - { - "$ref": "#/definitions/avroSchema" - } - ], - "title": "Avro Schema Definition" -} \ No newline at end of file diff --git a/definitions/2.5.0/message.json b/definitions/2.5.0/message.json index c1133928..68d534f0 100644 --- a/definitions/2.5.0/message.json +++ b/definitions/2.5.0/message.json @@ -232,7 +232,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.5.0/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json" } } } @@ -255,7 +255,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.5.0/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } diff --git a/definitions/2.5.0/openapiSchema_3_0.json b/definitions/2.5.0/openapiSchema_3_0.json deleted file mode 100644 index 5ae95127..00000000 --- a/definitions/2.5.0/openapiSchema_3_0.json +++ /dev/null @@ -1,288 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.5.0/openapiSchema_3_0.json", - "type": "object", - "definitions": { - "ExternalDocumentation": { - "type": "object", - "required": [ - "url" - ], - "properties": { - "description": { - "type": "string" - }, - "url": { - "type": "string", - "format": "uri-reference" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Discriminator": { - "type": "object", - "required": [ - "propertyName" - ], - "properties": { - "propertyName": { - "type": "string" - }, - "mapping": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "Reference": { - "type": "object", - "required": [ - "$ref" - ], - "patternProperties": { - "^\\$ref$": { - "type": "string", - "format": "uri-reference" - } - } - }, - "XML": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string", - "format": "uri" - }, - "prefix": { - "type": "string" - }, - "attribute": { - "type": "boolean", - "default": false - }, - "wrapped": { - "type": "boolean", - "default": false - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - } - }, - "properties": { - "title": { - "type": "string" - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "boolean", - "default": false - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "boolean", - "default": false - }, - "maxLength": { - "type": "integer", - "minimum": 0 - }, - "minLength": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": { - "type": "integer", - "minimum": 0 - }, - "minItems": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxProperties": { - "type": "integer", - "minimum": 0 - }, - "minProperties": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "required": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "uniqueItems": true - }, - "enum": { - "type": "array", - "items": true, - "minItems": 1, - "uniqueItems": false - }, - "type": { - "type": "string", - "enum": [ - "array", - "boolean", - "integer", - "number", - "object", - "string" - ] - }, - "not": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "allOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "oneOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "anyOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "properties": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "additionalProperties": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - }, - { - "type": "boolean" - } - ], - "default": true - }, - "description": { - "type": "string" - }, - "format": { - "type": "string" - }, - "default": true, - "nullable": { - "type": "boolean", - "default": false - }, - "discriminator": { - "$ref": "#/definitions/Discriminator" - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "example": true, - "externalDocs": { - "$ref": "#/definitions/ExternalDocumentation" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "xml": { - "$ref": "#/definitions/XML" - } - }, - "patternProperties": { - "^x-": true - }, - "additionalProperties": false -} \ No newline at end of file diff --git a/definitions/2.6.0/avroSchema_v1.json b/definitions/2.6.0/avroSchema_v1.json deleted file mode 100644 index f215bdaa..00000000 --- a/definitions/2.6.0/avroSchema_v1.json +++ /dev/null @@ -1,317 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.6.0/avroSchema_v1.json", - "definitions": { - "avroSchema": { - "title": "Avro Schema", - "description": "Root Schema", - "oneOf": [ - { - "$ref": "#/definitions/types" - } - ] - }, - "types": { - "title": "Avro Types", - "description": "Allowed Avro types", - "oneOf": [ - { - "$ref": "#/definitions/primitiveType" - }, - { - "$ref": "#/definitions/primitiveTypeWithMetadata" - }, - { - "$ref": "#/definitions/customTypeReference" - }, - { - "$ref": "#/definitions/avroRecord" - }, - { - "$ref": "#/definitions/avroEnum" - }, - { - "$ref": "#/definitions/avroArray" - }, - { - "$ref": "#/definitions/avroMap" - }, - { - "$ref": "#/definitions/avroFixed" - }, - { - "$ref": "#/definitions/avroUnion" - } - ] - }, - "primitiveType": { - "title": "Primitive Type", - "description": "Basic type primitives.", - "type": "string", - "enum": [ - "null", - "boolean", - "int", - "long", - "float", - "double", - "bytes", - "string" - ] - }, - "primitiveTypeWithMetadata": { - "title": "Primitive Type With Metadata", - "description": "A primitive type with metadata attached.", - "type": "object", - "properties": { - "type": { - "$ref": "#/definitions/primitiveType" - } - }, - "required": [ - "type" - ] - }, - "customTypeReference": { - "title": "Custom Type", - "description": "Reference to a ComplexType", - "not": { - "$ref": "#/definitions/primitiveType" - }, - "type": "string", - "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$" - }, - "avroUnion": { - "title": "Union", - "description": "A Union of types", - "type": "array", - "items": { - "$ref": "#/definitions/avroSchema" - }, - "minItems": 1 - }, - "avroField": { - "title": "Field", - "description": "A field within a Record", - "type": "object", - "properties": { - "name": { - "$ref": "#/definitions/name" - }, - "type": { - "$ref": "#/definitions/types" - }, - "doc": { - "type": "string" - }, - "default": true, - "order": { - "enum": [ - "ascending", - "descending", - "ignore" - ] - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - } - }, - "required": [ - "name", - "type" - ] - }, - "avroRecord": { - "title": "Record", - "description": "A Record", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "record" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "fields": { - "type": "array", - "items": { - "$ref": "#/definitions/avroField" - } - } - }, - "required": [ - "type", - "name", - "fields" - ] - }, - "avroEnum": { - "title": "Enum", - "description": "An enumeration", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "enum" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "symbols": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - } - }, - "required": [ - "type", - "name", - "symbols" - ] - }, - "avroArray": { - "title": "Array", - "description": "An array", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "array" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "items": { - "$ref": "#/definitions/types" - } - }, - "required": [ - "type", - "items" - ] - }, - "avroMap": { - "title": "Map", - "description": "A map of values", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "map" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "values": { - "$ref": "#/definitions/types" - } - }, - "required": [ - "type", - "values" - ] - }, - "avroFixed": { - "title": "Fixed", - "description": "A fixed sized array of bytes", - "type": "object", - "properties": { - "type": { - "type": "string", - "const": "fixed" - }, - "name": { - "$ref": "#/definitions/name" - }, - "namespace": { - "$ref": "#/definitions/namespace" - }, - "doc": { - "type": "string" - }, - "aliases": { - "type": "array", - "items": { - "$ref": "#/definitions/name" - } - }, - "size": { - "type": "number" - } - }, - "required": [ - "type", - "name", - "size" - ] - }, - "name": { - "type": "string", - "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" - }, - "namespace": { - "type": "string", - "pattern": "^([A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*)*$" - } - }, - "description": "Json-Schema definition for Avro AVSC files.", - "oneOf": [ - { - "$ref": "#/definitions/avroSchema" - } - ], - "title": "Avro Schema Definition" -} \ No newline at end of file diff --git a/definitions/2.6.0/message.json b/definitions/2.6.0/message.json index 8069c607..6b26f5f8 100644 --- a/definitions/2.6.0/message.json +++ b/definitions/2.6.0/message.json @@ -240,7 +240,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.6.0/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json" } } } @@ -263,7 +263,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.6.0/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } diff --git a/definitions/2.6.0/openapiSchema_3_0.json b/definitions/2.6.0/openapiSchema_3_0.json deleted file mode 100644 index ec5dbe72..00000000 --- a/definitions/2.6.0/openapiSchema_3_0.json +++ /dev/null @@ -1,288 +0,0 @@ -{ - "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.6.0/openapiSchema_3_0.json", - "type": "object", - "definitions": { - "ExternalDocumentation": { - "type": "object", - "required": [ - "url" - ], - "properties": { - "description": { - "type": "string" - }, - "url": { - "type": "string", - "format": "uri-reference" - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - }, - "Discriminator": { - "type": "object", - "required": [ - "propertyName" - ], - "properties": { - "propertyName": { - "type": "string" - }, - "mapping": { - "type": "object", - "additionalProperties": { - "type": "string" - } - } - } - }, - "Reference": { - "type": "object", - "required": [ - "$ref" - ], - "patternProperties": { - "^\\$ref$": { - "type": "string", - "format": "uri-reference" - } - } - }, - "XML": { - "type": "object", - "properties": { - "name": { - "type": "string" - }, - "namespace": { - "type": "string", - "format": "uri" - }, - "prefix": { - "type": "string" - }, - "attribute": { - "type": "boolean", - "default": false - }, - "wrapped": { - "type": "boolean", - "default": false - } - }, - "patternProperties": { - "^x-": {} - }, - "additionalProperties": false - } - }, - "properties": { - "title": { - "type": "string" - }, - "multipleOf": { - "type": "number", - "exclusiveMinimum": 0 - }, - "maximum": { - "type": "number" - }, - "exclusiveMaximum": { - "type": "boolean", - "default": false - }, - "minimum": { - "type": "number" - }, - "exclusiveMinimum": { - "type": "boolean", - "default": false - }, - "maxLength": { - "type": "integer", - "minimum": 0 - }, - "minLength": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "pattern": { - "type": "string", - "format": "regex" - }, - "maxItems": { - "type": "integer", - "minimum": 0 - }, - "minItems": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "uniqueItems": { - "type": "boolean", - "default": false - }, - "maxProperties": { - "type": "integer", - "minimum": 0 - }, - "minProperties": { - "type": "integer", - "minimum": 0, - "default": 0 - }, - "required": { - "type": "array", - "items": { - "type": "string" - }, - "minItems": 1, - "uniqueItems": true - }, - "enum": { - "type": "array", - "items": true, - "minItems": 1, - "uniqueItems": false - }, - "type": { - "type": "string", - "enum": [ - "array", - "boolean", - "integer", - "number", - "object", - "string" - ] - }, - "not": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "allOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "oneOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "anyOf": { - "type": "array", - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "items": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - }, - "properties": { - "type": "object", - "additionalProperties": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - } - ] - } - }, - "additionalProperties": { - "oneOf": [ - { - "$ref": "#" - }, - { - "$ref": "#/definitions/Reference" - }, - { - "type": "boolean" - } - ], - "default": true - }, - "description": { - "type": "string" - }, - "format": { - "type": "string" - }, - "default": true, - "nullable": { - "type": "boolean", - "default": false - }, - "discriminator": { - "$ref": "#/definitions/Discriminator" - }, - "readOnly": { - "type": "boolean", - "default": false - }, - "writeOnly": { - "type": "boolean", - "default": false - }, - "example": true, - "externalDocs": { - "$ref": "#/definitions/ExternalDocumentation" - }, - "deprecated": { - "type": "boolean", - "default": false - }, - "xml": { - "$ref": "#/definitions/XML" - } - }, - "patternProperties": { - "^x-": true - }, - "additionalProperties": false -} \ No newline at end of file diff --git a/definitions/3.0.0/multiFormatAsyncAPISchemaMessage.json b/definitions/3.0.0/multiFormatAsyncAPISchemaMessage.json new file mode 100644 index 00000000..56f137cb --- /dev/null +++ b/definitions/3.0.0/multiFormatAsyncAPISchemaMessage.json @@ -0,0 +1,48 @@ +{ + + "if": { + "description": "If schemaFormat has been defined check if it's one of the AsyncAPI Schema Object formats", + "required": [ + "schemaFormat" + ], + "properties": { + "schemaFormat": { + "enum": [ + "application/vnd.aai.asyncapi;version=2.0.0", + "application/vnd.aai.asyncapi+json;version=2.0.0", + "application/vnd.aai.asyncapi+yaml;version=2.0.0", + "application/vnd.aai.asyncapi;version=2.1.0", + "application/vnd.aai.asyncapi+json;version=2.1.0", + "application/vnd.aai.asyncapi+yaml;version=2.1.0", + "application/vnd.aai.asyncapi;version=2.2.0", + "application/vnd.aai.asyncapi+json;version=2.2.0", + "application/vnd.aai.asyncapi+yaml;version=2.2.0", + "application/vnd.aai.asyncapi;version=2.3.0", + "application/vnd.aai.asyncapi+json;version=2.3.0", + "application/vnd.aai.asyncapi+yaml;version=2.3.0", + "application/vnd.aai.asyncapi;version=2.4.0", + "application/vnd.aai.asyncapi+json;version=2.4.0", + "application/vnd.aai.asyncapi+yaml;version=2.4.0", + "application/vnd.aai.asyncapi;version=2.5.0", + "application/vnd.aai.asyncapi+json;version=2.5.0", + "application/vnd.aai.asyncapi+yaml;version=2.5.0", + "application/vnd.aai.asyncapi;version=2.6.0", + "application/vnd.aai.asyncapi+json;version=2.6.0", + "application/vnd.aai.asyncapi+yaml;version=2.6.0", + "application/vnd.aai.asyncapi;version=3.0.0", + "application/vnd.aai.asyncapi+json;version=3.0.0", + "application/vnd.aai.asyncapi+yaml;version=3.0.0" + ] + } + } + }, + "then": { + "properties": { + "schema": { + "$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" + } + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "http://asyncapi.com/definitions/3.0.0/multiFormatAsyncAPISchemaMessage.json" +} \ No newline at end of file diff --git a/definitions/3.0.0/multiFormatAvroMessage.json b/definitions/3.0.0/multiFormatAvroMessage.json new file mode 100644 index 00000000..09620924 --- /dev/null +++ b/definitions/3.0.0/multiFormatAvroMessage.json @@ -0,0 +1,32 @@ +{ + "if": { + "required": [ + "schemaFormat" + ], + "properties": { + "schemaFormat": { + "enum": [ + "application/vnd.apache.avro;version=1.9.0", + "application/vnd.apache.avro+json;version=1.9.0", + "application/vnd.apache.avro+yaml;version=1.9.0" + ] + } + } + }, + "then": { + "properties": { + "schema": { + "oneOf": [ + { + "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" + }, + { + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" + } + ] + } + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "http://asyncapi.com/definitions/3.0.0/multiFormatAvroMessage.json" +} \ No newline at end of file diff --git a/definitions/3.0.0/multiFormatJsonSchemaMessage.json b/definitions/3.0.0/multiFormatJsonSchemaMessage.json new file mode 100644 index 00000000..d5bb45ca --- /dev/null +++ b/definitions/3.0.0/multiFormatJsonSchemaMessage.json @@ -0,0 +1,24 @@ +{ + "if": { + "required": [ + "schemaFormat" + ], + "properties": { + "schemaFormat": { + "enum": [ + "application/schema+json;version=draft-07", + "application/schema+yaml;version=draft-07" + ] + } + } + }, + "then": { + "properties": { + "schema": { + "$ref": "http://json-schema.org/draft-07/schema" + } + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "http://asyncapi.com/definitions/3.0.0/multiFormatJsonSchemaMessage.json" +} \ No newline at end of file diff --git a/definitions/3.0.0/multiFormatOpenAPIMessage.json b/definitions/3.0.0/multiFormatOpenAPIMessage.json new file mode 100644 index 00000000..b8229e08 --- /dev/null +++ b/definitions/3.0.0/multiFormatOpenAPIMessage.json @@ -0,0 +1,32 @@ +{ + "if": { + "required": [ + "schemaFormat" + ], + "properties": { + "schemaFormat": { + "enum": [ + "application/vnd.oai.openapi;version=3.0.0", + "application/vnd.oai.openapi+json;version=3.0.0", + "application/vnd.oai.openapi+yaml;version=3.0.0" + ] + } + } + }, + "then": { + "properties": { + "schema": { + "oneOf": [ + { + "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" + }, + { + "$ref": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json" + } + ] + } + } + }, + "$schema": "http://json-schema.org/draft-07/schema#", + "$id": "http://asyncapi.com/definitions/3.0.0/multiFormatOpenAPIMessage.json" +} \ No newline at end of file diff --git a/definitions/3.0.0/multiFormatSchema.json b/definitions/3.0.0/multiFormatSchema.json index 077cdcf6..b29ee2f0 100644 --- a/definitions/3.0.0/multiFormatSchema.json +++ b/definitions/3.0.0/multiFormatSchema.json @@ -6,197 +6,72 @@ "$ref": "http://asyncapi.com/definitions/3.0.0/specificationExtension.json" } }, - "if": { - "not": { - "type": "object" - } - }, - "then": { - "$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" - }, - "else": { - "properties": { - "schemaFormat": { - "description": "A string containing the name of the schema format that is used to define the information. If schemaFormat is missing, it MUST default to application/vnd.aai.asyncapi+json;version={{asyncapi}} where {{asyncapi}} matches the AsyncAPI Version String. In such a case, this would make the Multi Format Schema Object equivalent to the Schema Object. When using Reference Object within the schema, the schemaFormat of the resource being referenced MUST match the schemaFormat of the schema that contains the initial reference. For example, if you reference Avro schema, then schemaFormat of referencing resource and the resource being reference MUST match.", - "anyOf": [ - { - "type": "string" - }, - { - "description": "All the schema formats tooling MUST support", - "enum": [ - "application/schema+json;version=draft-07", - "application/schema+yaml;version=draft-07", + "properties": { + "schemaFormat": { + "description": "A string containing the name of the schema format that is used to define the information. If schemaFormat is missing, it MUST default to application/vnd.aai.asyncapi+json;version={{asyncapi}} where {{asyncapi}} matches the AsyncAPI Version String. In such a case, this would make the Multi Format Schema Object equivalent to the Schema Object. When using Reference Object within the schema, the schemaFormat of the resource being referenced MUST match the schemaFormat of the schema that contains the initial reference. For example, if you reference Avro schema, then schemaFormat of referencing resource and the resource being reference MUST match.", + "anyOf": [ + { + "type": "string" + }, + { + "description": "All the schema formats tooling MUST support", + "enum": [ + "application/schema+json;version=draft-07", + "application/schema+yaml;version=draft-07", - "application/vnd.aai.asyncapi;version=3.0.0", - "application/vnd.aai.asyncapi+json;version=3.0.0", - "application/vnd.aai.asyncapi+yaml;version=3.0.0" - ] - }, - { - "description": "All the schema formats tools are RECOMMENDED to support", - "enum": [ - "application/vnd.oai.openapi;version=3.0.0", - "application/vnd.oai.openapi+json;version=3.0.0", - "application/vnd.oai.openapi+yaml;version=3.0.0", + "application/vnd.aai.asyncapi;version=3.0.0", + "application/vnd.aai.asyncapi+json;version=3.0.0", + "application/vnd.aai.asyncapi+yaml;version=3.0.0" + ] + }, + { + "description": "All the schema formats tools are RECOMMENDED to support", + "enum": [ + "application/vnd.oai.openapi;version=3.0.0", + "application/vnd.oai.openapi+json;version=3.0.0", + "application/vnd.oai.openapi+yaml;version=3.0.0", - "application/vnd.apache.avro;version=1.9.0", - "application/vnd.apache.avro+json;version=1.9.0", - "application/vnd.apache.avro+yaml;version=1.9.0", + "application/vnd.apache.avro;version=1.9.0", + "application/vnd.apache.avro+json;version=1.9.0", + "application/vnd.apache.avro+yaml;version=1.9.0", - "application/raml+yaml;version=1.0" - ] - } - ] - } - }, - "allOf": [ - { - "if": { - "not": { - "description": "If no schemaFormat has been defined, default to schema or reference", - "required": [ - "schemaFormat" - ] - } - }, - "then": { - "properties": { - "schema": { - "$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" - } - } + "application/raml+yaml;version=1.0" + ] } - }, - { - "if": { - "description": "If schemaFormat has been defined check if it's one of the AsyncAPI Schema Object formats", - "required": [ - "schemaFormat" - ], - "properties": { - "schemaFormat": { - "enum": [ - "application/vnd.aai.asyncapi;version=2.0.0", - "application/vnd.aai.asyncapi+json;version=2.0.0", - "application/vnd.aai.asyncapi+yaml;version=2.0.0", - "application/vnd.aai.asyncapi;version=2.1.0", - "application/vnd.aai.asyncapi+json;version=2.1.0", - "application/vnd.aai.asyncapi+yaml;version=2.1.0", - "application/vnd.aai.asyncapi;version=2.2.0", - "application/vnd.aai.asyncapi+json;version=2.2.0", - "application/vnd.aai.asyncapi+yaml;version=2.2.0", - "application/vnd.aai.asyncapi;version=2.3.0", - "application/vnd.aai.asyncapi+json;version=2.3.0", - "application/vnd.aai.asyncapi+yaml;version=2.3.0", - "application/vnd.aai.asyncapi;version=2.4.0", - "application/vnd.aai.asyncapi+json;version=2.4.0", - "application/vnd.aai.asyncapi+yaml;version=2.4.0", - "application/vnd.aai.asyncapi;version=2.5.0", - "application/vnd.aai.asyncapi+json;version=2.5.0", - "application/vnd.aai.asyncapi+yaml;version=2.5.0", - "application/vnd.aai.asyncapi;version=2.6.0", - "application/vnd.aai.asyncapi+json;version=2.6.0", - "application/vnd.aai.asyncapi+yaml;version=2.6.0", - "application/vnd.aai.asyncapi;version=3.0.0", - "application/vnd.aai.asyncapi+json;version=3.0.0", - "application/vnd.aai.asyncapi+yaml;version=3.0.0" - ] - } - } - }, - "then": { - "properties": { - "schema": { - "$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" - } - } - } - }, - { - "if": { - "required": [ - "schemaFormat" - ], - "properties": { - "schemaFormat": { - "enum": [ - "application/schema+json;version=draft-07", - "application/schema+yaml;version=draft-07" - ] - } - } - }, - "then": { - "properties": { - "schema": { - "$ref": "http://json-schema.org/draft-07/schema" - } - } - } - }, - { - "if": { + ] + } + }, + "anyOf": [ + { + "if": { + "not": { + "description": "If no schemaFormat has been defined, default to schema or reference", "required": [ "schemaFormat" - ], - "properties": { - "schemaFormat": { - "enum": [ - "application/vnd.oai.openapi;version=3.0.0", - "application/vnd.oai.openapi+json;version=3.0.0", - "application/vnd.oai.openapi+yaml;version=3.0.0" - ] - } - } - }, - "then": { - "properties": { - "schema": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/3.0.0/openapiSchema_3_0.json" - } - ] - } - } + ] } }, - { - "if": { - "required": [ - "schemaFormat" - ], - "properties": { - "schemaFormat": { - "enum": [ - "application/vnd.apache.avro;version=1.9.0", - "application/vnd.apache.avro+json;version=1.9.0", - "application/vnd.apache.avro+yaml;version=1.9.0" - ] - } - } - }, - "then": { - "properties": { - "schema": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/3.0.0/avroSchema_v1.json" - } - ] - } + "then": { + "properties": { + "schema": { + "$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" } } } - ] - }, + }, + { + "$ref": "http://asyncapi.com/definitions/3.0.0/multiFormatAsyncAPISchemaMessage.json" + }, + { + "$ref": "http://asyncapi.com/definitions/3.0.0/multiFormatOpenAPIMessage.json" + }, + { + "$ref": "http://asyncapi.com/definitions/3.0.0/multiFormatJsonSchemaMessage.json" + }, + { + "$ref": "http://asyncapi.com/definitions/3.0.0/multiFormatAvroMessage.json" + } + ], "$schema": "http://json-schema.org/draft-07/schema#", "$id": "http://asyncapi.com/definitions/3.0.0/multiFormatSchema.json" } \ No newline at end of file diff --git a/common/avroSchema_v1.json b/definitions/common/avroSchema_v1.json similarity index 98% rename from common/avroSchema_v1.json rename to definitions/common/avroSchema_v1.json index d3448f10..3ce0b345 100644 --- a/common/avroSchema_v1.json +++ b/definitions/common/avroSchema_v1.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/3.0.0/avroSchema_v1.json", + "$id": "http://asyncapi.com/definitions/common/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/definitions/2.0.0/openapiSchema_3_0.json b/definitions/common/openapiSchema_3_0.json similarity index 98% rename from definitions/2.0.0/openapiSchema_3_0.json rename to definitions/common/openapiSchema_3_0.json index baab1749..0dd2b603 100644 --- a/definitions/2.0.0/openapiSchema_3_0.json +++ b/definitions/common/openapiSchema_3_0.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/2.0.0/openapiSchema_3_0.json", + "$id": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { diff --git a/package-lock.json b/package-lock.json index 69c488ee..5148720e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/specs", - "version": "6.7.1", + "version": "7.0.0-next-major.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@asyncapi/specs", - "version": "6.7.1", + "version": "7.0.0-next-major.2", "license": "Apache-2.0", "dependencies": { "@types/json-schema": "^7.0.11" diff --git a/package.json b/package.json index b1e226c6..e84024b2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/specs", - "version": "6.7.1", + "version": "7.0.0-next-major.2", "description": "AsyncAPI schema versions", "main": "index.js", "types": "index.d.ts", 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/2.0.0.json b/schemas/2.0.0.json index ddf9a1d7..128f075f 100644 --- a/schemas/2.0.0.json +++ b/schemas/2.0.0.json @@ -1046,7 +1046,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.0.0/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json" } } } @@ -1069,7 +1069,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.0.0/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } @@ -1185,8 +1185,8 @@ } } }, - "http://asyncapi.com/definitions/2.0.0/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/definitions/2.0.0/openapiSchema_3_0.json", + "http://asyncapi.com/definitions/common/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { @@ -1472,8 +1472,8 @@ }, "additionalProperties": false }, - "http://asyncapi.com/definitions/2.0.0/avroSchema_v1.json": { - "$id": "http://asyncapi.com/definitions/2.0.0/avroSchema_v1.json", + "http://asyncapi.com/definitions/common/avroSchema_v1.json": { + "$id": "http://asyncapi.com/definitions/common/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/2.1.0.json b/schemas/2.1.0.json index 0b8fd84c..592bba3e 100644 --- a/schemas/2.1.0.json +++ b/schemas/2.1.0.json @@ -1070,7 +1070,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.1.0/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json" } } } @@ -1093,7 +1093,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.1.0/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } @@ -1236,8 +1236,8 @@ } } }, - "http://asyncapi.com/definitions/2.1.0/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/definitions/2.1.0/openapiSchema_3_0.json", + "http://asyncapi.com/definitions/common/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { @@ -1523,8 +1523,8 @@ }, "additionalProperties": false }, - "http://asyncapi.com/definitions/2.1.0/avroSchema_v1.json": { - "$id": "http://asyncapi.com/definitions/2.1.0/avroSchema_v1.json", + "http://asyncapi.com/definitions/common/avroSchema_v1.json": { + "$id": "http://asyncapi.com/definitions/common/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/2.2.0.json b/schemas/2.2.0.json index 2371c167..124f4314 100644 --- a/schemas/2.2.0.json +++ b/schemas/2.2.0.json @@ -1082,7 +1082,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.2.0/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json" } } } @@ -1105,7 +1105,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.2.0/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } @@ -1221,8 +1221,8 @@ } } }, - "http://asyncapi.com/definitions/2.2.0/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/definitions/2.2.0/openapiSchema_3_0.json", + "http://asyncapi.com/definitions/common/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { @@ -1508,8 +1508,8 @@ }, "additionalProperties": false }, - "http://asyncapi.com/definitions/2.2.0/avroSchema_v1.json": { - "$id": "http://asyncapi.com/definitions/2.2.0/avroSchema_v1.json", + "http://asyncapi.com/definitions/common/avroSchema_v1.json": { + "$id": "http://asyncapi.com/definitions/common/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/2.3.0.json b/schemas/2.3.0.json index 3fe29a9f..30e7a44d 100644 --- a/schemas/2.3.0.json +++ b/schemas/2.3.0.json @@ -1098,7 +1098,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.3.0/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json" } } } @@ -1121,7 +1121,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.3.0/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } @@ -1237,8 +1237,8 @@ } } }, - "http://asyncapi.com/definitions/2.3.0/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/definitions/2.3.0/openapiSchema_3_0.json", + "http://asyncapi.com/definitions/common/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { @@ -1524,8 +1524,8 @@ }, "additionalProperties": false }, - "http://asyncapi.com/definitions/2.3.0/avroSchema_v1.json": { - "$id": "http://asyncapi.com/definitions/2.3.0/avroSchema_v1.json", + "http://asyncapi.com/definitions/common/avroSchema_v1.json": { + "$id": "http://asyncapi.com/definitions/common/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/2.4.0.json b/schemas/2.4.0.json index 04fd49f9..a9a05b4a 100644 --- a/schemas/2.4.0.json +++ b/schemas/2.4.0.json @@ -1116,7 +1116,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.4.0/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json" } } } @@ -1139,7 +1139,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.4.0/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } @@ -1258,8 +1258,8 @@ } } }, - "http://asyncapi.com/definitions/2.4.0/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/definitions/2.4.0/openapiSchema_3_0.json", + "http://asyncapi.com/definitions/common/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { @@ -1545,8 +1545,8 @@ }, "additionalProperties": false }, - "http://asyncapi.com/definitions/2.4.0/avroSchema_v1.json": { - "$id": "http://asyncapi.com/definitions/2.4.0/avroSchema_v1.json", + "http://asyncapi.com/definitions/common/avroSchema_v1.json": { + "$id": "http://asyncapi.com/definitions/common/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/2.5.0.json b/schemas/2.5.0.json index 26d872e8..9465c825 100644 --- a/schemas/2.5.0.json +++ b/schemas/2.5.0.json @@ -1130,7 +1130,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.5.0/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json" } } } @@ -1153,7 +1153,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.5.0/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } @@ -1272,8 +1272,8 @@ } } }, - "http://asyncapi.com/definitions/2.5.0/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/definitions/2.5.0/openapiSchema_3_0.json", + "http://asyncapi.com/definitions/common/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { @@ -1559,8 +1559,8 @@ }, "additionalProperties": false }, - "http://asyncapi.com/definitions/2.5.0/avroSchema_v1.json": { - "$id": "http://asyncapi.com/definitions/2.5.0/avroSchema_v1.json", + "http://asyncapi.com/definitions/common/avroSchema_v1.json": { + "$id": "http://asyncapi.com/definitions/common/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/2.6.0.json b/schemas/2.6.0.json index cf0eefe0..502c6348 100644 --- a/schemas/2.6.0.json +++ b/schemas/2.6.0.json @@ -1439,7 +1439,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.6.0/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json" } } } @@ -1462,7 +1462,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/2.6.0/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } @@ -1726,8 +1726,8 @@ } ] }, - "http://asyncapi.com/definitions/2.6.0/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/definitions/2.6.0/openapiSchema_3_0.json", + "http://asyncapi.com/definitions/common/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { @@ -2013,8 +2013,8 @@ }, "additionalProperties": false }, - "http://asyncapi.com/definitions/2.6.0/avroSchema_v1.json": { - "$id": "http://asyncapi.com/definitions/2.6.0/avroSchema_v1.json", + "http://asyncapi.com/definitions/common/avroSchema_v1.json": { + "$id": "http://asyncapi.com/definitions/common/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/3.0.0-without-$id.json b/schemas/3.0.0-without-$id.json index 4ca677a4..fee24b19 100644 --- a/schemas/3.0.0-without-$id.json +++ b/schemas/3.0.0-without-$id.json @@ -2714,193 +2714,143 @@ "$ref": "#/definitions/specificationExtension" } }, + "properties": { + "schemaFormat": { + "description": "A string containing the name of the schema format that is used to define the information. If schemaFormat is missing, it MUST default to application/vnd.aai.asyncapi+json;version={{asyncapi}} where {{asyncapi}} matches the AsyncAPI Version String. In such a case, this would make the Multi Format Schema Object equivalent to the Schema Object. When using Reference Object within the schema, the schemaFormat of the resource being referenced MUST match the schemaFormat of the schema that contains the initial reference. For example, if you reference Avro schema, then schemaFormat of referencing resource and the resource being reference MUST match.", + "anyOf": [ + { + "type": "string" + }, + { + "description": "All the schema formats tooling MUST support", + "enum": [ + "application/schema+json;version=draft-07", + "application/schema+yaml;version=draft-07", + "application/vnd.aai.asyncapi;version=3.0.0", + "application/vnd.aai.asyncapi+json;version=3.0.0", + "application/vnd.aai.asyncapi+yaml;version=3.0.0" + ] + }, + { + "description": "All the schema formats tools are RECOMMENDED to support", + "enum": [ + "application/vnd.oai.openapi;version=3.0.0", + "application/vnd.oai.openapi+json;version=3.0.0", + "application/vnd.oai.openapi+yaml;version=3.0.0", + "application/vnd.apache.avro;version=1.9.0", + "application/vnd.apache.avro+json;version=1.9.0", + "application/vnd.apache.avro+yaml;version=1.9.0", + "application/raml+yaml;version=1.0" + ] + } + ] + } + }, + "anyOf": [ + { + "if": { + "not": { + "description": "If no schemaFormat has been defined, default to schema or reference", + "required": [ + "schemaFormat" + ] + } + }, + "then": { + "properties": { + "schema": { + "$ref": "#/definitions/schema" + } + } + } + }, + { + "$ref": "#/definitions/multiFormatAsyncAPISchemaMessage" + }, + { + "$ref": "#/definitions/multiFormatOpenAPIMessage" + }, + { + "$ref": "#/definitions/multiFormatJsonSchemaMessage" + }, + { + "$ref": "#/definitions/multiFormatAvroMessage" + } + ] + }, + "multiFormatAsyncAPISchemaMessage": { "if": { - "not": { - "type": "object" + "description": "If schemaFormat has been defined check if it's one of the AsyncAPI Schema Object formats", + "required": [ + "schemaFormat" + ], + "properties": { + "schemaFormat": { + "enum": [ + "application/vnd.aai.asyncapi;version=2.0.0", + "application/vnd.aai.asyncapi+json;version=2.0.0", + "application/vnd.aai.asyncapi+yaml;version=2.0.0", + "application/vnd.aai.asyncapi;version=2.1.0", + "application/vnd.aai.asyncapi+json;version=2.1.0", + "application/vnd.aai.asyncapi+yaml;version=2.1.0", + "application/vnd.aai.asyncapi;version=2.2.0", + "application/vnd.aai.asyncapi+json;version=2.2.0", + "application/vnd.aai.asyncapi+yaml;version=2.2.0", + "application/vnd.aai.asyncapi;version=2.3.0", + "application/vnd.aai.asyncapi+json;version=2.3.0", + "application/vnd.aai.asyncapi+yaml;version=2.3.0", + "application/vnd.aai.asyncapi;version=2.4.0", + "application/vnd.aai.asyncapi+json;version=2.4.0", + "application/vnd.aai.asyncapi+yaml;version=2.4.0", + "application/vnd.aai.asyncapi;version=2.5.0", + "application/vnd.aai.asyncapi+json;version=2.5.0", + "application/vnd.aai.asyncapi+yaml;version=2.5.0", + "application/vnd.aai.asyncapi;version=2.6.0", + "application/vnd.aai.asyncapi+json;version=2.6.0", + "application/vnd.aai.asyncapi+yaml;version=2.6.0", + "application/vnd.aai.asyncapi;version=3.0.0", + "application/vnd.aai.asyncapi+json;version=3.0.0", + "application/vnd.aai.asyncapi+yaml;version=3.0.0" + ] + } } }, "then": { - "$ref": "#/definitions/schema" - }, - "else": { + "properties": { + "schema": { + "$ref": "#/definitions/schema" + } + } + } + }, + "multiFormatOpenAPIMessage": { + "if": { + "required": [ + "schemaFormat" + ], "properties": { "schemaFormat": { - "description": "A string containing the name of the schema format that is used to define the information. If schemaFormat is missing, it MUST default to application/vnd.aai.asyncapi+json;version={{asyncapi}} where {{asyncapi}} matches the AsyncAPI Version String. In such a case, this would make the Multi Format Schema Object equivalent to the Schema Object. When using Reference Object within the schema, the schemaFormat of the resource being referenced MUST match the schemaFormat of the schema that contains the initial reference. For example, if you reference Avro schema, then schemaFormat of referencing resource and the resource being reference MUST match.", - "anyOf": [ - { - "type": "string" - }, + "enum": [ + "application/vnd.oai.openapi;version=3.0.0", + "application/vnd.oai.openapi+json;version=3.0.0", + "application/vnd.oai.openapi+yaml;version=3.0.0" + ] + } + } + }, + "then": { + "properties": { + "schema": { + "oneOf": [ { - "description": "All the schema formats tooling MUST support", - "enum": [ - "application/schema+json;version=draft-07", - "application/schema+yaml;version=draft-07", - "application/vnd.aai.asyncapi;version=3.0.0", - "application/vnd.aai.asyncapi+json;version=3.0.0", - "application/vnd.aai.asyncapi+yaml;version=3.0.0" - ] + "$ref": "#/definitions/Reference" }, { - "description": "All the schema formats tools are RECOMMENDED to support", - "enum": [ - "application/vnd.oai.openapi;version=3.0.0", - "application/vnd.oai.openapi+json;version=3.0.0", - "application/vnd.oai.openapi+yaml;version=3.0.0", - "application/vnd.apache.avro;version=1.9.0", - "application/vnd.apache.avro+json;version=1.9.0", - "application/vnd.apache.avro+yaml;version=1.9.0", - "application/raml+yaml;version=1.0" - ] + "$ref": "#/definitions/openapiSchema_3_0" } ] } - }, - "allOf": [ - { - "if": { - "not": { - "description": "If no schemaFormat has been defined, default to schema or reference", - "required": [ - "schemaFormat" - ] - } - }, - "then": { - "properties": { - "schema": { - "$ref": "#/definitions/schema" - } - } - } - }, - { - "if": { - "description": "If schemaFormat has been defined check if it's one of the AsyncAPI Schema Object formats", - "required": [ - "schemaFormat" - ], - "properties": { - "schemaFormat": { - "enum": [ - "application/vnd.aai.asyncapi;version=2.0.0", - "application/vnd.aai.asyncapi+json;version=2.0.0", - "application/vnd.aai.asyncapi+yaml;version=2.0.0", - "application/vnd.aai.asyncapi;version=2.1.0", - "application/vnd.aai.asyncapi+json;version=2.1.0", - "application/vnd.aai.asyncapi+yaml;version=2.1.0", - "application/vnd.aai.asyncapi;version=2.2.0", - "application/vnd.aai.asyncapi+json;version=2.2.0", - "application/vnd.aai.asyncapi+yaml;version=2.2.0", - "application/vnd.aai.asyncapi;version=2.3.0", - "application/vnd.aai.asyncapi+json;version=2.3.0", - "application/vnd.aai.asyncapi+yaml;version=2.3.0", - "application/vnd.aai.asyncapi;version=2.4.0", - "application/vnd.aai.asyncapi+json;version=2.4.0", - "application/vnd.aai.asyncapi+yaml;version=2.4.0", - "application/vnd.aai.asyncapi;version=2.5.0", - "application/vnd.aai.asyncapi+json;version=2.5.0", - "application/vnd.aai.asyncapi+yaml;version=2.5.0", - "application/vnd.aai.asyncapi;version=2.6.0", - "application/vnd.aai.asyncapi+json;version=2.6.0", - "application/vnd.aai.asyncapi+yaml;version=2.6.0", - "application/vnd.aai.asyncapi;version=3.0.0", - "application/vnd.aai.asyncapi+json;version=3.0.0", - "application/vnd.aai.asyncapi+yaml;version=3.0.0" - ] - } - } - }, - "then": { - "properties": { - "schema": { - "$ref": "#/definitions/schema" - } - } - } - }, - { - "if": { - "required": [ - "schemaFormat" - ], - "properties": { - "schemaFormat": { - "enum": [ - "application/schema+json;version=draft-07", - "application/schema+yaml;version=draft-07" - ] - } - } - }, - "then": { - "properties": { - "schema": { - "$ref": "#/definitions/json-schema-draft-07-schema" - } - } - } - }, - { - "if": { - "required": [ - "schemaFormat" - ], - "properties": { - "schemaFormat": { - "enum": [ - "application/vnd.oai.openapi;version=3.0.0", - "application/vnd.oai.openapi+json;version=3.0.0", - "application/vnd.oai.openapi+yaml;version=3.0.0" - ] - } - } - }, - "then": { - "properties": { - "schema": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/openapiSchema_3_0" - } - ] - } - } - } - }, - { - "if": { - "required": [ - "schemaFormat" - ], - "properties": { - "schemaFormat": { - "enum": [ - "application/vnd.apache.avro;version=1.9.0", - "application/vnd.apache.avro+json;version=1.9.0", - "application/vnd.apache.avro+yaml;version=1.9.0" - ] - } - } - }, - "then": { - "properties": { - "schema": { - "oneOf": [ - { - "$ref": "#/definitions/Reference" - }, - { - "$ref": "#/definitions/avroSchema_v1" - } - ] - } - } - } - } - ] + } } }, "openapiSchema_3_0": { @@ -3189,6 +3139,58 @@ }, "additionalProperties": false }, + "multiFormatJsonSchemaMessage": { + "if": { + "required": [ + "schemaFormat" + ], + "properties": { + "schemaFormat": { + "enum": [ + "application/schema+json;version=draft-07", + "application/schema+yaml;version=draft-07" + ] + } + } + }, + "then": { + "properties": { + "schema": { + "$ref": "#/definitions/json-schema-draft-07-schema" + } + } + } + }, + "multiFormatAvroMessage": { + "if": { + "required": [ + "schemaFormat" + ], + "properties": { + "schemaFormat": { + "enum": [ + "application/vnd.apache.avro;version=1.9.0", + "application/vnd.apache.avro+json;version=1.9.0", + "application/vnd.apache.avro+yaml;version=1.9.0" + ] + } + } + }, + "then": { + "properties": { + "schema": { + "oneOf": [ + { + "$ref": "#/definitions/Reference" + }, + { + "$ref": "#/definitions/avroSchema_v1" + } + ] + } + } + } + }, "avroSchema_v1": { "definitions": { "avroSchema": { diff --git a/schemas/3.0.0.json b/schemas/3.0.0.json index f86ffae0..faaf4fa2 100644 --- a/schemas/3.0.0.json +++ b/schemas/3.0.0.json @@ -2768,197 +2768,149 @@ "$ref": "http://asyncapi.com/definitions/3.0.0/specificationExtension.json" } }, + "properties": { + "schemaFormat": { + "description": "A string containing the name of the schema format that is used to define the information. If schemaFormat is missing, it MUST default to application/vnd.aai.asyncapi+json;version={{asyncapi}} where {{asyncapi}} matches the AsyncAPI Version String. In such a case, this would make the Multi Format Schema Object equivalent to the Schema Object. When using Reference Object within the schema, the schemaFormat of the resource being referenced MUST match the schemaFormat of the schema that contains the initial reference. For example, if you reference Avro schema, then schemaFormat of referencing resource and the resource being reference MUST match.", + "anyOf": [ + { + "type": "string" + }, + { + "description": "All the schema formats tooling MUST support", + "enum": [ + "application/schema+json;version=draft-07", + "application/schema+yaml;version=draft-07", + "application/vnd.aai.asyncapi;version=3.0.0", + "application/vnd.aai.asyncapi+json;version=3.0.0", + "application/vnd.aai.asyncapi+yaml;version=3.0.0" + ] + }, + { + "description": "All the schema formats tools are RECOMMENDED to support", + "enum": [ + "application/vnd.oai.openapi;version=3.0.0", + "application/vnd.oai.openapi+json;version=3.0.0", + "application/vnd.oai.openapi+yaml;version=3.0.0", + "application/vnd.apache.avro;version=1.9.0", + "application/vnd.apache.avro+json;version=1.9.0", + "application/vnd.apache.avro+yaml;version=1.9.0", + "application/raml+yaml;version=1.0" + ] + } + ] + } + }, + "anyOf": [ + { + "if": { + "not": { + "description": "If no schemaFormat has been defined, default to schema or reference", + "required": [ + "schemaFormat" + ] + } + }, + "then": { + "properties": { + "schema": { + "$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" + } + } + } + }, + { + "$ref": "http://asyncapi.com/definitions/3.0.0/multiFormatAsyncAPISchemaMessage.json" + }, + { + "$ref": "http://asyncapi.com/definitions/3.0.0/multiFormatOpenAPIMessage.json" + }, + { + "$ref": "http://asyncapi.com/definitions/3.0.0/multiFormatJsonSchemaMessage.json" + }, + { + "$ref": "http://asyncapi.com/definitions/3.0.0/multiFormatAvroMessage.json" + } + ] + }, + "http://asyncapi.com/definitions/3.0.0/multiFormatAsyncAPISchemaMessage.json": { + "$id": "http://asyncapi.com/definitions/3.0.0/multiFormatAsyncAPISchemaMessage.json", "if": { - "not": { - "type": "object" + "description": "If schemaFormat has been defined check if it's one of the AsyncAPI Schema Object formats", + "required": [ + "schemaFormat" + ], + "properties": { + "schemaFormat": { + "enum": [ + "application/vnd.aai.asyncapi;version=2.0.0", + "application/vnd.aai.asyncapi+json;version=2.0.0", + "application/vnd.aai.asyncapi+yaml;version=2.0.0", + "application/vnd.aai.asyncapi;version=2.1.0", + "application/vnd.aai.asyncapi+json;version=2.1.0", + "application/vnd.aai.asyncapi+yaml;version=2.1.0", + "application/vnd.aai.asyncapi;version=2.2.0", + "application/vnd.aai.asyncapi+json;version=2.2.0", + "application/vnd.aai.asyncapi+yaml;version=2.2.0", + "application/vnd.aai.asyncapi;version=2.3.0", + "application/vnd.aai.asyncapi+json;version=2.3.0", + "application/vnd.aai.asyncapi+yaml;version=2.3.0", + "application/vnd.aai.asyncapi;version=2.4.0", + "application/vnd.aai.asyncapi+json;version=2.4.0", + "application/vnd.aai.asyncapi+yaml;version=2.4.0", + "application/vnd.aai.asyncapi;version=2.5.0", + "application/vnd.aai.asyncapi+json;version=2.5.0", + "application/vnd.aai.asyncapi+yaml;version=2.5.0", + "application/vnd.aai.asyncapi;version=2.6.0", + "application/vnd.aai.asyncapi+json;version=2.6.0", + "application/vnd.aai.asyncapi+yaml;version=2.6.0", + "application/vnd.aai.asyncapi;version=3.0.0", + "application/vnd.aai.asyncapi+json;version=3.0.0", + "application/vnd.aai.asyncapi+yaml;version=3.0.0" + ] + } } }, "then": { - "$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" - }, - "else": { + "properties": { + "schema": { + "$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" + } + } + } + }, + "http://asyncapi.com/definitions/3.0.0/multiFormatOpenAPIMessage.json": { + "$id": "http://asyncapi.com/definitions/3.0.0/multiFormatOpenAPIMessage.json", + "if": { + "required": [ + "schemaFormat" + ], "properties": { "schemaFormat": { - "description": "A string containing the name of the schema format that is used to define the information. If schemaFormat is missing, it MUST default to application/vnd.aai.asyncapi+json;version={{asyncapi}} where {{asyncapi}} matches the AsyncAPI Version String. In such a case, this would make the Multi Format Schema Object equivalent to the Schema Object. When using Reference Object within the schema, the schemaFormat of the resource being referenced MUST match the schemaFormat of the schema that contains the initial reference. For example, if you reference Avro schema, then schemaFormat of referencing resource and the resource being reference MUST match.", - "anyOf": [ - { - "type": "string" - }, + "enum": [ + "application/vnd.oai.openapi;version=3.0.0", + "application/vnd.oai.openapi+json;version=3.0.0", + "application/vnd.oai.openapi+yaml;version=3.0.0" + ] + } + } + }, + "then": { + "properties": { + "schema": { + "oneOf": [ { - "description": "All the schema formats tooling MUST support", - "enum": [ - "application/schema+json;version=draft-07", - "application/schema+yaml;version=draft-07", - "application/vnd.aai.asyncapi;version=3.0.0", - "application/vnd.aai.asyncapi+json;version=3.0.0", - "application/vnd.aai.asyncapi+yaml;version=3.0.0" - ] + "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" }, { - "description": "All the schema formats tools are RECOMMENDED to support", - "enum": [ - "application/vnd.oai.openapi;version=3.0.0", - "application/vnd.oai.openapi+json;version=3.0.0", - "application/vnd.oai.openapi+yaml;version=3.0.0", - "application/vnd.apache.avro;version=1.9.0", - "application/vnd.apache.avro+json;version=1.9.0", - "application/vnd.apache.avro+yaml;version=1.9.0", - "application/raml+yaml;version=1.0" - ] + "$ref": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json" } ] } - }, - "allOf": [ - { - "if": { - "not": { - "description": "If no schemaFormat has been defined, default to schema or reference", - "required": [ - "schemaFormat" - ] - } - }, - "then": { - "properties": { - "schema": { - "$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" - } - } - } - }, - { - "if": { - "description": "If schemaFormat has been defined check if it's one of the AsyncAPI Schema Object formats", - "required": [ - "schemaFormat" - ], - "properties": { - "schemaFormat": { - "enum": [ - "application/vnd.aai.asyncapi;version=2.0.0", - "application/vnd.aai.asyncapi+json;version=2.0.0", - "application/vnd.aai.asyncapi+yaml;version=2.0.0", - "application/vnd.aai.asyncapi;version=2.1.0", - "application/vnd.aai.asyncapi+json;version=2.1.0", - "application/vnd.aai.asyncapi+yaml;version=2.1.0", - "application/vnd.aai.asyncapi;version=2.2.0", - "application/vnd.aai.asyncapi+json;version=2.2.0", - "application/vnd.aai.asyncapi+yaml;version=2.2.0", - "application/vnd.aai.asyncapi;version=2.3.0", - "application/vnd.aai.asyncapi+json;version=2.3.0", - "application/vnd.aai.asyncapi+yaml;version=2.3.0", - "application/vnd.aai.asyncapi;version=2.4.0", - "application/vnd.aai.asyncapi+json;version=2.4.0", - "application/vnd.aai.asyncapi+yaml;version=2.4.0", - "application/vnd.aai.asyncapi;version=2.5.0", - "application/vnd.aai.asyncapi+json;version=2.5.0", - "application/vnd.aai.asyncapi+yaml;version=2.5.0", - "application/vnd.aai.asyncapi;version=2.6.0", - "application/vnd.aai.asyncapi+json;version=2.6.0", - "application/vnd.aai.asyncapi+yaml;version=2.6.0", - "application/vnd.aai.asyncapi;version=3.0.0", - "application/vnd.aai.asyncapi+json;version=3.0.0", - "application/vnd.aai.asyncapi+yaml;version=3.0.0" - ] - } - } - }, - "then": { - "properties": { - "schema": { - "$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" - } - } - } - }, - { - "if": { - "required": [ - "schemaFormat" - ], - "properties": { - "schemaFormat": { - "enum": [ - "application/schema+json;version=draft-07", - "application/schema+yaml;version=draft-07" - ] - } - } - }, - "then": { - "properties": { - "schema": { - "$ref": "http://json-schema.org/draft-07/schema" - } - } - } - }, - { - "if": { - "required": [ - "schemaFormat" - ], - "properties": { - "schemaFormat": { - "enum": [ - "application/vnd.oai.openapi;version=3.0.0", - "application/vnd.oai.openapi+json;version=3.0.0", - "application/vnd.oai.openapi+yaml;version=3.0.0" - ] - } - } - }, - "then": { - "properties": { - "schema": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/3.0.0/openapiSchema_3_0.json" - } - ] - } - } - } - }, - { - "if": { - "required": [ - "schemaFormat" - ], - "properties": { - "schemaFormat": { - "enum": [ - "application/vnd.apache.avro;version=1.9.0", - "application/vnd.apache.avro+json;version=1.9.0", - "application/vnd.apache.avro+yaml;version=1.9.0" - ] - } - } - }, - "then": { - "properties": { - "schema": { - "oneOf": [ - { - "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" - }, - { - "$ref": "http://asyncapi.com/definitions/3.0.0/avroSchema_v1.json" - } - ] - } - } - } - } - ] + } } }, - "http://asyncapi.com/definitions/3.0.0/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/definitions/3.0.0/openapiSchema_3_0.json", + "http://asyncapi.com/definitions/common/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { @@ -3244,8 +3196,62 @@ }, "additionalProperties": false }, - "http://asyncapi.com/definitions/3.0.0/avroSchema_v1.json": { - "$id": "http://asyncapi.com/definitions/3.0.0/avroSchema_v1.json", + "http://asyncapi.com/definitions/3.0.0/multiFormatJsonSchemaMessage.json": { + "$id": "http://asyncapi.com/definitions/3.0.0/multiFormatJsonSchemaMessage.json", + "if": { + "required": [ + "schemaFormat" + ], + "properties": { + "schemaFormat": { + "enum": [ + "application/schema+json;version=draft-07", + "application/schema+yaml;version=draft-07" + ] + } + } + }, + "then": { + "properties": { + "schema": { + "$ref": "http://json-schema.org/draft-07/schema" + } + } + } + }, + "http://asyncapi.com/definitions/3.0.0/multiFormatAvroMessage.json": { + "$id": "http://asyncapi.com/definitions/3.0.0/multiFormatAvroMessage.json", + "if": { + "required": [ + "schemaFormat" + ], + "properties": { + "schemaFormat": { + "enum": [ + "application/vnd.apache.avro;version=1.9.0", + "application/vnd.apache.avro+json;version=1.9.0", + "application/vnd.apache.avro+yaml;version=1.9.0" + ] + } + } + }, + "then": { + "properties": { + "schema": { + "oneOf": [ + { + "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" + }, + { + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" + } + ] + } + } + } + }, + "http://asyncapi.com/definitions/common/avroSchema_v1.json": { + "$id": "http://asyncapi.com/definitions/common/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", @@ -4292,7 +4298,7 @@ "$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" }, { - "$ref": "http://asyncapi.com/definitions/3.0.0/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } ], "description": "The message key." 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/add-new-version.js b/scripts/add-new-version.js index 942f7f49..c09e644e 100644 --- a/scripts/add-new-version.js +++ b/scripts/add-new-version.js @@ -95,7 +95,7 @@ async function addNewVersion(newVersion) { } //Use the newest version as baseline for the new one - const latestVersion = (await execute('ls -d ./definitions/* | sort -V -r | head -1 | xargs -n 1 basename')).trim(); + const latestVersion = (await execute('ls -d ./definitions/*.*.* | sort -V -r | head -1 | xargs -n 1 basename')).trim(); await execute(`cp -R ./definitions/${latestVersion} ${newVersionDir}`); const latestExampleVersion = (await execute('ls -d ./examples/* | sort -V -r | head -1 | xargs -n 1 basename')).trim(); 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; diff --git a/tools/bundler/index.js b/tools/bundler/index.js index 44bf731a..e5403fc0 100644 --- a/tools/bundler/index.js +++ b/tools/bundler/index.js @@ -2,7 +2,7 @@ const path = require('path'); const fs = require('fs'); const traverse = require('json-schema-traverse'); const definitionsDirectory = path.resolve(__dirname, '../../definitions'); -const commonSchemasDirectory = path.resolve(__dirname, '../../common'); +const commonSchemasDirectory = path.resolve(__dirname, '../../definitions/common'); const bindingsDirectory = path.resolve(__dirname, '../../bindings'); const extensionsDirectory = path.resolve(__dirname, '../../extensions'); const outputDirectory = path.resolve(__dirname, '../../schemas'); @@ -25,7 +25,7 @@ const extensionsRegex = /http:\/\/asyncapi\.com\/(extensions\/[^/]+)\/([^/]+)\/( * When run, go through all versions that have split definitions and bundles them together. */ (async () => { - const versions = await fs.promises.readdir(definitionsDirectory); + const versions = (await fs.promises.readdir(definitionsDirectory)).filter((value) => !value.includes('common')); console.log(`Ensuring output directory is present ${outputDirectory}`); if (!fs.existsSync(outputDirectory)) { await fs.promises.mkdir(outputDirectory);