{% for server in asyncapi.servers %}
  {% if server.scheme === 'amqp' %}
amqp:
  broker:
    host: localhost
    port: 5672
    username: guest
    password: guest
  exchange:
{% for topicName, topic in asyncapi.topics %}
  {% if topic.publish %}
    {{topic.x-service-name}}: {{topic}}
  {% endif %}
{% endfor %}
  queue:
{% for topicName, topic in asyncapi.topics %}
  {% if topic.subscribe %}
    {{topic.x-service-name}}: {{topic}}
  {% endif %}
{% endfor %}
  {% endif %}
  {% if server.scheme === 'mqtt' %}
mqtt:
  broker:
    host: tcp://{{server.url}}
    port: {{server.variables.port.default}}
    username:
    password:
  topic:
{% for topicName, topic in asyncapi.topics %}
    {{topic.x-service-name}}Topic: {{topic}}
{% endfor %}
  {% endif %}
{% endfor %}
