From d41ab8199a6af06ab7e5f68f4092ccc0011a358a Mon Sep 17 00:00:00 2001 From: derberg Date: Tue, 10 Oct 2023 17:54:36 +0200 Subject: [PATCH 1/2] fix: examples of messages should not follow json schems --- 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..fb3edd44 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": "Schema definition of the application headers." }, "payload": { - "$ref": "http://asyncapi.com/definitions/3.0.0/anySchema.json" + "description": "Definition of the message payload. It can be of any type" } } } From 61be9a1d24238cd5387caa92a64c1647dc2536e5 Mon Sep 17 00:00:00 2001 From: derberg Date: Tue, 10 Oct 2023 18:00:20 +0200 Subject: [PATCH 2/2] some wording fix imho --- definitions/3.0.0/messageObject.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/definitions/3.0.0/messageObject.json b/definitions/3.0.0/messageObject.json index fb3edd44..b7719d01 100644 --- a/definitions/3.0.0/messageObject.json +++ b/definitions/3.0.0/messageObject.json @@ -101,10 +101,10 @@ }, "headers": { "type": "object", - "description": "Schema definition of the application headers." + "description": "Example of the application headers. It can be of any type." }, "payload": { - "description": "Definition of the message payload. It can be of any type" + "description": "Example of the message payload. It can be of any type." } } }