@asyncapi/specs
Advanced tools
Comparing version 5.0.0-next-major-spec.17 to 5.0.0-next-major-spec.18
@@ -91,21 +91,2 @@ { | ||
"$ref": "http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.0.0-rc1/messageTrait.json" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalItems": true | ||
} | ||
] | ||
} | ||
@@ -112,0 +93,0 @@ ] |
@@ -19,21 +19,2 @@ { | ||
"$ref": "http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.0.0-rc1/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.0.0-rc1/operationTrait.json" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalItems": true | ||
} | ||
] | ||
} | ||
@@ -40,0 +21,0 @@ ] |
@@ -100,21 +100,2 @@ { | ||
"$ref": "http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.0.0-rc2/messageTrait.json" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalItems": true | ||
} | ||
] | ||
} | ||
@@ -121,0 +102,0 @@ ] |
@@ -19,21 +19,2 @@ { | ||
"$ref": "http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.0.0-rc2/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.0.0-rc2/operationTrait.json" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalItems": true | ||
} | ||
] | ||
} | ||
@@ -40,0 +21,0 @@ ] |
@@ -118,21 +118,2 @@ { | ||
"$ref": "http://asyncapi.com/definitions/2.0.0/messageTrait.json" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.0.0/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.0.0/messageTrait.json" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalItems": true | ||
} | ||
] | ||
} | ||
@@ -142,3 +123,66 @@ ] | ||
} | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"if": { | ||
"not": { | ||
"required": [ | ||
"schemaFormat" | ||
] | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"payload": { | ||
"$ref": "http://asyncapi.com/definitions/2.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" | ||
] | ||
} | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"payload": { | ||
"$ref": "http://asyncapi.com/definitions/2.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" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
@@ -145,0 +189,0 @@ ] |
@@ -19,21 +19,2 @@ { | ||
"$ref": "http://asyncapi.com/definitions/2.0.0/operationTrait.json" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.0.0/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.0.0/operationTrait.json" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalItems": true | ||
} | ||
] | ||
} | ||
@@ -40,0 +21,0 @@ ] |
@@ -138,21 +138,2 @@ { | ||
"$ref": "http://asyncapi.com/definitions/2.1.0/messageTrait.json" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.1.0/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.1.0/messageTrait.json" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalItems": true | ||
} | ||
] | ||
} | ||
@@ -162,3 +143,69 @@ ] | ||
} | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"if": { | ||
"not": { | ||
"required": [ | ||
"schemaFormat" | ||
] | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"payload": { | ||
"$ref": "http://asyncapi.com/definitions/2.1.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" | ||
] | ||
} | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"payload": { | ||
"$ref": "http://asyncapi.com/definitions/2.1.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" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
@@ -165,0 +212,0 @@ ] |
@@ -19,21 +19,2 @@ { | ||
"$ref": "http://asyncapi.com/definitions/2.1.0/operationTrait.json" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.1.0/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.1.0/operationTrait.json" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalItems": true | ||
} | ||
] | ||
} | ||
@@ -40,0 +21,0 @@ ] |
@@ -138,21 +138,2 @@ { | ||
"$ref": "http://asyncapi.com/definitions/2.2.0/messageTrait.json" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.2.0/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.2.0/messageTrait.json" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalItems": true | ||
} | ||
] | ||
} | ||
@@ -162,3 +143,72 @@ ] | ||
} | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"if": { | ||
"not": { | ||
"required": [ | ||
"schemaFormat" | ||
] | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"payload": { | ||
"$ref": "http://asyncapi.com/definitions/2.2.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" | ||
] | ||
} | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"payload": { | ||
"$ref": "http://asyncapi.com/definitions/2.2.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" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
@@ -165,0 +215,0 @@ ] |
@@ -19,21 +19,2 @@ { | ||
"$ref": "http://asyncapi.com/definitions/2.2.0/operationTrait.json" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.2.0/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.2.0/operationTrait.json" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalItems": true | ||
} | ||
] | ||
} | ||
@@ -40,0 +21,0 @@ ] |
@@ -138,21 +138,2 @@ { | ||
"$ref": "http://asyncapi.com/definitions/2.3.0/messageTrait.json" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.3.0/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.3.0/messageTrait.json" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalItems": true | ||
} | ||
] | ||
} | ||
@@ -162,3 +143,75 @@ ] | ||
} | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"if": { | ||
"not": { | ||
"required": [ | ||
"schemaFormat" | ||
] | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"payload": { | ||
"$ref": "http://asyncapi.com/definitions/2.3.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" | ||
] | ||
} | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"payload": { | ||
"$ref": "http://asyncapi.com/definitions/2.3.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" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
@@ -165,0 +218,0 @@ ] |
@@ -19,21 +19,2 @@ { | ||
"$ref": "http://asyncapi.com/definitions/2.3.0/operationTrait.json" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.3.0/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.3.0/operationTrait.json" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalItems": true | ||
} | ||
] | ||
} | ||
@@ -40,0 +21,0 @@ ] |
@@ -141,21 +141,2 @@ { | ||
"$ref": "http://asyncapi.com/definitions/2.4.0/messageTrait.json" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.4.0/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.4.0/messageTrait.json" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalItems": true | ||
} | ||
] | ||
} | ||
@@ -165,3 +146,78 @@ ] | ||
} | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"if": { | ||
"not": { | ||
"required": [ | ||
"schemaFormat" | ||
] | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"payload": { | ||
"$ref": "http://asyncapi.com/definitions/2.4.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" | ||
] | ||
} | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"payload": { | ||
"$ref": "http://asyncapi.com/definitions/2.4.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" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
@@ -168,0 +224,0 @@ ] |
@@ -19,21 +19,2 @@ { | ||
"$ref": "http://asyncapi.com/definitions/2.4.0/operationTrait.json" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.4.0/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.4.0/operationTrait.json" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalItems": true | ||
} | ||
] | ||
} | ||
@@ -40,0 +21,0 @@ ] |
@@ -10,5 +10,3 @@ { | ||
"type": "object", | ||
"required": [ | ||
"oneOf" | ||
], | ||
"required": ["oneOf"], | ||
"additionalProperties": false, | ||
@@ -104,10 +102,6 @@ "properties": { | ||
{ | ||
"required": [ | ||
"payload" | ||
] | ||
"required": ["payload"] | ||
}, | ||
{ | ||
"required": [ | ||
"headers" | ||
] | ||
"required": ["headers"] | ||
} | ||
@@ -143,21 +137,2 @@ ], | ||
"$ref": "http://asyncapi.com/definitions/2.5.0/messageTrait.json" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.5.0/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.5.0/messageTrait.json" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalItems": true | ||
} | ||
] | ||
} | ||
@@ -167,3 +142,81 @@ ] | ||
} | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"if": { | ||
"not": { | ||
"required": [ | ||
"schemaFormat" | ||
] | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"payload": { | ||
"$ref": "http://asyncapi.com/definitions/2.5.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" | ||
] | ||
} | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"payload": { | ||
"$ref": "http://asyncapi.com/definitions/2.5.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" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
@@ -175,2 +228,2 @@ ] | ||
"$id": "http://asyncapi.com/definitions/2.5.0/message.json" | ||
} | ||
} |
@@ -19,21 +19,2 @@ { | ||
"$ref": "http://asyncapi.com/definitions/2.5.0/operationTrait.json" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.5.0/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.5.0/operationTrait.json" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalItems": true | ||
} | ||
] | ||
} | ||
@@ -77,2 +58,2 @@ ] | ||
"$id": "http://asyncapi.com/definitions/2.5.0/operation.json" | ||
} | ||
} |
@@ -10,5 +10,3 @@ { | ||
"type": "object", | ||
"required": [ | ||
"oneOf" | ||
], | ||
"required": ["oneOf"], | ||
"additionalProperties": false, | ||
@@ -104,10 +102,6 @@ "properties": { | ||
{ | ||
"required": [ | ||
"payload" | ||
] | ||
"required": ["payload"] | ||
}, | ||
{ | ||
"required": [ | ||
"headers" | ||
] | ||
"required": ["headers"] | ||
} | ||
@@ -143,21 +137,2 @@ ], | ||
"$ref": "http://asyncapi.com/definitions/2.6.0/messageTrait.json" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.6.0/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.6.0/messageTrait.json" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalItems": true | ||
} | ||
] | ||
} | ||
@@ -167,3 +142,84 @@ ] | ||
} | ||
} | ||
}, | ||
"allOf": [ | ||
{ | ||
"if": { | ||
"not": { | ||
"required": [ | ||
"schemaFormat" | ||
] | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"payload": { | ||
"$ref": "http://asyncapi.com/definitions/2.6.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" | ||
] | ||
} | ||
} | ||
}, | ||
"then": { | ||
"properties": { | ||
"payload": { | ||
"$ref": "http://asyncapi.com/definitions/2.6.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" | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
@@ -175,2 +231,2 @@ ] | ||
"$id": "http://asyncapi.com/definitions/2.6.0/message.json" | ||
} | ||
} |
@@ -19,21 +19,2 @@ { | ||
"$ref": "http://asyncapi.com/definitions/2.6.0/operationTrait.json" | ||
}, | ||
{ | ||
"type": "array", | ||
"items": [ | ||
{ | ||
"oneOf": [ | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.6.0/Reference.json" | ||
}, | ||
{ | ||
"$ref": "http://asyncapi.com/definitions/2.6.0/operationTrait.json" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "object", | ||
"additionalItems": true | ||
} | ||
] | ||
} | ||
@@ -77,2 +58,2 @@ ] | ||
"$id": "http://asyncapi.com/definitions/2.6.0/operation.json" | ||
} | ||
} |
{ | ||
"name": "@asyncapi/specs", | ||
"version": "5.0.0-next-major-spec.17", | ||
"version": "5.0.0-next-major-spec.18", | ||
"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
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
14569439
128487