{
    "asyncapi": "3.1.0",
    "info": {
      "title": "Account Service",
      "version": "1.0.0",
      "description": "This service is in charge of processing user signups"
    },
    "channels": {
      "userSignedUp": {
        "address": "user/signedup",
        "messages": {
          "UserSignedUp": {
            "$ref": "#/components/messages/UserSignedUp"
          }
        }
      }
    },
    "operations": {
      "onUserSignUp": {
        "action": "receive",
        "channel": {
          "$ref": "#/channels/userSignedUp"
        },
        "messages": [
          {
            "$ref": "#/channels/userSignedUp/messages/UserSignedUp"
          }
        ]
      }
    },
    "components": {
      "messages": {
        "UserSignedUp": {
          "payload": {
            "type": "object",
            "properties": {
              "displayName": {
                "type": "string",
                "description": "Name of the user"
              },
              "email": {
                "type": "string",
                "format": "email",
                "description": "Email of the user"
              }
            }
          }
        }
      }
    }
  }