@asyncapi/specs
Advanced tools
Comparing version 6.0.0-next-major-spec.1 to 6.0.0-next-major-spec.2
@@ -20,3 +20,3 @@ { | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/anySchema.json" | ||
} | ||
@@ -23,0 +23,0 @@ ] |
@@ -10,5 +10,2 @@ { | ||
"properties": { | ||
"schemaFormat": { | ||
"type": "string" | ||
}, | ||
"contentType": { | ||
@@ -18,14 +15,3 @@ "type": "string" | ||
"headers": { | ||
"allOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" | ||
}, | ||
{ | ||
"properties": { | ||
"type": { | ||
"const": "object" | ||
} | ||
} | ||
} | ||
] | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/anySchema.json" | ||
}, | ||
@@ -35,3 +21,5 @@ "messageId": { | ||
}, | ||
"payload": {}, | ||
"payload": { | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/anySchema.json" | ||
}, | ||
"correlationId": { | ||
@@ -118,5 +106,7 @@ "oneOf": [ | ||
"headers": { | ||
"type": "object" | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/anySchema.json" | ||
}, | ||
"payload": {} | ||
"payload": { | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/anySchema.json" | ||
} | ||
} | ||
@@ -161,134 +151,4 @@ } | ||
}, | ||
"allOf": [ | ||
{ | ||
"if": { | ||
"not": { | ||
"required": [ | ||
"schemaFormat" | ||
] | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"payload": { | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"if": { | ||
"required": [ | ||
"schemaFormat" | ||
], | ||
"properties": { | ||
"schemaFormat": { | ||
"enum": [ | ||
"application/vnd.aai.asyncapi;version=2.0.0", | ||
"application/vnd.aai.asyncapi+json;version=2.0.0", | ||
"application/vnd.aai.asyncapi+yaml;version=2.0.0", | ||
"application/vnd.aai.asyncapi;version=2.1.0", | ||
"application/vnd.aai.asyncapi+json;version=2.1.0", | ||
"application/vnd.aai.asyncapi+yaml;version=2.1.0", | ||
"application/vnd.aai.asyncapi;version=2.2.0", | ||
"application/vnd.aai.asyncapi+json;version=2.2.0", | ||
"application/vnd.aai.asyncapi+yaml;version=2.2.0", | ||
"application/vnd.aai.asyncapi;version=2.3.0", | ||
"application/vnd.aai.asyncapi+json;version=2.3.0", | ||
"application/vnd.aai.asyncapi+yaml;version=2.3.0", | ||
"application/vnd.aai.asyncapi;version=2.4.0", | ||
"application/vnd.aai.asyncapi+json;version=2.4.0", | ||
"application/vnd.aai.asyncapi+yaml;version=2.4.0", | ||
"application/vnd.aai.asyncapi;version=2.5.0", | ||
"application/vnd.aai.asyncapi+json;version=2.5.0", | ||
"application/vnd.aai.asyncapi+yaml;version=2.5.0", | ||
"application/vnd.aai.asyncapi;version=2.6.0", | ||
"application/vnd.aai.asyncapi+json;version=2.6.0", | ||
"application/vnd.aai.asyncapi+yaml;version=2.6.0", | ||
"application/vnd.aai.asyncapi;version=3.0.0", | ||
"application/vnd.aai.asyncapi+json;version=3.0.0", | ||
"application/vnd.aai.asyncapi+yaml;version=3.0.0" | ||
] | ||
} | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"payload": { | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"if": { | ||
"required": [ | ||
"schemaFormat" | ||
], | ||
"properties": { | ||
"schemaFormat": { | ||
"enum": [ | ||
"application/schema+json;version=draft-07", | ||
"application/schema+yaml;version=draft-07" | ||
] | ||
} | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"payload": { | ||
"$ref": "http://json-schema.org/draft-07/schema" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"if": { | ||
"required": [ | ||
"schemaFormat" | ||
], | ||
"properties": { | ||
"schemaFormat": { | ||
"enum": [ | ||
"application/vnd.oai.openapi;version=3.0.0", | ||
"application/vnd.oai.openapi+json;version=3.0.0", | ||
"application/vnd.oai.openapi+yaml;version=3.0.0" | ||
] | ||
} | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"payload": { | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/openapiSchema_3_0.json" | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"if": { | ||
"required": [ | ||
"schemaFormat" | ||
], | ||
"properties": { | ||
"schemaFormat": { | ||
"enum": [ | ||
"application/vnd.apache.avro;version=1.9.0", | ||
"application/vnd.apache.avro+json;version=1.9.0", | ||
"application/vnd.apache.avro+yaml;version=1.9.0" | ||
] | ||
} | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"payload": { | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/avroSchema_v1.json" | ||
} | ||
} | ||
} | ||
} | ||
], | ||
"$schema": "http://json-schema.org/draft-07/schema#", | ||
"$id": "http://asyncapi.com/definitions/3.0.0/messageObject.json" | ||
} |
@@ -10,5 +10,2 @@ { | ||
"properties": { | ||
"schemaFormat": { | ||
"type": "string" | ||
}, | ||
"contentType": { | ||
@@ -18,14 +15,3 @@ "type": "string" | ||
"headers": { | ||
"allOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/schema.json" | ||
}, | ||
{ | ||
"properties": { | ||
"type": { | ||
"const": "object" | ||
} | ||
} | ||
} | ||
] | ||
"$ref": "http://asyncapi.com/definitions/3.0.0/anySchema.json" | ||
}, | ||
@@ -32,0 +18,0 @@ "messageId": { |
{ | ||
"name": "@asyncapi/specs", | ||
"version": "6.0.0-next-major-spec.1", | ||
"version": "6.0.0-next-major-spec.2", | ||
"description": "AsyncAPI schema versions", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16064609
1081
170257