Skip to content

Instantly share code, notes, and snippets.

View asyncapi-dale.yaml
asyncapi: 2.0.0
# ---
id: 'urn:dalelane:stock-level-events'
# ---
info:
title: Stock level events
View temperature.avsc
{
"type": "record",
"namespace": "co.uk.dalelane",
"name": "TemperatureReading",
"fields": [
{
"name": "warehouse",
"type": {
"type": "enum",
"name": "Warehouse",
@dalelane
dalelane / proposal.md
Last active Feb 25, 2021
Describing Kafka schema usage using AsyncAPI
View proposal.md
@dalelane
dalelane / asyncapi-kafka.yaml
Created Nov 27, 2020
Kafka spec in AsyncAPI
View asyncapi-kafka.yaml
asyncapi: '2.0.0'
id: 'urn:some:unique:id'
info:
title: The whole spec
...
servers:
nameofmycluster:
url: someaddress:port
protocol: kafka-secure
security:
@dalelane
dalelane / asyncapi-avro-url.yaml
Created Nov 27, 2020
Avro URL reference in asyncapi
View asyncapi-avro-url.yaml
asyncapi: '2.0.0'
...
channels:
my.topic.name:
...
subscribe:
...
message:
...
schemaFormat: 'application/vnd.apache.avro;version=1.9.0'
@dalelane
dalelane / asyncapi-avro-file.yaml
Created Nov 27, 2020
Avro file reference in asyncapi
View asyncapi-avro-file.yaml
asyncapi: '2.0.0'
...
channels:
my.topic.name:
...
subscribe:
...
message:
...
schemaFormat: 'application/vnd.apache.avro;version=1.9.0'
@dalelane
dalelane / schemaformat.yaml
Created Nov 27, 2020
asyncapi message format
View schemaformat.yaml
asyncapi: '2.0.0'
...
channels:
my.topic.name:
...
subscribe:
...
message:
...
schemaFormat: 'application/vnd.aai.asyncapi;version=2.0.0'
@dalelane
dalelane / schemaformat.yaml
Created Nov 27, 2020
asyncapi message format
View schemaformat.yaml
asyncapi: '2.0.0'
...
channels:
my.topic.name:
...
subscribe:
...
message:
...
schemaFormat: 'application/vnd.aai.asyncapi;version=2.0.0'
@dalelane
dalelane / schemaformat.yaml
Created Nov 27, 2020
asyncapi message format
View schemaformat.yaml
asyncapi: '2.0.0'
...
channels:
my.topic.name:
...
subscribe:
...
message:
...
schemaFormat: 'application/vnd.aai.asyncapi;version=2.0.0'
@dalelane
dalelane / message-headers.yaml
Created Nov 27, 2020
Kafka message headers in asyncapi
View message-headers.yaml
asyncapi: '2.0.0'
...
channels:
my.topic.name:
...
subscribe:
...
message:
...
headers: