- Allow raising
flask_pydantic.ValidationError
by settingFLASK_PYDANTIC_VALIDATION_ERROR_RAISE=True
- Add validation for form data
- Handle extra headers returned by route functions
- Cleanup pipelines, drop python 3.6 tests, test on MacOS images
- Support for passing parameters to
flask.Request.get_json
function viavalidate
'sget_json_params
parameter
- Add tests for Python 3.10 to pipeline
- Return
400
response when model's__root__
validation fails
- ignore return-type annotations
- recognize mime types with character encoding standard
- add support for URL path parameters parsing and validation
- do pin specific versions of required packages
- fix type annotations of decorated method
- parsing of query parameters in older versions of python 3.6
- improve README, example app
- add support for pydantic's custom root types
- add
Flask
classifier
- add support for alias feature in response models
- add possibility to specify models using keyword arguments
- add support for python version
3.6
- add proper parsing and validation of array query parameters
- add possibility to configure response status code after
ValidationError
using flask app config valueFLASK_PYDANTIC_VALIDATION_ERROR_STATUS_CODE
- return
415 - Unsupported media type
response for requests to endpoints with specified body model with other content type thanapplication/json
.
- do not try to access query or body requests parameters unless model is provided