This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
How to change the response type of /openapi.json #3026
Labels
You can continue the conversation there. Go to discussion →
There appears to be an active discussion around the preferred MIME type for OpenAPI documentation. FastAPI provides /openapi.json with the
application/json
MIME type.I am attempting to use FastAPI to implement the OGC API - Features - Part 1: Core 1.0 spec which requires OpenAPI documentation be provided with MIME type application/vnd.oai.openapi+json;version=3.0 (see here).
Is it possible to change the response type of /openapi.json within FastAPI? Looking through the documentation and searching around the internet I don't see any way to do this.
The text was updated successfully, but these errors were encountered: