{% from "./partials/schema.html" import schema %} {% from "./partials/tags.html" import tags %} {% macro message(msg, showIndex=false, index=0, open=false) %}
{% if showIndex %} #{{index}} {% endif %} {% if msg.title() %} {{msg.title()}} {{msg.uid()}} {% else %} {{msg.uid()}} {% endif %}
{% if msg.summary() is not none %}

{{msg.summary()}}

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