Skip to content

Instantly share code, notes, and snippets.

@lbroudoux
Last active April 13, 2021 12:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lbroudoux/d5eca1c76fd57e5b3326b5d5db26bbd3 to your computer and use it in GitHub Desktop.
Save lbroudoux/d5eca1c76fd57e5b3326b5d5db26bbd3 to your computer and use it in GitHub Desktop.
CloudEvents AsyncAPI binary sample #yaml
asyncapi: '2.0.0'
id: 'urn:io.microcks.example.user-signedup'
info:
title: User signed-up CloudEvents API binary
version: 0.1.3
channels:
user/signedup:
subscribe:
message:
bindings:
kafka:
key:
type: string
description: Timestamp of event as milliseconds since 1st Jan 1970
traits:
- $ref: 'https://raw.githubusercontent.com/microcks/microcks-quickstarters/main/cloud/cloudevents/cloudevents-v1.0.1-asyncapi-trait.yml'
headers:
type: object
properties:
custom-header:
type: string
contentType: avro/binary
schemaFormat: application/vnd.apache.avro+json;version=1.9.0
payload:
$ref: './user-signedup.avsc#/User'
examples: [...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment