asyncapi: 2.2.0
info:
  title: Service 2
  version: '1.0.0'
  description: |
    Testing 2

channels:
  # commands
  'cmd-channel':
    bindings:
      amqp:
        queue:
          name: example_command
    publish:
      message:
        $ref: '#/components/messages/command-ref'
  # events
  'evt-channel':
    bindings:
      amqp:
        queue:
          name: example_event
    publish:
      message:
        $ref: '#/components/messages/event-ref'
components:
  messages:
    command-ref:
      contentType: application/json
      payload:
        $ref: 'command.json'
    event-ref:
      contentType: application/json
      payload:
        $ref: 'event.json'
