{% for code, definition in operation.responses.items() %}
{% if code == "default" -%} {{texts.other_responses}} {%- else -%} Response {{code}} {%- with phrase = get_http_status_phrase(code) -%} {%- if phrase -%} {{ phrase }} {%- endif -%} {%- endwith -%} {%- endif %}
{%- if is_reference(definition) -%} {%- with type_name = definition["$ref"].replace("#/components/responses/", "") %}Refer to the common response description: {{type_name}}.
{{texts.response_headers}}
{{texts.name}} | {{texts.description}} | {{texts.schema}} |
---|---|---|
{{header_name}} |
{{header_definition.description}} | {%- with schema = header_definition.schema %} {%- include "partial/schema-repr.html" -%} {% endwith -%} |