Skip to content

Instantly share code, notes, and snippets.

@mhmohona
Last active November 29, 2023 06:40
Show Gist options
  • Select an option

  • Save mhmohona/d8c5f46cf8dd6ca035daf6fa47eab19b to your computer and use it in GitHub Desktop.

Select an option

Save mhmohona/d8c5f46cf8dd6ca035daf6fa47eab19b to your computer and use it in GitHub Desktop.
How to write an AsyncAPI code and document from scratch. Using AsyncAPI tools for validating the document. Hands-on exercises to create and validate AsyncAPI documents.
asyncapi: 3.0.0
info:
title: Sending SIgnal to Eve
version: 0.1.0
channels:
userSignedUp:
address: Earth/letter
messages:
lettertoEarth:
description: Communicating with Eve.
payload:
type: object
additionalProperties: false
properties:
fullName:
type: string
email:
type: string
format: email
age:
type: integer
minimum: 18
operations:
userSignedUp:
action: send
channel:
$ref: '#/channels/userSignedUp'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment