craftbeerpi4-pione/venv/lib/python3.8/site-packages/aiohttp_swagger/templates/openapi.yaml

22 lines
414 B
YAML

openapi: 3.0.1
info:
title: {{ title }}
description: {{ description }}
version: "{{ version }}"
{% if contact %}
contact:
name: {{ contact }}
{% endif %}
servers:
- url: {{ base_path }}
components:
{% if definitions %}
schemas:
{{ definitions|nesteddict2yaml }}
{% endif %}
{% if security_definitions %}
securitySchemes:
{{ security_definitions|nesteddict2yaml }}
{% endif %}
paths: