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