flask-openapi3
flask-openapi3 copied to clipboard
Generate REST API and OpenAPI documentation for your Flask project.
Is there a specific reason why ValidationError can only be changed at the app level using `validation_error_callback`? https://github.com/luolingchun/flask-openapi3/pull/83 It would be great to be able to change it using `@api.errorhandler(ValidationError)`...
Checklist: - [x] Run `pytest tests` and no failed. - [x] Run `ruff check flask_openapi3 tests examples` and no failed. - [x] Run `mypy flask_openapi3` and no failed. - [x]...
Not really a bug, but a feature request Is it possible to have support for schemas such as the one described in the [Pydantic documentation](https://docs.pydantic.dev/1.10/usage/schema/#getting-schema-of-a-specified-type). It's possible to achieve this...
Add api_blueprint.register_api_view(api_view) so that you can register an APIView onto an APIBlueprint. Previously you could only register APIViews onto the app itself. This allows for better modularity and organization of...
Environment: As follow up for MR #225 , please make the code more defensive: ``` AttributeError: 'function' object has no attribute 'validate_response' ``` is caused by ``` if func.validate_response is...
I can easily declare: ``` class example(BaseModel): file: flask_openapi3.FileStorage ``` that generates a file upload form within e.g. swagger. Now I'd like to declare a list of allowed mime-types, that...