From a67a3017958e29401ddd96b7fb0140e104c72abd Mon Sep 17 00:00:00 2001 From: Jonas Lagoni Date: Mon, 13 May 2024 09:41:36 +0200 Subject: [PATCH 1/4] remove duplicate --- bindings/kafka/0.4.0/message.json | 2 +- common/avroSchema_v1.json | 2 +- common/openapiSchema_3_0.json | 2 +- definitions/2.0.0/avroSchema_v1.json | 317 ----------------------- definitions/2.0.0/message.json | 4 +- definitions/2.0.0/openapiSchema_3_0.json | 288 -------------------- definitions/2.1.0/avroSchema_v1.json | 317 ----------------------- definitions/2.1.0/message.json | 4 +- definitions/2.1.0/openapiSchema_3_0.json | 288 -------------------- definitions/2.2.0/avroSchema_v1.json | 317 ----------------------- definitions/2.2.0/message.json | 4 +- definitions/2.2.0/openapiSchema_3_0.json | 288 -------------------- definitions/2.3.0/avroSchema_v1.json | 317 ----------------------- definitions/2.3.0/message.json | 4 +- definitions/2.3.0/openapiSchema_3_0.json | 288 -------------------- definitions/2.4.0/avroSchema_v1.json | 317 ----------------------- definitions/2.4.0/message.json | 4 +- definitions/2.4.0/openapiSchema_3_0.json | 288 -------------------- definitions/2.5.0/avroSchema_v1.json | 317 ----------------------- definitions/2.5.0/message.json | 4 +- definitions/2.5.0/openapiSchema_3_0.json | 288 -------------------- definitions/2.6.0/avroSchema_v1.json | 317 ----------------------- definitions/2.6.0/message.json | 4 +- definitions/2.6.0/openapiSchema_3_0.json | 288 -------------------- definitions/3.0.0/multiFormatSchema.json | 4 +- schemas/2.0.0.json | 12 +- schemas/2.1.0.json | 12 +- schemas/2.2.0.json | 12 +- schemas/2.3.0.json | 12 +- schemas/2.4.0.json | 12 +- schemas/2.5.0.json | 12 +- schemas/2.6.0.json | 12 +- schemas/3.0.0.json | 14 +- 33 files changed, 68 insertions(+), 4303 deletions(-) delete mode 100644 definitions/2.0.0/avroSchema_v1.json delete mode 100644 definitions/2.0.0/openapiSchema_3_0.json delete mode 100644 definitions/2.1.0/avroSchema_v1.json delete mode 100644 definitions/2.1.0/openapiSchema_3_0.json delete mode 100644 definitions/2.2.0/avroSchema_v1.json delete mode 100644 definitions/2.2.0/openapiSchema_3_0.json delete mode 100644 definitions/2.3.0/avroSchema_v1.json delete mode 100644 definitions/2.3.0/openapiSchema_3_0.json delete mode 100644 definitions/2.4.0/avroSchema_v1.json delete mode 100644 definitions/2.4.0/openapiSchema_3_0.json delete mode 100644 definitions/2.5.0/avroSchema_v1.json delete mode 100644 definitions/2.5.0/openapiSchema_3_0.json delete mode 100644 definitions/2.6.0/avroSchema_v1.json delete mode 100644 definitions/2.6.0/openapiSchema_3_0.json diff --git a/bindings/kafka/0.4.0/message.json b/bindings/kafka/0.4.0/message.json index 173a9bad..e7648595 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/avroSchema_v1.json" } ], "description": "The message key." diff --git a/common/avroSchema_v1.json b/common/avroSchema_v1.json index d3448f10..88842cd1 100644 --- a/common/avroSchema_v1.json +++ b/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/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/common/openapiSchema_3_0.json b/common/openapiSchema_3_0.json index a4b11b8b..fc2cf33c 100644 --- a/common/openapiSchema_3_0.json +++ b/common/openapiSchema_3_0.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/3.0.0/openapiSchema_3_0.json", + "$id": "http://asyncapi.com/definitions/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { 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..80a19e79 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/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/avroSchema_v1.json" } } } diff --git a/definitions/2.0.0/openapiSchema_3_0.json b/definitions/2.0.0/openapiSchema_3_0.json deleted file mode 100644 index baab1749..00000000 --- a/definitions/2.0.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.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.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..4c22c962 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/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/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..5d87baab 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/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/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..ea04e8e6 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/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/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..8da3d78b 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/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/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..402923aa 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/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/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..8af9fdb4 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/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/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/multiFormatSchema.json b/definitions/3.0.0/multiFormatSchema.json index 077cdcf6..dabe48eb 100644 --- a/definitions/3.0.0/multiFormatSchema.json +++ b/definitions/3.0.0/multiFormatSchema.json @@ -158,7 +158,7 @@ "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" }, { - "$ref": "http://asyncapi.com/definitions/3.0.0/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/definitions/openapiSchema_3_0.json" } ] } @@ -188,7 +188,7 @@ "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" }, { - "$ref": "http://asyncapi.com/definitions/3.0.0/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/avroSchema_v1.json" } ] } diff --git a/schemas/2.0.0.json b/schemas/2.0.0.json index ddf9a1d7..1e1d3f82 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/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/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/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/definitions/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/avroSchema_v1.json": { + "$id": "http://asyncapi.com/definitions/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/2.1.0.json b/schemas/2.1.0.json index 0b8fd84c..d893e202 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/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/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/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/definitions/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/avroSchema_v1.json": { + "$id": "http://asyncapi.com/definitions/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/2.2.0.json b/schemas/2.2.0.json index 2371c167..a8fa2ac6 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/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/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/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/definitions/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/avroSchema_v1.json": { + "$id": "http://asyncapi.com/definitions/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/2.3.0.json b/schemas/2.3.0.json index 3fe29a9f..2be5928e 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/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/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/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/definitions/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/avroSchema_v1.json": { + "$id": "http://asyncapi.com/definitions/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/2.4.0.json b/schemas/2.4.0.json index 04fd49f9..d8bf12da 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/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/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/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/definitions/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/avroSchema_v1.json": { + "$id": "http://asyncapi.com/definitions/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/2.5.0.json b/schemas/2.5.0.json index 26d872e8..00ba45bf 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/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/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/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/definitions/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/avroSchema_v1.json": { + "$id": "http://asyncapi.com/definitions/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/2.6.0.json b/schemas/2.6.0.json index cf0eefe0..b5ed42e6 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/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/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/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/definitions/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/avroSchema_v1.json": { + "$id": "http://asyncapi.com/definitions/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/3.0.0.json b/schemas/3.0.0.json index 889d975f..1bef469a 100644 --- a/schemas/3.0.0.json +++ b/schemas/3.0.0.json @@ -2947,7 +2947,7 @@ "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" }, { - "$ref": "http://asyncapi.com/definitions/3.0.0/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/definitions/openapiSchema_3_0.json" } ] } @@ -2977,7 +2977,7 @@ "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" }, { - "$ref": "http://asyncapi.com/definitions/3.0.0/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/avroSchema_v1.json" } ] } @@ -2987,8 +2987,8 @@ ] } }, - "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/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/definitions/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { @@ -3274,8 +3274,8 @@ }, "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/avroSchema_v1.json": { + "$id": "http://asyncapi.com/definitions/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", @@ -4288,7 +4288,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/avroSchema_v1.json" } ], "description": "The message key." From c544890b9bbc02f50efc475997bcc9064862b287 Mon Sep 17 00:00:00 2001 From: Jonas Lagoni Date: Mon, 13 May 2024 12:00:58 +0200 Subject: [PATCH 2/4] update definition --- bindings/kafka/0.4.0/message.json | 2 +- common/avroSchema_v1.json | 2 +- common/openapiSchema_3_0.json | 2 +- definitions/2.0.0/message.json | 4 ++-- definitions/2.1.0/message.json | 4 ++-- definitions/2.2.0/message.json | 4 ++-- definitions/2.3.0/message.json | 4 ++-- definitions/2.4.0/message.json | 4 ++-- definitions/2.5.0/message.json | 4 ++-- definitions/2.6.0/message.json | 4 ++-- definitions/3.0.0/multiFormatSchema.json | 4 ++-- schemas/2.0.0.json | 12 ++++++------ schemas/2.1.0.json | 12 ++++++------ schemas/2.2.0.json | 12 ++++++------ schemas/2.3.0.json | 12 ++++++------ schemas/2.4.0.json | 12 ++++++------ schemas/2.5.0.json | 12 ++++++------ schemas/2.6.0.json | 12 ++++++------ schemas/3.0.0.json | 14 +++++++------- 19 files changed, 68 insertions(+), 68 deletions(-) diff --git a/bindings/kafka/0.4.0/message.json b/bindings/kafka/0.4.0/message.json index e7648595..704c7c0d 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/avroSchema_v1.json" + "$ref": "http://asyncapi.com/common/avroSchema_v1.json" } ], "description": "The message key." diff --git a/common/avroSchema_v1.json b/common/avroSchema_v1.json index 88842cd1..f3bfcd2b 100644 --- a/common/avroSchema_v1.json +++ b/common/avroSchema_v1.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/avroSchema_v1.json", + "$id": "http://asyncapi.com/common/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/common/openapiSchema_3_0.json b/common/openapiSchema_3_0.json index fc2cf33c..00e3a6ca 100644 --- a/common/openapiSchema_3_0.json +++ b/common/openapiSchema_3_0.json @@ -1,6 +1,6 @@ { "$schema": "http://json-schema.org/draft-07/schema#", - "$id": "http://asyncapi.com/definitions/openapiSchema_3_0.json", + "$id": "http://asyncapi.com/common/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { diff --git a/definitions/2.0.0/message.json b/definitions/2.0.0/message.json index 80a19e79..0061db97 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/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/common/openapiSchema_3_0.json" } } } @@ -223,7 +223,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/avroSchema_v1.json" + "$ref": "http://asyncapi.com/common/avroSchema_v1.json" } } } diff --git a/definitions/2.1.0/message.json b/definitions/2.1.0/message.json index 4c22c962..a280a824 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/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/common/openapiSchema_3_0.json" } } } @@ -246,7 +246,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/avroSchema_v1.json" + "$ref": "http://asyncapi.com/common/avroSchema_v1.json" } } } diff --git a/definitions/2.2.0/message.json b/definitions/2.2.0/message.json index 5d87baab..ec71a4d8 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/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/common/openapiSchema_3_0.json" } } } @@ -249,7 +249,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/avroSchema_v1.json" + "$ref": "http://asyncapi.com/common/avroSchema_v1.json" } } } diff --git a/definitions/2.3.0/message.json b/definitions/2.3.0/message.json index ea04e8e6..fd6d8f5e 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/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/common/openapiSchema_3_0.json" } } } @@ -252,7 +252,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/avroSchema_v1.json" + "$ref": "http://asyncapi.com/common/avroSchema_v1.json" } } } diff --git a/definitions/2.4.0/message.json b/definitions/2.4.0/message.json index 8da3d78b..25efb274 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/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/common/openapiSchema_3_0.json" } } } @@ -258,7 +258,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/avroSchema_v1.json" + "$ref": "http://asyncapi.com/common/avroSchema_v1.json" } } } diff --git a/definitions/2.5.0/message.json b/definitions/2.5.0/message.json index 402923aa..63a4506d 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/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/common/openapiSchema_3_0.json" } } } @@ -255,7 +255,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/avroSchema_v1.json" + "$ref": "http://asyncapi.com/common/avroSchema_v1.json" } } } diff --git a/definitions/2.6.0/message.json b/definitions/2.6.0/message.json index 8af9fdb4..f9e5b438 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/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/common/openapiSchema_3_0.json" } } } @@ -263,7 +263,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/avroSchema_v1.json" + "$ref": "http://asyncapi.com/common/avroSchema_v1.json" } } } diff --git a/definitions/3.0.0/multiFormatSchema.json b/definitions/3.0.0/multiFormatSchema.json index dabe48eb..de026c72 100644 --- a/definitions/3.0.0/multiFormatSchema.json +++ b/definitions/3.0.0/multiFormatSchema.json @@ -158,7 +158,7 @@ "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" }, { - "$ref": "http://asyncapi.com/definitions/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/common/openapiSchema_3_0.json" } ] } @@ -188,7 +188,7 @@ "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" }, { - "$ref": "http://asyncapi.com/definitions/avroSchema_v1.json" + "$ref": "http://asyncapi.com/common/avroSchema_v1.json" } ] } diff --git a/schemas/2.0.0.json b/schemas/2.0.0.json index 1e1d3f82..2398d17a 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/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/common/openapiSchema_3_0.json" } } } @@ -1069,7 +1069,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/avroSchema_v1.json" + "$ref": "http://asyncapi.com/common/avroSchema_v1.json" } } } @@ -1185,8 +1185,8 @@ } } }, - "http://asyncapi.com/definitions/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/definitions/openapiSchema_3_0.json", + "http://asyncapi.com/common/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/common/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { @@ -1472,8 +1472,8 @@ }, "additionalProperties": false }, - "http://asyncapi.com/definitions/avroSchema_v1.json": { - "$id": "http://asyncapi.com/definitions/avroSchema_v1.json", + "http://asyncapi.com/common/avroSchema_v1.json": { + "$id": "http://asyncapi.com/common/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/2.1.0.json b/schemas/2.1.0.json index d893e202..8cfde4c0 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/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/common/openapiSchema_3_0.json" } } } @@ -1093,7 +1093,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/avroSchema_v1.json" + "$ref": "http://asyncapi.com/common/avroSchema_v1.json" } } } @@ -1236,8 +1236,8 @@ } } }, - "http://asyncapi.com/definitions/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/definitions/openapiSchema_3_0.json", + "http://asyncapi.com/common/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/common/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { @@ -1523,8 +1523,8 @@ }, "additionalProperties": false }, - "http://asyncapi.com/definitions/avroSchema_v1.json": { - "$id": "http://asyncapi.com/definitions/avroSchema_v1.json", + "http://asyncapi.com/common/avroSchema_v1.json": { + "$id": "http://asyncapi.com/common/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/2.2.0.json b/schemas/2.2.0.json index a8fa2ac6..f9f0b2f8 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/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/common/openapiSchema_3_0.json" } } } @@ -1105,7 +1105,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/avroSchema_v1.json" + "$ref": "http://asyncapi.com/common/avroSchema_v1.json" } } } @@ -1221,8 +1221,8 @@ } } }, - "http://asyncapi.com/definitions/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/definitions/openapiSchema_3_0.json", + "http://asyncapi.com/common/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/common/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { @@ -1508,8 +1508,8 @@ }, "additionalProperties": false }, - "http://asyncapi.com/definitions/avroSchema_v1.json": { - "$id": "http://asyncapi.com/definitions/avroSchema_v1.json", + "http://asyncapi.com/common/avroSchema_v1.json": { + "$id": "http://asyncapi.com/common/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/2.3.0.json b/schemas/2.3.0.json index 2be5928e..37682eca 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/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/common/openapiSchema_3_0.json" } } } @@ -1121,7 +1121,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/avroSchema_v1.json" + "$ref": "http://asyncapi.com/common/avroSchema_v1.json" } } } @@ -1237,8 +1237,8 @@ } } }, - "http://asyncapi.com/definitions/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/definitions/openapiSchema_3_0.json", + "http://asyncapi.com/common/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/common/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { @@ -1524,8 +1524,8 @@ }, "additionalProperties": false }, - "http://asyncapi.com/definitions/avroSchema_v1.json": { - "$id": "http://asyncapi.com/definitions/avroSchema_v1.json", + "http://asyncapi.com/common/avroSchema_v1.json": { + "$id": "http://asyncapi.com/common/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/2.4.0.json b/schemas/2.4.0.json index d8bf12da..f220e5f7 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/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/common/openapiSchema_3_0.json" } } } @@ -1139,7 +1139,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/avroSchema_v1.json" + "$ref": "http://asyncapi.com/common/avroSchema_v1.json" } } } @@ -1258,8 +1258,8 @@ } } }, - "http://asyncapi.com/definitions/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/definitions/openapiSchema_3_0.json", + "http://asyncapi.com/common/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/common/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { @@ -1545,8 +1545,8 @@ }, "additionalProperties": false }, - "http://asyncapi.com/definitions/avroSchema_v1.json": { - "$id": "http://asyncapi.com/definitions/avroSchema_v1.json", + "http://asyncapi.com/common/avroSchema_v1.json": { + "$id": "http://asyncapi.com/common/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/2.5.0.json b/schemas/2.5.0.json index 00ba45bf..f078bf4e 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/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/common/openapiSchema_3_0.json" } } } @@ -1153,7 +1153,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/avroSchema_v1.json" + "$ref": "http://asyncapi.com/common/avroSchema_v1.json" } } } @@ -1272,8 +1272,8 @@ } } }, - "http://asyncapi.com/definitions/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/definitions/openapiSchema_3_0.json", + "http://asyncapi.com/common/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/common/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { @@ -1559,8 +1559,8 @@ }, "additionalProperties": false }, - "http://asyncapi.com/definitions/avroSchema_v1.json": { - "$id": "http://asyncapi.com/definitions/avroSchema_v1.json", + "http://asyncapi.com/common/avroSchema_v1.json": { + "$id": "http://asyncapi.com/common/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/2.6.0.json b/schemas/2.6.0.json index b5ed42e6..c8d604cd 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/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/common/openapiSchema_3_0.json" } } } @@ -1462,7 +1462,7 @@ "then": { "properties": { "payload": { - "$ref": "http://asyncapi.com/definitions/avroSchema_v1.json" + "$ref": "http://asyncapi.com/common/avroSchema_v1.json" } } } @@ -1726,8 +1726,8 @@ } ] }, - "http://asyncapi.com/definitions/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/definitions/openapiSchema_3_0.json", + "http://asyncapi.com/common/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/common/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { @@ -2013,8 +2013,8 @@ }, "additionalProperties": false }, - "http://asyncapi.com/definitions/avroSchema_v1.json": { - "$id": "http://asyncapi.com/definitions/avroSchema_v1.json", + "http://asyncapi.com/common/avroSchema_v1.json": { + "$id": "http://asyncapi.com/common/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/schemas/3.0.0.json b/schemas/3.0.0.json index 1bef469a..8914c425 100644 --- a/schemas/3.0.0.json +++ b/schemas/3.0.0.json @@ -2947,7 +2947,7 @@ "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" }, { - "$ref": "http://asyncapi.com/definitions/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/common/openapiSchema_3_0.json" } ] } @@ -2977,7 +2977,7 @@ "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" }, { - "$ref": "http://asyncapi.com/definitions/avroSchema_v1.json" + "$ref": "http://asyncapi.com/common/avroSchema_v1.json" } ] } @@ -2987,8 +2987,8 @@ ] } }, - "http://asyncapi.com/definitions/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/definitions/openapiSchema_3_0.json", + "http://asyncapi.com/common/openapiSchema_3_0.json": { + "$id": "http://asyncapi.com/common/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { @@ -3274,8 +3274,8 @@ }, "additionalProperties": false }, - "http://asyncapi.com/definitions/avroSchema_v1.json": { - "$id": "http://asyncapi.com/definitions/avroSchema_v1.json", + "http://asyncapi.com/common/avroSchema_v1.json": { + "$id": "http://asyncapi.com/common/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", @@ -4288,7 +4288,7 @@ "$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" }, { - "$ref": "http://asyncapi.com/definitions/avroSchema_v1.json" + "$ref": "http://asyncapi.com/common/avroSchema_v1.json" } ], "description": "The message key." From 3b5bf603e6f578a9988b66b5b6ee0d1e93cceb74 Mon Sep 17 00:00:00 2001 From: Jonas Lagoni Date: Wed, 22 May 2024 20:52:03 +0200 Subject: [PATCH 3/4] update common location --- bindings/kafka/0.4.0/message.json | 2 +- definitions/2.0.0/message.json | 4 ++-- definitions/2.1.0/message.json | 4 ++-- definitions/2.2.0/message.json | 4 ++-- definitions/2.3.0/message.json | 4 ++-- definitions/2.4.0/message.json | 4 ++-- definitions/2.5.0/message.json | 4 ++-- definitions/2.6.0/message.json | 4 ++-- definitions/3.0.0/multiFormatSchema.json | 4 ++-- {common => definitions/common}/avroSchema_v1.json | 2 +- .../common}/openapiSchema_3_0.json | 2 +- schemas/2.0.0.json | 12 ++++++------ schemas/2.1.0.json | 12 ++++++------ schemas/2.2.0.json | 12 ++++++------ schemas/2.3.0.json | 12 ++++++------ schemas/2.4.0.json | 12 ++++++------ schemas/2.5.0.json | 12 ++++++------ schemas/2.6.0.json | 12 ++++++------ schemas/3.0.0.json | 14 +++++++------- scripts/add-new-version.js | 2 +- 20 files changed, 69 insertions(+), 69 deletions(-) rename {common => definitions/common}/avroSchema_v1.json (98%) rename {common => definitions/common}/openapiSchema_3_0.json (98%) diff --git a/bindings/kafka/0.4.0/message.json b/bindings/kafka/0.4.0/message.json index 704c7c0d..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/common/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } ], "description": "The message key." diff --git a/definitions/2.0.0/message.json b/definitions/2.0.0/message.json index 0061db97..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/common/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/common/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } diff --git a/definitions/2.1.0/message.json b/definitions/2.1.0/message.json index a280a824..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/common/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/common/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } diff --git a/definitions/2.2.0/message.json b/definitions/2.2.0/message.json index ec71a4d8..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/common/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/common/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } diff --git a/definitions/2.3.0/message.json b/definitions/2.3.0/message.json index fd6d8f5e..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/common/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/common/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } diff --git a/definitions/2.4.0/message.json b/definitions/2.4.0/message.json index 25efb274..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/common/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/common/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } diff --git a/definitions/2.5.0/message.json b/definitions/2.5.0/message.json index 63a4506d..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/common/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/common/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } diff --git a/definitions/2.6.0/message.json b/definitions/2.6.0/message.json index f9e5b438..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/common/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/common/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } diff --git a/definitions/3.0.0/multiFormatSchema.json b/definitions/3.0.0/multiFormatSchema.json index de026c72..1cd17517 100644 --- a/definitions/3.0.0/multiFormatSchema.json +++ b/definitions/3.0.0/multiFormatSchema.json @@ -158,7 +158,7 @@ "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" }, { - "$ref": "http://asyncapi.com/common/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json" } ] } @@ -188,7 +188,7 @@ "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" }, { - "$ref": "http://asyncapi.com/common/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } ] } 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 f3bfcd2b..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/common/avroSchema_v1.json", + "$id": "http://asyncapi.com/definitions/common/avroSchema_v1.json", "definitions": { "avroSchema": { "title": "Avro Schema", diff --git a/common/openapiSchema_3_0.json b/definitions/common/openapiSchema_3_0.json similarity index 98% rename from common/openapiSchema_3_0.json rename to definitions/common/openapiSchema_3_0.json index 00e3a6ca..0dd2b603 100644 --- a/common/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/common/openapiSchema_3_0.json", + "$id": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json", "type": "object", "definitions": { "ExternalDocumentation": { diff --git a/schemas/2.0.0.json b/schemas/2.0.0.json index 2398d17a..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/common/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/common/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } @@ -1185,8 +1185,8 @@ } } }, - "http://asyncapi.com/common/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/common/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/common/avroSchema_v1.json": { - "$id": "http://asyncapi.com/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", diff --git a/schemas/2.1.0.json b/schemas/2.1.0.json index 8cfde4c0..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/common/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/common/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } @@ -1236,8 +1236,8 @@ } } }, - "http://asyncapi.com/common/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/common/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/common/avroSchema_v1.json": { - "$id": "http://asyncapi.com/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", diff --git a/schemas/2.2.0.json b/schemas/2.2.0.json index f9f0b2f8..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/common/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/common/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } @@ -1221,8 +1221,8 @@ } } }, - "http://asyncapi.com/common/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/common/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/common/avroSchema_v1.json": { - "$id": "http://asyncapi.com/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", diff --git a/schemas/2.3.0.json b/schemas/2.3.0.json index 37682eca..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/common/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/common/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } @@ -1237,8 +1237,8 @@ } } }, - "http://asyncapi.com/common/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/common/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/common/avroSchema_v1.json": { - "$id": "http://asyncapi.com/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", diff --git a/schemas/2.4.0.json b/schemas/2.4.0.json index f220e5f7..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/common/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/common/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } @@ -1258,8 +1258,8 @@ } } }, - "http://asyncapi.com/common/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/common/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/common/avroSchema_v1.json": { - "$id": "http://asyncapi.com/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", diff --git a/schemas/2.5.0.json b/schemas/2.5.0.json index f078bf4e..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/common/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/common/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } @@ -1272,8 +1272,8 @@ } } }, - "http://asyncapi.com/common/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/common/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/common/avroSchema_v1.json": { - "$id": "http://asyncapi.com/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", diff --git a/schemas/2.6.0.json b/schemas/2.6.0.json index c8d604cd..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/common/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/common/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } } } @@ -1726,8 +1726,8 @@ } ] }, - "http://asyncapi.com/common/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/common/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/common/avroSchema_v1.json": { - "$id": "http://asyncapi.com/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", diff --git a/schemas/3.0.0.json b/schemas/3.0.0.json index 22e1923f..c3bea3c8 100644 --- a/schemas/3.0.0.json +++ b/schemas/3.0.0.json @@ -2917,7 +2917,7 @@ "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" }, { - "$ref": "http://asyncapi.com/common/openapiSchema_3_0.json" + "$ref": "http://asyncapi.com/definitions/common/openapiSchema_3_0.json" } ] } @@ -2947,7 +2947,7 @@ "$ref": "http://asyncapi.com/definitions/3.0.0/Reference.json" }, { - "$ref": "http://asyncapi.com/common/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } ] } @@ -2957,8 +2957,8 @@ ] } }, - "http://asyncapi.com/common/openapiSchema_3_0.json": { - "$id": "http://asyncapi.com/common/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 +3244,8 @@ }, "additionalProperties": false }, - "http://asyncapi.com/common/avroSchema_v1.json": { - "$id": "http://asyncapi.com/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 +4292,7 @@ "$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" }, { - "$ref": "http://asyncapi.com/common/avroSchema_v1.json" + "$ref": "http://asyncapi.com/definitions/common/avroSchema_v1.json" } ], "description": "The message key." 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(); From 6165b1b6adbcf0de02ebe086b74ba70366995b62 Mon Sep 17 00:00:00 2001 From: Jonas Lagoni Date: Wed, 22 May 2024 21:03:08 +0200 Subject: [PATCH 4/4] update bundler --- schemas/2.0.0-without-$id.json | 106 ++++++++++++++++----------------- schemas/2.1.0-without-$id.json | 106 ++++++++++++++++----------------- schemas/2.2.0-without-$id.json | 106 ++++++++++++++++----------------- schemas/2.3.0-without-$id.json | 106 ++++++++++++++++----------------- schemas/2.4.0-without-$id.json | 106 ++++++++++++++++----------------- schemas/2.5.0-without-$id.json | 106 ++++++++++++++++----------------- schemas/2.6.0-without-$id.json | 106 ++++++++++++++++----------------- schemas/3.0.0-without-$id.json | 106 ++++++++++++++++----------------- tools/bundler/index.js | 37 ++++++++++++ 9 files changed, 461 insertions(+), 424 deletions(-) diff --git a/schemas/2.0.0-without-$id.json b/schemas/2.0.0-without-$id.json index 5910a2c2..2a1bf42a 100644 --- a/schemas/2.0.0-without-$id.json +++ b/schemas/2.0.0-without-$id.json @@ -1324,10 +1324,10 @@ "not": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] }, @@ -1336,10 +1336,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1349,10 +1349,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1362,10 +1362,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1373,10 +1373,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] }, @@ -1385,10 +1385,10 @@ "additionalProperties": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1396,10 +1396,10 @@ "additionalProperties": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" }, { "type": "boolean" @@ -1419,7 +1419,7 @@ "default": false }, "discriminator": { - "$ref": "#/definitions/Discriminator" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Discriminator" }, "readOnly": { "type": "boolean", @@ -1431,14 +1431,14 @@ }, "example": true, "externalDocs": { - "$ref": "#/definitions/ExternalDocumentation" + "$ref": "#/definitions/openapiSchema_3_0/definitions/ExternalDocumentation" }, "deprecated": { "type": "boolean", "default": false }, "xml": { - "$ref": "#/definitions/XML" + "$ref": "#/definitions/openapiSchema_3_0/definitions/XML" } }, "patternProperties": { @@ -1453,7 +1453,7 @@ "description": "Root Schema", "oneOf": [ { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } ] }, @@ -1462,31 +1462,31 @@ "description": "Allowed Avro types", "oneOf": [ { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" }, { - "$ref": "#/definitions/primitiveTypeWithMetadata" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveTypeWithMetadata" }, { - "$ref": "#/definitions/customTypeReference" + "$ref": "#/definitions/avroSchema_v1/definitions/customTypeReference" }, { - "$ref": "#/definitions/avroRecord" + "$ref": "#/definitions/avroSchema_v1/definitions/avroRecord" }, { - "$ref": "#/definitions/avroEnum" + "$ref": "#/definitions/avroSchema_v1/definitions/avroEnum" }, { - "$ref": "#/definitions/avroArray" + "$ref": "#/definitions/avroSchema_v1/definitions/avroArray" }, { - "$ref": "#/definitions/avroMap" + "$ref": "#/definitions/avroSchema_v1/definitions/avroMap" }, { - "$ref": "#/definitions/avroFixed" + "$ref": "#/definitions/avroSchema_v1/definitions/avroFixed" }, { - "$ref": "#/definitions/avroUnion" + "$ref": "#/definitions/avroSchema_v1/definitions/avroUnion" } ] }, @@ -1511,7 +1511,7 @@ "type": "object", "properties": { "type": { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" } }, "required": [ @@ -1522,7 +1522,7 @@ "title": "Custom Type", "description": "Reference to a ComplexType", "not": { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" }, "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$" @@ -1532,7 +1532,7 @@ "description": "A Union of types", "type": "array", "items": { - "$ref": "#/definitions/avroSchema" + "$ref": "#/definitions/avroSchema_v1/definitions/avroSchema" }, "minItems": 1 }, @@ -1542,10 +1542,10 @@ "type": "object", "properties": { "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "type": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" }, "doc": { "type": "string" @@ -1561,7 +1561,7 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } } }, @@ -1580,10 +1580,10 @@ "const": "record" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1591,13 +1591,13 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "fields": { "type": "array", "items": { - "$ref": "#/definitions/avroField" + "$ref": "#/definitions/avroSchema_v1/definitions/avroField" } } }, @@ -1617,10 +1617,10 @@ "const": "enum" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1628,13 +1628,13 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "symbols": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } } }, @@ -1654,10 +1654,10 @@ "const": "array" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1665,11 +1665,11 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "items": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } }, "required": [ @@ -1687,10 +1687,10 @@ "const": "map" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1698,11 +1698,11 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "values": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } }, "required": [ @@ -1720,10 +1720,10 @@ "const": "fixed" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1731,7 +1731,7 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "size": { @@ -1756,7 +1756,7 @@ "description": "Json-Schema definition for Avro AVSC files.", "oneOf": [ { - "$ref": "#/definitions/avroSchema" + "$ref": "#/definitions/avroSchema_v1/definitions/avroSchema" } ], "title": "Avro Schema Definition" diff --git a/schemas/2.1.0-without-$id.json b/schemas/2.1.0-without-$id.json index 1ad8932e..f2db9a08 100644 --- a/schemas/2.1.0-without-$id.json +++ b/schemas/2.1.0-without-$id.json @@ -1375,10 +1375,10 @@ "not": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] }, @@ -1387,10 +1387,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1400,10 +1400,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1413,10 +1413,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1424,10 +1424,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] }, @@ -1436,10 +1436,10 @@ "additionalProperties": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1447,10 +1447,10 @@ "additionalProperties": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" }, { "type": "boolean" @@ -1470,7 +1470,7 @@ "default": false }, "discriminator": { - "$ref": "#/definitions/Discriminator" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Discriminator" }, "readOnly": { "type": "boolean", @@ -1482,14 +1482,14 @@ }, "example": true, "externalDocs": { - "$ref": "#/definitions/ExternalDocumentation" + "$ref": "#/definitions/openapiSchema_3_0/definitions/ExternalDocumentation" }, "deprecated": { "type": "boolean", "default": false }, "xml": { - "$ref": "#/definitions/XML" + "$ref": "#/definitions/openapiSchema_3_0/definitions/XML" } }, "patternProperties": { @@ -1504,7 +1504,7 @@ "description": "Root Schema", "oneOf": [ { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } ] }, @@ -1513,31 +1513,31 @@ "description": "Allowed Avro types", "oneOf": [ { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" }, { - "$ref": "#/definitions/primitiveTypeWithMetadata" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveTypeWithMetadata" }, { - "$ref": "#/definitions/customTypeReference" + "$ref": "#/definitions/avroSchema_v1/definitions/customTypeReference" }, { - "$ref": "#/definitions/avroRecord" + "$ref": "#/definitions/avroSchema_v1/definitions/avroRecord" }, { - "$ref": "#/definitions/avroEnum" + "$ref": "#/definitions/avroSchema_v1/definitions/avroEnum" }, { - "$ref": "#/definitions/avroArray" + "$ref": "#/definitions/avroSchema_v1/definitions/avroArray" }, { - "$ref": "#/definitions/avroMap" + "$ref": "#/definitions/avroSchema_v1/definitions/avroMap" }, { - "$ref": "#/definitions/avroFixed" + "$ref": "#/definitions/avroSchema_v1/definitions/avroFixed" }, { - "$ref": "#/definitions/avroUnion" + "$ref": "#/definitions/avroSchema_v1/definitions/avroUnion" } ] }, @@ -1562,7 +1562,7 @@ "type": "object", "properties": { "type": { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" } }, "required": [ @@ -1573,7 +1573,7 @@ "title": "Custom Type", "description": "Reference to a ComplexType", "not": { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" }, "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$" @@ -1583,7 +1583,7 @@ "description": "A Union of types", "type": "array", "items": { - "$ref": "#/definitions/avroSchema" + "$ref": "#/definitions/avroSchema_v1/definitions/avroSchema" }, "minItems": 1 }, @@ -1593,10 +1593,10 @@ "type": "object", "properties": { "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "type": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" }, "doc": { "type": "string" @@ -1612,7 +1612,7 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } } }, @@ -1631,10 +1631,10 @@ "const": "record" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1642,13 +1642,13 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "fields": { "type": "array", "items": { - "$ref": "#/definitions/avroField" + "$ref": "#/definitions/avroSchema_v1/definitions/avroField" } } }, @@ -1668,10 +1668,10 @@ "const": "enum" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1679,13 +1679,13 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "symbols": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } } }, @@ -1705,10 +1705,10 @@ "const": "array" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1716,11 +1716,11 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "items": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } }, "required": [ @@ -1738,10 +1738,10 @@ "const": "map" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1749,11 +1749,11 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "values": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } }, "required": [ @@ -1771,10 +1771,10 @@ "const": "fixed" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1782,7 +1782,7 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "size": { @@ -1807,7 +1807,7 @@ "description": "Json-Schema definition for Avro AVSC files.", "oneOf": [ { - "$ref": "#/definitions/avroSchema" + "$ref": "#/definitions/avroSchema_v1/definitions/avroSchema" } ], "title": "Avro Schema Definition" diff --git a/schemas/2.2.0-without-$id.json b/schemas/2.2.0-without-$id.json index 8431809b..d2306956 100644 --- a/schemas/2.2.0-without-$id.json +++ b/schemas/2.2.0-without-$id.json @@ -1360,10 +1360,10 @@ "not": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] }, @@ -1372,10 +1372,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1385,10 +1385,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1398,10 +1398,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1409,10 +1409,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] }, @@ -1421,10 +1421,10 @@ "additionalProperties": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1432,10 +1432,10 @@ "additionalProperties": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" }, { "type": "boolean" @@ -1455,7 +1455,7 @@ "default": false }, "discriminator": { - "$ref": "#/definitions/Discriminator" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Discriminator" }, "readOnly": { "type": "boolean", @@ -1467,14 +1467,14 @@ }, "example": true, "externalDocs": { - "$ref": "#/definitions/ExternalDocumentation" + "$ref": "#/definitions/openapiSchema_3_0/definitions/ExternalDocumentation" }, "deprecated": { "type": "boolean", "default": false }, "xml": { - "$ref": "#/definitions/XML" + "$ref": "#/definitions/openapiSchema_3_0/definitions/XML" } }, "patternProperties": { @@ -1489,7 +1489,7 @@ "description": "Root Schema", "oneOf": [ { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } ] }, @@ -1498,31 +1498,31 @@ "description": "Allowed Avro types", "oneOf": [ { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" }, { - "$ref": "#/definitions/primitiveTypeWithMetadata" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveTypeWithMetadata" }, { - "$ref": "#/definitions/customTypeReference" + "$ref": "#/definitions/avroSchema_v1/definitions/customTypeReference" }, { - "$ref": "#/definitions/avroRecord" + "$ref": "#/definitions/avroSchema_v1/definitions/avroRecord" }, { - "$ref": "#/definitions/avroEnum" + "$ref": "#/definitions/avroSchema_v1/definitions/avroEnum" }, { - "$ref": "#/definitions/avroArray" + "$ref": "#/definitions/avroSchema_v1/definitions/avroArray" }, { - "$ref": "#/definitions/avroMap" + "$ref": "#/definitions/avroSchema_v1/definitions/avroMap" }, { - "$ref": "#/definitions/avroFixed" + "$ref": "#/definitions/avroSchema_v1/definitions/avroFixed" }, { - "$ref": "#/definitions/avroUnion" + "$ref": "#/definitions/avroSchema_v1/definitions/avroUnion" } ] }, @@ -1547,7 +1547,7 @@ "type": "object", "properties": { "type": { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" } }, "required": [ @@ -1558,7 +1558,7 @@ "title": "Custom Type", "description": "Reference to a ComplexType", "not": { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" }, "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$" @@ -1568,7 +1568,7 @@ "description": "A Union of types", "type": "array", "items": { - "$ref": "#/definitions/avroSchema" + "$ref": "#/definitions/avroSchema_v1/definitions/avroSchema" }, "minItems": 1 }, @@ -1578,10 +1578,10 @@ "type": "object", "properties": { "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "type": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" }, "doc": { "type": "string" @@ -1597,7 +1597,7 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } } }, @@ -1616,10 +1616,10 @@ "const": "record" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1627,13 +1627,13 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "fields": { "type": "array", "items": { - "$ref": "#/definitions/avroField" + "$ref": "#/definitions/avroSchema_v1/definitions/avroField" } } }, @@ -1653,10 +1653,10 @@ "const": "enum" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1664,13 +1664,13 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "symbols": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } } }, @@ -1690,10 +1690,10 @@ "const": "array" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1701,11 +1701,11 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "items": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } }, "required": [ @@ -1723,10 +1723,10 @@ "const": "map" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1734,11 +1734,11 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "values": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } }, "required": [ @@ -1756,10 +1756,10 @@ "const": "fixed" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1767,7 +1767,7 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "size": { @@ -1792,7 +1792,7 @@ "description": "Json-Schema definition for Avro AVSC files.", "oneOf": [ { - "$ref": "#/definitions/avroSchema" + "$ref": "#/definitions/avroSchema_v1/definitions/avroSchema" } ], "title": "Avro Schema Definition" diff --git a/schemas/2.3.0-without-$id.json b/schemas/2.3.0-without-$id.json index ed91459c..e55f77bf 100644 --- a/schemas/2.3.0-without-$id.json +++ b/schemas/2.3.0-without-$id.json @@ -1375,10 +1375,10 @@ "not": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] }, @@ -1387,10 +1387,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1400,10 +1400,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1413,10 +1413,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1424,10 +1424,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] }, @@ -1436,10 +1436,10 @@ "additionalProperties": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1447,10 +1447,10 @@ "additionalProperties": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" }, { "type": "boolean" @@ -1470,7 +1470,7 @@ "default": false }, "discriminator": { - "$ref": "#/definitions/Discriminator" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Discriminator" }, "readOnly": { "type": "boolean", @@ -1482,14 +1482,14 @@ }, "example": true, "externalDocs": { - "$ref": "#/definitions/ExternalDocumentation" + "$ref": "#/definitions/openapiSchema_3_0/definitions/ExternalDocumentation" }, "deprecated": { "type": "boolean", "default": false }, "xml": { - "$ref": "#/definitions/XML" + "$ref": "#/definitions/openapiSchema_3_0/definitions/XML" } }, "patternProperties": { @@ -1504,7 +1504,7 @@ "description": "Root Schema", "oneOf": [ { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } ] }, @@ -1513,31 +1513,31 @@ "description": "Allowed Avro types", "oneOf": [ { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" }, { - "$ref": "#/definitions/primitiveTypeWithMetadata" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveTypeWithMetadata" }, { - "$ref": "#/definitions/customTypeReference" + "$ref": "#/definitions/avroSchema_v1/definitions/customTypeReference" }, { - "$ref": "#/definitions/avroRecord" + "$ref": "#/definitions/avroSchema_v1/definitions/avroRecord" }, { - "$ref": "#/definitions/avroEnum" + "$ref": "#/definitions/avroSchema_v1/definitions/avroEnum" }, { - "$ref": "#/definitions/avroArray" + "$ref": "#/definitions/avroSchema_v1/definitions/avroArray" }, { - "$ref": "#/definitions/avroMap" + "$ref": "#/definitions/avroSchema_v1/definitions/avroMap" }, { - "$ref": "#/definitions/avroFixed" + "$ref": "#/definitions/avroSchema_v1/definitions/avroFixed" }, { - "$ref": "#/definitions/avroUnion" + "$ref": "#/definitions/avroSchema_v1/definitions/avroUnion" } ] }, @@ -1562,7 +1562,7 @@ "type": "object", "properties": { "type": { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" } }, "required": [ @@ -1573,7 +1573,7 @@ "title": "Custom Type", "description": "Reference to a ComplexType", "not": { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" }, "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$" @@ -1583,7 +1583,7 @@ "description": "A Union of types", "type": "array", "items": { - "$ref": "#/definitions/avroSchema" + "$ref": "#/definitions/avroSchema_v1/definitions/avroSchema" }, "minItems": 1 }, @@ -1593,10 +1593,10 @@ "type": "object", "properties": { "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "type": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" }, "doc": { "type": "string" @@ -1612,7 +1612,7 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } } }, @@ -1631,10 +1631,10 @@ "const": "record" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1642,13 +1642,13 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "fields": { "type": "array", "items": { - "$ref": "#/definitions/avroField" + "$ref": "#/definitions/avroSchema_v1/definitions/avroField" } } }, @@ -1668,10 +1668,10 @@ "const": "enum" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1679,13 +1679,13 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "symbols": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } } }, @@ -1705,10 +1705,10 @@ "const": "array" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1716,11 +1716,11 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "items": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } }, "required": [ @@ -1738,10 +1738,10 @@ "const": "map" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1749,11 +1749,11 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "values": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } }, "required": [ @@ -1771,10 +1771,10 @@ "const": "fixed" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1782,7 +1782,7 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "size": { @@ -1807,7 +1807,7 @@ "description": "Json-Schema definition for Avro AVSC files.", "oneOf": [ { - "$ref": "#/definitions/avroSchema" + "$ref": "#/definitions/avroSchema_v1/definitions/avroSchema" } ], "title": "Avro Schema Definition" diff --git a/schemas/2.4.0-without-$id.json b/schemas/2.4.0-without-$id.json index 355e355b..a1b83162 100644 --- a/schemas/2.4.0-without-$id.json +++ b/schemas/2.4.0-without-$id.json @@ -1396,10 +1396,10 @@ "not": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] }, @@ -1408,10 +1408,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1421,10 +1421,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1434,10 +1434,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1445,10 +1445,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] }, @@ -1457,10 +1457,10 @@ "additionalProperties": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1468,10 +1468,10 @@ "additionalProperties": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" }, { "type": "boolean" @@ -1491,7 +1491,7 @@ "default": false }, "discriminator": { - "$ref": "#/definitions/Discriminator" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Discriminator" }, "readOnly": { "type": "boolean", @@ -1503,14 +1503,14 @@ }, "example": true, "externalDocs": { - "$ref": "#/definitions/ExternalDocumentation" + "$ref": "#/definitions/openapiSchema_3_0/definitions/ExternalDocumentation" }, "deprecated": { "type": "boolean", "default": false }, "xml": { - "$ref": "#/definitions/XML" + "$ref": "#/definitions/openapiSchema_3_0/definitions/XML" } }, "patternProperties": { @@ -1525,7 +1525,7 @@ "description": "Root Schema", "oneOf": [ { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } ] }, @@ -1534,31 +1534,31 @@ "description": "Allowed Avro types", "oneOf": [ { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" }, { - "$ref": "#/definitions/primitiveTypeWithMetadata" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveTypeWithMetadata" }, { - "$ref": "#/definitions/customTypeReference" + "$ref": "#/definitions/avroSchema_v1/definitions/customTypeReference" }, { - "$ref": "#/definitions/avroRecord" + "$ref": "#/definitions/avroSchema_v1/definitions/avroRecord" }, { - "$ref": "#/definitions/avroEnum" + "$ref": "#/definitions/avroSchema_v1/definitions/avroEnum" }, { - "$ref": "#/definitions/avroArray" + "$ref": "#/definitions/avroSchema_v1/definitions/avroArray" }, { - "$ref": "#/definitions/avroMap" + "$ref": "#/definitions/avroSchema_v1/definitions/avroMap" }, { - "$ref": "#/definitions/avroFixed" + "$ref": "#/definitions/avroSchema_v1/definitions/avroFixed" }, { - "$ref": "#/definitions/avroUnion" + "$ref": "#/definitions/avroSchema_v1/definitions/avroUnion" } ] }, @@ -1583,7 +1583,7 @@ "type": "object", "properties": { "type": { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" } }, "required": [ @@ -1594,7 +1594,7 @@ "title": "Custom Type", "description": "Reference to a ComplexType", "not": { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" }, "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$" @@ -1604,7 +1604,7 @@ "description": "A Union of types", "type": "array", "items": { - "$ref": "#/definitions/avroSchema" + "$ref": "#/definitions/avroSchema_v1/definitions/avroSchema" }, "minItems": 1 }, @@ -1614,10 +1614,10 @@ "type": "object", "properties": { "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "type": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" }, "doc": { "type": "string" @@ -1633,7 +1633,7 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } } }, @@ -1652,10 +1652,10 @@ "const": "record" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1663,13 +1663,13 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "fields": { "type": "array", "items": { - "$ref": "#/definitions/avroField" + "$ref": "#/definitions/avroSchema_v1/definitions/avroField" } } }, @@ -1689,10 +1689,10 @@ "const": "enum" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1700,13 +1700,13 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "symbols": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } } }, @@ -1726,10 +1726,10 @@ "const": "array" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1737,11 +1737,11 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "items": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } }, "required": [ @@ -1759,10 +1759,10 @@ "const": "map" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1770,11 +1770,11 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "values": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } }, "required": [ @@ -1792,10 +1792,10 @@ "const": "fixed" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1803,7 +1803,7 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "size": { @@ -1828,7 +1828,7 @@ "description": "Json-Schema definition for Avro AVSC files.", "oneOf": [ { - "$ref": "#/definitions/avroSchema" + "$ref": "#/definitions/avroSchema_v1/definitions/avroSchema" } ], "title": "Avro Schema Definition" diff --git a/schemas/2.5.0-without-$id.json b/schemas/2.5.0-without-$id.json index d01ca4c1..bd49a22e 100644 --- a/schemas/2.5.0-without-$id.json +++ b/schemas/2.5.0-without-$id.json @@ -1410,10 +1410,10 @@ "not": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] }, @@ -1422,10 +1422,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1435,10 +1435,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1448,10 +1448,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1459,10 +1459,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] }, @@ -1471,10 +1471,10 @@ "additionalProperties": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1482,10 +1482,10 @@ "additionalProperties": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" }, { "type": "boolean" @@ -1505,7 +1505,7 @@ "default": false }, "discriminator": { - "$ref": "#/definitions/Discriminator" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Discriminator" }, "readOnly": { "type": "boolean", @@ -1517,14 +1517,14 @@ }, "example": true, "externalDocs": { - "$ref": "#/definitions/ExternalDocumentation" + "$ref": "#/definitions/openapiSchema_3_0/definitions/ExternalDocumentation" }, "deprecated": { "type": "boolean", "default": false }, "xml": { - "$ref": "#/definitions/XML" + "$ref": "#/definitions/openapiSchema_3_0/definitions/XML" } }, "patternProperties": { @@ -1539,7 +1539,7 @@ "description": "Root Schema", "oneOf": [ { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } ] }, @@ -1548,31 +1548,31 @@ "description": "Allowed Avro types", "oneOf": [ { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" }, { - "$ref": "#/definitions/primitiveTypeWithMetadata" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveTypeWithMetadata" }, { - "$ref": "#/definitions/customTypeReference" + "$ref": "#/definitions/avroSchema_v1/definitions/customTypeReference" }, { - "$ref": "#/definitions/avroRecord" + "$ref": "#/definitions/avroSchema_v1/definitions/avroRecord" }, { - "$ref": "#/definitions/avroEnum" + "$ref": "#/definitions/avroSchema_v1/definitions/avroEnum" }, { - "$ref": "#/definitions/avroArray" + "$ref": "#/definitions/avroSchema_v1/definitions/avroArray" }, { - "$ref": "#/definitions/avroMap" + "$ref": "#/definitions/avroSchema_v1/definitions/avroMap" }, { - "$ref": "#/definitions/avroFixed" + "$ref": "#/definitions/avroSchema_v1/definitions/avroFixed" }, { - "$ref": "#/definitions/avroUnion" + "$ref": "#/definitions/avroSchema_v1/definitions/avroUnion" } ] }, @@ -1597,7 +1597,7 @@ "type": "object", "properties": { "type": { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" } }, "required": [ @@ -1608,7 +1608,7 @@ "title": "Custom Type", "description": "Reference to a ComplexType", "not": { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" }, "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$" @@ -1618,7 +1618,7 @@ "description": "A Union of types", "type": "array", "items": { - "$ref": "#/definitions/avroSchema" + "$ref": "#/definitions/avroSchema_v1/definitions/avroSchema" }, "minItems": 1 }, @@ -1628,10 +1628,10 @@ "type": "object", "properties": { "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "type": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" }, "doc": { "type": "string" @@ -1647,7 +1647,7 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } } }, @@ -1666,10 +1666,10 @@ "const": "record" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1677,13 +1677,13 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "fields": { "type": "array", "items": { - "$ref": "#/definitions/avroField" + "$ref": "#/definitions/avroSchema_v1/definitions/avroField" } } }, @@ -1703,10 +1703,10 @@ "const": "enum" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1714,13 +1714,13 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "symbols": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } } }, @@ -1740,10 +1740,10 @@ "const": "array" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1751,11 +1751,11 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "items": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } }, "required": [ @@ -1773,10 +1773,10 @@ "const": "map" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1784,11 +1784,11 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "values": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } }, "required": [ @@ -1806,10 +1806,10 @@ "const": "fixed" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -1817,7 +1817,7 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "size": { @@ -1842,7 +1842,7 @@ "description": "Json-Schema definition for Avro AVSC files.", "oneOf": [ { - "$ref": "#/definitions/avroSchema" + "$ref": "#/definitions/avroSchema_v1/definitions/avroSchema" } ], "title": "Avro Schema Definition" diff --git a/schemas/2.6.0-without-$id.json b/schemas/2.6.0-without-$id.json index 00c5e4ce..6c79b5cc 100644 --- a/schemas/2.6.0-without-$id.json +++ b/schemas/2.6.0-without-$id.json @@ -1864,10 +1864,10 @@ "not": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] }, @@ -1876,10 +1876,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1889,10 +1889,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1902,10 +1902,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1913,10 +1913,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] }, @@ -1925,10 +1925,10 @@ "additionalProperties": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -1936,10 +1936,10 @@ "additionalProperties": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" }, { "type": "boolean" @@ -1959,7 +1959,7 @@ "default": false }, "discriminator": { - "$ref": "#/definitions/Discriminator" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Discriminator" }, "readOnly": { "type": "boolean", @@ -1971,14 +1971,14 @@ }, "example": true, "externalDocs": { - "$ref": "#/definitions/ExternalDocumentation" + "$ref": "#/definitions/openapiSchema_3_0/definitions/ExternalDocumentation" }, "deprecated": { "type": "boolean", "default": false }, "xml": { - "$ref": "#/definitions/XML" + "$ref": "#/definitions/openapiSchema_3_0/definitions/XML" } }, "patternProperties": { @@ -1993,7 +1993,7 @@ "description": "Root Schema", "oneOf": [ { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } ] }, @@ -2002,31 +2002,31 @@ "description": "Allowed Avro types", "oneOf": [ { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" }, { - "$ref": "#/definitions/primitiveTypeWithMetadata" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveTypeWithMetadata" }, { - "$ref": "#/definitions/customTypeReference" + "$ref": "#/definitions/avroSchema_v1/definitions/customTypeReference" }, { - "$ref": "#/definitions/avroRecord" + "$ref": "#/definitions/avroSchema_v1/definitions/avroRecord" }, { - "$ref": "#/definitions/avroEnum" + "$ref": "#/definitions/avroSchema_v1/definitions/avroEnum" }, { - "$ref": "#/definitions/avroArray" + "$ref": "#/definitions/avroSchema_v1/definitions/avroArray" }, { - "$ref": "#/definitions/avroMap" + "$ref": "#/definitions/avroSchema_v1/definitions/avroMap" }, { - "$ref": "#/definitions/avroFixed" + "$ref": "#/definitions/avroSchema_v1/definitions/avroFixed" }, { - "$ref": "#/definitions/avroUnion" + "$ref": "#/definitions/avroSchema_v1/definitions/avroUnion" } ] }, @@ -2051,7 +2051,7 @@ "type": "object", "properties": { "type": { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" } }, "required": [ @@ -2062,7 +2062,7 @@ "title": "Custom Type", "description": "Reference to a ComplexType", "not": { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" }, "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$" @@ -2072,7 +2072,7 @@ "description": "A Union of types", "type": "array", "items": { - "$ref": "#/definitions/avroSchema" + "$ref": "#/definitions/avroSchema_v1/definitions/avroSchema" }, "minItems": 1 }, @@ -2082,10 +2082,10 @@ "type": "object", "properties": { "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "type": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" }, "doc": { "type": "string" @@ -2101,7 +2101,7 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } } }, @@ -2120,10 +2120,10 @@ "const": "record" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -2131,13 +2131,13 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "fields": { "type": "array", "items": { - "$ref": "#/definitions/avroField" + "$ref": "#/definitions/avroSchema_v1/definitions/avroField" } } }, @@ -2157,10 +2157,10 @@ "const": "enum" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -2168,13 +2168,13 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "symbols": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } } }, @@ -2194,10 +2194,10 @@ "const": "array" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -2205,11 +2205,11 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "items": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } }, "required": [ @@ -2227,10 +2227,10 @@ "const": "map" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -2238,11 +2238,11 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "values": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } }, "required": [ @@ -2260,10 +2260,10 @@ "const": "fixed" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -2271,7 +2271,7 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "size": { @@ -2296,7 +2296,7 @@ "description": "Json-Schema definition for Avro AVSC files.", "oneOf": [ { - "$ref": "#/definitions/avroSchema" + "$ref": "#/definitions/avroSchema_v1/definitions/avroSchema" } ], "title": "Avro Schema Definition" diff --git a/schemas/3.0.0-without-$id.json b/schemas/3.0.0-without-$id.json index 7fce3081..fee24b19 100644 --- a/schemas/3.0.0-without-$id.json +++ b/schemas/3.0.0-without-$id.json @@ -3017,10 +3017,10 @@ "not": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] }, @@ -3029,10 +3029,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -3042,10 +3042,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -3055,10 +3055,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -3066,10 +3066,10 @@ "items": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] }, @@ -3078,10 +3078,10 @@ "additionalProperties": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" } ] } @@ -3089,10 +3089,10 @@ "additionalProperties": { "oneOf": [ { - "$ref": "#" + "$ref": "#/definitions/openapiSchema_3_0" }, { - "$ref": "#/definitions/Reference" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Reference" }, { "type": "boolean" @@ -3112,7 +3112,7 @@ "default": false }, "discriminator": { - "$ref": "#/definitions/Discriminator" + "$ref": "#/definitions/openapiSchema_3_0/definitions/Discriminator" }, "readOnly": { "type": "boolean", @@ -3124,14 +3124,14 @@ }, "example": true, "externalDocs": { - "$ref": "#/definitions/ExternalDocumentation" + "$ref": "#/definitions/openapiSchema_3_0/definitions/ExternalDocumentation" }, "deprecated": { "type": "boolean", "default": false }, "xml": { - "$ref": "#/definitions/XML" + "$ref": "#/definitions/openapiSchema_3_0/definitions/XML" } }, "patternProperties": { @@ -3198,7 +3198,7 @@ "description": "Root Schema", "oneOf": [ { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } ] }, @@ -3207,31 +3207,31 @@ "description": "Allowed Avro types", "oneOf": [ { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" }, { - "$ref": "#/definitions/primitiveTypeWithMetadata" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveTypeWithMetadata" }, { - "$ref": "#/definitions/customTypeReference" + "$ref": "#/definitions/avroSchema_v1/definitions/customTypeReference" }, { - "$ref": "#/definitions/avroRecord" + "$ref": "#/definitions/avroSchema_v1/definitions/avroRecord" }, { - "$ref": "#/definitions/avroEnum" + "$ref": "#/definitions/avroSchema_v1/definitions/avroEnum" }, { - "$ref": "#/definitions/avroArray" + "$ref": "#/definitions/avroSchema_v1/definitions/avroArray" }, { - "$ref": "#/definitions/avroMap" + "$ref": "#/definitions/avroSchema_v1/definitions/avroMap" }, { - "$ref": "#/definitions/avroFixed" + "$ref": "#/definitions/avroSchema_v1/definitions/avroFixed" }, { - "$ref": "#/definitions/avroUnion" + "$ref": "#/definitions/avroSchema_v1/definitions/avroUnion" } ] }, @@ -3256,7 +3256,7 @@ "type": "object", "properties": { "type": { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" } }, "required": [ @@ -3267,7 +3267,7 @@ "title": "Custom Type", "description": "Reference to a ComplexType", "not": { - "$ref": "#/definitions/primitiveType" + "$ref": "#/definitions/avroSchema_v1/definitions/primitiveType" }, "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*$" @@ -3277,7 +3277,7 @@ "description": "A Union of types", "type": "array", "items": { - "$ref": "#/definitions/avroSchema" + "$ref": "#/definitions/avroSchema_v1/definitions/avroSchema" }, "minItems": 1 }, @@ -3287,10 +3287,10 @@ "type": "object", "properties": { "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "type": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" }, "doc": { "type": "string" @@ -3306,7 +3306,7 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } } }, @@ -3325,10 +3325,10 @@ "const": "record" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -3336,13 +3336,13 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "fields": { "type": "array", "items": { - "$ref": "#/definitions/avroField" + "$ref": "#/definitions/avroSchema_v1/definitions/avroField" } } }, @@ -3362,10 +3362,10 @@ "const": "enum" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -3373,13 +3373,13 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "symbols": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } } }, @@ -3399,10 +3399,10 @@ "const": "array" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -3410,11 +3410,11 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "items": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } }, "required": [ @@ -3432,10 +3432,10 @@ "const": "map" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -3443,11 +3443,11 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "values": { - "$ref": "#/definitions/types" + "$ref": "#/definitions/avroSchema_v1/definitions/types" } }, "required": [ @@ -3465,10 +3465,10 @@ "const": "fixed" }, "name": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" }, "namespace": { - "$ref": "#/definitions/namespace" + "$ref": "#/definitions/avroSchema_v1/definitions/namespace" }, "doc": { "type": "string" @@ -3476,7 +3476,7 @@ "aliases": { "type": "array", "items": { - "$ref": "#/definitions/name" + "$ref": "#/definitions/avroSchema_v1/definitions/name" } }, "size": { @@ -3501,7 +3501,7 @@ "description": "Json-Schema definition for Avro AVSC files.", "oneOf": [ { - "$ref": "#/definitions/avroSchema" + "$ref": "#/definitions/avroSchema_v1/definitions/avroSchema" } ], "title": "Avro Schema Definition" diff --git a/tools/bundler/index.js b/tools/bundler/index.js index 4076cd77..e5403fc0 100644 --- a/tools/bundler/index.js +++ b/tools/bundler/index.js @@ -187,6 +187,8 @@ function modifyRefsAndDefinitions(bundledSchema) { } traverse(bundledSchema, replaceRef); + traverse(bundledSchema.definitions.avroSchema_v1, updateAvro); + traverse(bundledSchema.definitions.openapiSchema_3_0, updateOpenApi); traverse(bundledSchema.definitions['json-schema-draft-07-schema'], updateJsonSchema); return bundledSchema; @@ -245,6 +247,41 @@ function replaceRef(schema) { if (!schema.$ref.startsWith('#')) schema.$ref = `#/definitions/${getDefinitionName(schema.$ref)}`; } +/** + * this is a callback used when traversing through json schema + * to fix avro schema definitions to point to right direction + */ +function updateAvro(schema) { + //traversing should take place only in case of schemas with refs + if (schema.$ref === undefined) return; + + schema.$ref = schema.$ref.replace( + /* eslint-disable sonarjs/no-duplicate-string */ + '#/definitions/', + '#/definitions/avroSchema_v1/definitions/' + ); +} + +/** + * this is a callback used when traversing through json schema + * to fix open api schema definitions to point to right direction + */ +function updateOpenApi(schema) { + //traversing should take place only in case of schemas with refs + if (schema.$ref === undefined) return; + const openApiPropName = 'openapiSchema_3_0'; + + schema.$ref = schema.$ref.replace( + /* eslint-disable sonarjs/no-duplicate-string */ + '#/definitions/', + `#/definitions/${openApiPropName}/definitions/` + ); + + if (schema.$ref === '#') { + schema.$ref = `#/definitions/${openApiPropName}`; + } +} + /** * this is a callback used when traversing through json schema * to fix open api schema definitions to point to right direction