{% from "./schema.html" import schema %} {% macro message(msg, showIndex=false, index=0, open=false) %}
{% if showIndex %} #{{index}} {% endif %} {% if msg.title() %} {{msg.title()}} {% if msg.name() %} {{msg.name()}} {% endif %} {% else %} {% if msg.name() %} {{msg.name()}} {% endif %} {% endif %}

{{msg.summary()}}

{{ msg.description() | markdown2html | safe }}
{{ schema(msg.payload(), 'Payload', open=open) }} {% if msg.headers() %}
{{ schema(msg.headers(), 'Headers', open=open) }}
{% endif %}
{% endmacro %}