flask-openapi3
flask-openapi3 copied to clipboard
Generate REST API and OpenAPI documentation for your Flask project.
Checklist: - [x] Run `pytest tests` and no failed. - [x] Run `flake8 flask_openapi3 tests examples` and no failed. - [x] Run `mypy flask_openapi3` and no failed. - [x] Run...
Hi! I'm trying to find out how to properly create swagger [examples](https://swagger.io/docs/specification/adding-examples/). I have tried a number of different things but I haven't gotten it to work and I don't...
Environment: - Python version: 312 - Operating system: - Flask version: - flask-openapi3 version: --- This affects all versions. Flask-openapi3 removes all arguments passed to the view by any previous...
https://github.com/scalar/scalar Checklist: - [x] Run `pytest tests` and no failed. - [x] Run `flake8 flask_openapi3 tests examples` and no failed. - [x] Run `mypy flask_openapi3` and no failed. - [x]...
About the changes in the v4.0 version: - [x] #151 - [x] Create [plugins repository](https://github.com/luolingchun/flask-openapi3-plugins) to manage more ui templates: - [x] [Swagger](https://github.com/swagger-api/swagger-ui) - [x] [Redoc](https://github.com/Redocly/redoc) - [x] [RapiDoc](https://github.com/rapi-doc/RapiDoc) -...
From what I could understand the request body is limited to the use of `application/json` content-type. I believe that the use of custom content type should be supported e.g.: OAS:...
In current flask-openapi3, I can only map 200 to Resp, 201: Resp1. ``` python app = OpenAPI(__name__) class Resp(BaseModel): a: int class Resp1(BaseModel): b: int @app.get("/", responses={200: Resp, 201: Resp1})...
In flask-openapi3, I can only specify the item of 422 response array, but I want the response of 422 is a object.
Hi! As always, thank you for your excellent work. I have come to an issue in the 3.0rc version. The command line unexpectantly started to output the openapi spec in...
I'm looking into migrating from `flask-pydantic` to `flask-openapi3`, but one problem I'm having is around the authentication decorators we currently use. When using `flask-openapi3` pydantic validation is taking place _before_...