Skip to content

Instantly share code, notes, and snippets.

@hjoukl
hjoukl / _fastapi-oas-yaml.md
Last active March 9, 2024 03:17
fastapi openapi.yaml in addition to openapi.json + hook openapi.yaml into redoc page

Add openapi.yaml as alternative OAS schema format in fastapi (https://fastapi.tiangolo.com/), as /hello-world-service.yaml in this case.

Moreover, put this endpoint into the redoc page instead of the link to the .json OAS schema file.

See also this fastapi feature request: tiangolo/fastapi#1140