From 8aac0040879e1a9bd1d67829f5ac23eaf0547e93 Mon Sep 17 00:00:00 2001 From: Pavel Bodiachevskii Date: Mon, 30 Dec 2024 23:21:09 +0400 Subject: [PATCH] fix: fix type of payload and headers in MessageExample https://github.com/asyncapi/spec-json-schemas/issues/560 --- 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..d028cfa9 100644 --- a/definitions/3.0.0/messageExampleObject.json +++ b/definitions/3.0.0/messageExampleObject.json @@ -23,10 +23,11 @@ "description": "A brief summary of the message example." }, "headers": { - "type": "object", + "type": ["number", "string", "boolean", "object", "array", "null"], "description": "Example of the application headers. It can be of any type." }, "payload": { + "type": ["number", "string", "boolean", "object", "array", "null"], "description": "Example of the message payload. It can be of any type." } },