Skip to content

Commit

Permalink
chore(release): v6.0.0-next-major-spec.5 (#418)
Browse files Browse the repository at this point in the history
  • Loading branch information
asyncapi-bot authored Jul 26, 2023
1 parent ba244f8 commit 081a249
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@asyncapi/specs",
"version": "6.0.0-next-major-spec.4",
"version": "6.0.0-next-major-spec.5",
"description": "AsyncAPI schema versions",
"main": "index.js",
"types": "index.d.ts",
Expand Down
34 changes: 30 additions & 4 deletions schemas/3.0.0-without-$id.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@
"properties": {
"asyncapi": {
"type": "string",
"enum": [
"3.0.0"
],
"const": "3.0.0",
"description": "The AsyncAPI specification version of this document."
},
"id": {
Expand Down Expand Up @@ -2161,14 +2159,41 @@
},
"properties": {
"schemaFormat": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"description": "All the schema formats tooling MUST support",
"enum": [
"application/schema+json;version=draft-07",
"application/schema+yaml;version=draft-07",
"application/vnd.aai.asyncapi;version=3.0.0",
"application/vnd.aai.asyncapi+json;version=3.0.0",
"application/vnd.aai.asyncapi+yaml;version=3.0.0"
]
},
{
"description": "All the schema formats tools are RECOMMENDED to support",
"enum": [
"application/vnd.oai.openapi;version=3.0.0",
"application/vnd.oai.openapi+json;version=3.0.0",
"application/vnd.oai.openapi+yaml;version=3.0.0",
"application/vnd.apache.avro;version=1.9.0",
"application/vnd.apache.avro+json;version=1.9.0",
"application/vnd.apache.avro+yaml;version=1.9.0",
"application/raml+yaml;version=1.0"
]
}
]
},
"schema": {}
},
"allOf": [
{
"if": {
"not": {
"description": "If no schemaFormat has been defined, default to schema or reference",
"required": [
"schemaFormat"
]
Expand All @@ -2191,6 +2216,7 @@
},
{
"if": {
"description": "If schemaFormat has been defined check if it's one of the AsyncAPI Schema Object formats",
"required": [
"schemaFormat"
],
Expand Down
34 changes: 30 additions & 4 deletions schemas/3.0.0.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,7 @@
"properties": {
"asyncapi": {
"type": "string",
"enum": [
"3.0.0"
],
"const": "3.0.0",
"description": "The AsyncAPI specification version of this document."
},
"id": {
Expand Down Expand Up @@ -2210,14 +2208,41 @@
},
"properties": {
"schemaFormat": {
"type": "string"
"anyOf": [
{
"type": "string"
},
{
"description": "All the schema formats tooling MUST support",
"enum": [
"application/schema+json;version=draft-07",
"application/schema+yaml;version=draft-07",
"application/vnd.aai.asyncapi;version=3.0.0",
"application/vnd.aai.asyncapi+json;version=3.0.0",
"application/vnd.aai.asyncapi+yaml;version=3.0.0"
]
},
{
"description": "All the schema formats tools are RECOMMENDED to support",
"enum": [
"application/vnd.oai.openapi;version=3.0.0",
"application/vnd.oai.openapi+json;version=3.0.0",
"application/vnd.oai.openapi+yaml;version=3.0.0",
"application/vnd.apache.avro;version=1.9.0",
"application/vnd.apache.avro+json;version=1.9.0",
"application/vnd.apache.avro+yaml;version=1.9.0",
"application/raml+yaml;version=1.0"
]
}
]
},
"schema": {}
},
"allOf": [
{
"if": {
"not": {
"description": "If no schemaFormat has been defined, default to schema or reference",
"required": [
"schemaFormat"
]
Expand All @@ -2240,6 +2265,7 @@
},
{
"if": {
"description": "If schemaFormat has been defined check if it's one of the AsyncAPI Schema Object formats",
"required": [
"schemaFormat"
],
Expand Down

0 comments on commit 081a249

Please sign in to comment.