Skip to content

Commit

Permalink
docs: add example "Multi Format Schema Object Example with Avro"
Browse files Browse the repository at this point in the history
asyncapi#1015
Make it clear on how to use Avro and other non JSON Schema conform formats inline.

Signed-off-by: Lazzaretti <[email protected]>
  • Loading branch information
Lazzaretti committed Feb 14, 2024
1 parent af846ae commit 5c953e4
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions spec/asyncapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

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

Expand Down

0 comments on commit 5c953e4

Please sign in to comment.