From e1df5f3c52cdbef54acd9f36b63dfe1b32e20329 Mon Sep 17 00:00:00 2001 From: Pavel Bodiachevskii Date: Tue, 31 Dec 2024 17:05:12 +0400 Subject: [PATCH 1/2] fix: wrong type of payload and headers in MessageExample According to JSON Schema headers and payload properties may be of any type https://github.com/asyncapi/website/issues/3530 --- markdown/docs/reference/specification/v3.0.0.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/markdown/docs/reference/specification/v3.0.0.md b/markdown/docs/reference/specification/v3.0.0.md index aa83815bff65..e155dd180282 100644 --- a/markdown/docs/reference/specification/v3.0.0.md +++ b/markdown/docs/reference/specification/v3.0.0.md @@ -1335,8 +1335,8 @@ Message Example Object represents an example of a [Message Object](#messageObjec Field Name | Type | Description ---|:---:|--- -headers | `Map[string, any]` | The value of this field MUST validate against the [Message Object's headers](#messageObjectHeaders) field. -payload | `Map[string, any]` | The value of this field MUST validate against the [Message Object's payload](#messageObjectPayload) field. +headers | `any` | The value of this field MUST validate against the [Message Object's headers](#messageObjectHeaders) field. +payload | `any` | The value of this field MUST validate against the [Message Object's payload](#messageObjectPayload) field. name | `string` | A machine-friendly name. summary | `string` | A short summary of what the example is about. @@ -2585,4 +2585,4 @@ binary | `string` | `binary` | any sequence of octets boolean | `boolean` | | | date | `string` | `date` | As defined by `full-date` - [RFC3339](https://www.rfc-editor.org/rfc/rfc3339.html#section-5.6) dateTime | `string` | `date-time` | As defined by `date-time` - [RFC3339](https://www.rfc-editor.org/rfc/rfc3339.html#section-5.6) -password | `string` | `password` | Used to hint UIs the input needs to be obscured. \ No newline at end of file +password | `string` | `password` | Used to hint UIs the input needs to be obscured. From 9062549a3bdade9540fdad8e3a918937fdcaba04 Mon Sep 17 00:00:00 2001 From: Pavel Bodiachevskii Date: Thu, 9 Jan 2025 13:26:38 +0400 Subject: [PATCH 2/2] fix: wrong type of payload and headers in MessageExample Rollback headers to Map[string, any] --- markdown/docs/reference/specification/v3.0.0.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markdown/docs/reference/specification/v3.0.0.md b/markdown/docs/reference/specification/v3.0.0.md index e155dd180282..369ab2ad9544 100644 --- a/markdown/docs/reference/specification/v3.0.0.md +++ b/markdown/docs/reference/specification/v3.0.0.md @@ -1335,7 +1335,7 @@ Message Example Object represents an example of a [Message Object](#messageObjec Field Name | Type | Description ---|:---:|--- -headers | `any` | The value of this field MUST validate against the [Message Object's headers](#messageObjectHeaders) field. +headers | `Map[string, any]` | The value of this field MUST validate against the [Message Object's headers](#messageObjectHeaders) field. payload | `any` | The value of this field MUST validate against the [Message Object's payload](#messageObjectPayload) field. name | `string` | A machine-friendly name. summary | `string` | A short summary of what the example is about.