Skip to content

Commit

Permalink
docs: add example "Multi Format Schema Object Example with Avro" (asy…
Browse files Browse the repository at this point in the history
…ncapi#1032)

Co-authored-by: Sergio Moya <[email protected]>

(cherry picked from commit aed791e)
  • Loading branch information
Lazzaretti authored and artellador committed Feb 24, 2024
1 parent d4208c3 commit 1148fb7
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions spec/asyncapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1814,6 +1814,29 @@ 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
```

#### <a name="schemaObject"></a>Schema Object

The Schema Object allows the definition of input and output data types.
Expand Down

0 comments on commit 1148fb7

Please sign in to comment.