From 5c953e49ee87e5f0e43d8ff8b675a3a52fa278c7 Mon Sep 17 00:00:00 2001 From: Lazzaretti Date: Wed, 14 Feb 2024 09:06:04 +0100 Subject: [PATCH] docs: add example "Multi Format Schema Object Example with Avro" https://github.com/asyncapi/spec/issues/1015 Make it clear on how to use Avro and other non JSON Schema conform formats inline. Signed-off-by: Lazzaretti --- spec/asyncapi.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/spec/asyncapi.md b/spec/asyncapi.md index bd7bada5..b461136a 100644 --- a/spec/asyncapi.md +++ b/spec/asyncapi.md @@ -1867,6 +1867,28 @@ Name | Allowed values | Notes [RAML 1.0 data type](https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md/) | `application/raml+yaml;version=1.0` | [Protocol Buffers](https://protobuf.dev/) | `application/vnd.google.protobuf;version=2`, `application/vnd.google.protobuf;version=3` | +##### Multi Format Schema Object Examples + +###### Multi Format Schema Object Example with Avro + +```yaml +channels: + example: + messages: + myMessage: + payload: + schemaFormat: 'application/vnd.apache.avro;version=1.9.0' + schema: + type: record + name: User + namespace: com.company + doc: User information + fields: + - name: displayName + type: string + - name: age + type: int +``` #### Schema Object