Releases: Ge0rg3/flask-parameter-validation
Releases · Ge0rg3/flask-parameter-validation
Flask-Parameter-Validation v2.4.0
What's Changed
- Fix Async View Handling by @maxrimlinger in #41
- Update and reorganize README by @smt5541 in #45
- Add template for new Pull Request by @smt5541 in #47
- Add MultiSource Parameter Type by @smt5541 in #49
- Add support for standard list type hints by @smt5541 in #50
- Implement Enum Validation by @smt5541 in #46
New Contributors
- @maxrimlinger made their first contribution in #41
Full Changelog: v2.3.0...v2.4.0
Flask-Parameter-Validation v2.3.0
Thanks all for continued project usage, and especially to the new project maintainer @smt5541 for the majority of this update 🙌
Features:
- Add parameter aliases (PR by @summersz)
- Full test suite for future changes (PR by @smt5541)
- Optional JSON schema validation for dict inputs (commit by @smt5541)
Bug fixes:
Flask-Parameter-Validation v2.2.0
Thanks all for using the library. Below are the changes since the last release.
Features:
- Allow passing functions as validators (commit by Garcel)
- Allow datetime inputs with validation (commit) (commit by d3-steichman)
- Automatic API Documentation (PR by d3-steichman)
- Allow aliased inputs (PR by summersz)
Bug fixes:
- Fix issue where non-JSON payloads would error (commit by Charlie-Mindified)
- Fix issue where file inputs would fail without length checks (PR by borisowww)
- Allow list inputs on Query, File and Form (PR by summersz)
- Fix issue where forms did not have type conversion (PR by summersz)
- Fix issue where async functions would crash (PR by summersz)
Project Rewrite
Pushing out an entire project re-write, due to #2.
It turns out that the typing library is really messy under-the-hood and changes radically from version-to-version, so this release fixes all of these issues.
Other changes include:
- Fixed min_list_length and max_list_length erroring
- Allowed typing.List within typing.Union
- Renamed min_length and max_length to min_str_length and max_str_length for clarity
- Error handling is now done handled very differently - the user has more control over the error message by looking at the exception args