{%import 'util.j2' as utils%}

{% if obj.ref %}
ref: {{utils.format_ref(obj.ref)}}
{% endif %}

{% if obj.schema_object %}
{{utils.set_temp(obj, obj.schema_object, "schema_obj.j2")}}
{% endif %}

{% if obj.encoding %}
{{utils.set_temp(obj, obj.encoding, "encoding_obj.j2")}}
{% endif %}

{%if obj.examples%}
_Examples_

{%for example, obj in obj.examples.items()%}
{{example}}

{%include 'example_obj.j2'%}

{%endfor%}
{%endif%}

{%if obj.x_variables%}
extensions: {%include 'specification_extension.j2'%}
{%endif%}
