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

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

{%if obj.type%}
type: {{obj.type}}
{%endif%}

{%if obj.description%}
description: {{obj.description}}
{%endif%}

{%if obj.name%}
name: {{obj.name}}
{%endif%}

{%if obj.in_%}
in: {{obj.in_}}
{%endif%}

{%if obj.scheme%}
scheme: {{obj.scheme}}
{%endif%}

{%if obj.flows%}

{{utils.set_temp(obj, obj.flows, "oauth_flows_obj.j2")}}

{%endif%}

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