From f80e22e598900e5d7d3dc03681d8d052401b05c9 Mon Sep 17 00:00:00 2001 From: Lukasz Gornicki Date: Wed, 11 Oct 2023 19:46:51 +0200 Subject: [PATCH 1/2] fix: examples of messages should not follow json schema (#434) --- definitions/3.0.0/messageObject.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/definitions/3.0.0/messageObject.json b/definitions/3.0.0/messageObject.json index 69aeafe4..b7719d01 100644 --- a/definitions/3.0.0/messageObject.json +++ b/definitions/3.0.0/messageObject.json @@ -100,10 +100,11 @@ "description": "A brief summary of the message example." }, "headers": { - "$ref": "http://asyncapi.com/definitions/3.0.0/anySchema.json" + "type": "object", + "description": "Example of the application headers. It can be of any type." }, "payload": { - "$ref": "http://asyncapi.com/definitions/3.0.0/anySchema.json" + "description": "Example of the message payload. It can be of any type." } } } From 9eb33e54e4151f4c15ca364f8b09927c1c03c589 Mon Sep 17 00:00:00 2001 From: asyncapi-bot Date: Wed, 11 Oct 2023 19:50:30 +0200 Subject: [PATCH 2/2] chore(release): v6.0.0-next-major-spec.10 (#435) --- package-lock.json | 4 ++-- package.json | 2 +- schemas/3.0.0-without-$id.json | 5 +++-- schemas/3.0.0.json | 5 +++-- 4 files changed, 9 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index 276c0a77..7ae55380 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@asyncapi/specs", - "version": "6.0.0-next-major-spec.9", + "version": "6.0.0-next-major-spec.10", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@asyncapi/specs", - "version": "6.0.0-next-major-spec.9", + "version": "6.0.0-next-major-spec.10", "license": "Apache-2.0", "dependencies": { "@types/json-schema": "^7.0.11" diff --git a/package.json b/package.json index e4527433..e6be0869 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@asyncapi/specs", - "version": "6.0.0-next-major-spec.9", + "version": "6.0.0-next-major-spec.10", "description": "AsyncAPI schema versions", "main": "index.js", "types": "index.d.ts", diff --git a/schemas/3.0.0-without-$id.json b/schemas/3.0.0-without-$id.json index cc25a968..48afe849 100644 --- a/schemas/3.0.0-without-$id.json +++ b/schemas/3.0.0-without-$id.json @@ -2081,10 +2081,11 @@ "description": "A brief summary of the message example." }, "headers": { - "$ref": "#/definitions/anySchema" + "type": "object", + "description": "Example of the application headers. It can be of any type." }, "payload": { - "$ref": "#/definitions/anySchema" + "description": "Example of the message payload. It can be of any type." } } } diff --git a/schemas/3.0.0.json b/schemas/3.0.0.json index 3dfba870..9f51664e 100644 --- a/schemas/3.0.0.json +++ b/schemas/3.0.0.json @@ -2128,10 +2128,11 @@ "description": "A brief summary of the message example." }, "headers": { - "$ref": "http://asyncapi.com/definitions/3.0.0/anySchema.json" + "type": "object", + "description": "Example of the application headers. It can be of any type." }, "payload": { - "$ref": "http://asyncapi.com/definitions/3.0.0/anySchema.json" + "description": "Example of the message payload. It can be of any type." } } }