From 2191fdfd9b5fff6173d36cb546d08c84721a7d59 Mon Sep 17 00:00:00 2001 From: Pavel Bodiachevskii Date: Mon, 27 Jan 2025 13:28:15 +0400 Subject: [PATCH] fix: fix type of payload in MessageExample (#561) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: fix type of payload and headers in MessageExample https://github.com/asyncapi/spec-json-schemas/issues/560 * fix: wrong type of payload and headers in MessageExample Rollback headers to Map[string, any] * fix: headers description in MessageExample Update headers description. Clarify that headers must be a map of key-value pairs * Update definitions/3.0.0/messageExampleObject.json Co-authored-by: Fran Méndez --------- Co-authored-by: Fran Méndez --- definitions/3.0.0/messageExampleObject.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/definitions/3.0.0/messageExampleObject.json b/definitions/3.0.0/messageExampleObject.json index 3a59ffcf..316e0759 100644 --- a/definitions/3.0.0/messageExampleObject.json +++ b/definitions/3.0.0/messageExampleObject.json @@ -24,9 +24,10 @@ }, "headers": { "type": "object", - "description": "Example of the application headers. It can be of any type." + "description": "Example of the application headers. It MUST be a map of key-value pairs." }, "payload": { + "type": ["number", "string", "boolean", "object", "array", "null"], "description": "Example of the message payload. It can be of any type." } },