Flask-parameter-validation

Latest version: v2.4.0

Safety actively analyzes 688365 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

2.4.0

What's Changed
* Fix Async View Handling by maxrimlinger in https://github.com/Ge0rg3/flask-parameter-validation/pull/41
* Update and reorganize README by smt5541 in https://github.com/Ge0rg3/flask-parameter-validation/pull/45
* Add template for new Pull Request by smt5541 in https://github.com/Ge0rg3/flask-parameter-validation/pull/47
* Add MultiSource Parameter Type by smt5541 in https://github.com/Ge0rg3/flask-parameter-validation/pull/49
* Add support for standard list type hints by smt5541 in https://github.com/Ge0rg3/flask-parameter-validation/pull/50
* Implement Enum Validation by smt5541 in https://github.com/Ge0rg3/flask-parameter-validation/pull/46

New Contributors
* maxrimlinger made their first contribution in https://github.com/Ge0rg3/flask-parameter-validation/pull/41

**Full Changelog**: https://github.com/Ge0rg3/flask-parameter-validation/compare/v2.3.0...v2.4.0

2.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](https://github.com/Ge0rg3/flask-parameter-validation/pull/34) by summersz)
* Full test suite for future changes ([PR](https://github.com/Ge0rg3/flask-parameter-validation/pull/40) by smt5541)
* Optional JSON schema validation for dict inputs ([commit](https://github.com/Ge0rg3/flask-parameter-validation/pull/40/commits/71ff42096562aadb0202f5e6ce1f4041b0f69067) by smt5541)

Bug fixes:
* Optional parameters broken after last release ([PR](https://github.com/Ge0rg3/flask-parameter-validation/pull/33) by jramseygreen)
* Response message fixes ([PR](https://github.com/Ge0rg3/flask-parameter-validation/pull/36) by kbulygin)
* File min/max length no longer broken ([commit](https://github.com/Ge0rg3/flask-parameter-validation/pull/40/commits/a71de221fa08166863f09ab98b420cbcaa0602b6) by smt5541)

2.2.0

Thanks all for using the library. Below are the changes since the last release.
Features:
* Allow passing functions as validators ([commit](https://github.com/Ge0rg3/flask-parameter-validation/commit/76e5a1156b5a2e8c6bb8a0643b3e3a8cb88ddad6) by [Garcel](https://github.com/Garcel))
* Allow datetime inputs with validation ([commit](https://github.com/Ge0rg3/flask-parameter-validation/commit/5d81f18095622d6839331db0738411a104eac951)) ([commit](https://github.com/Ge0rg3/flask-parameter-validation/commit/d304ebc55b527277e082eafaefae36b75b8a538d) by [d3-steichman](https://github.com/d3-steichman))
* Automatic API Documentation ([PR](https://github.com/Ge0rg3/flask-parameter-validation/pull/15) by [d3-steichman](https://github.com/d3-steichman))
* Allow aliased inputs ([PR](https://github.com/Ge0rg3/flask-parameter-validation/pull/26) by [summersz](https://github.com/summersz))

Bug fixes:
* Fix issue where non-JSON payloads would error ([commit](https://github.com/Ge0rg3/flask-parameter-validation/commit/0b488e0c0ab6620b82ca781c6fe9f3713a392ec1) by [Charlie-Mindified](https://github.com/Charlie-Mindified))
* Fix issue where file inputs would fail without length checks ([PR](https://github.com/Ge0rg3/flask-parameter-validation/pull/17) by [borisowww](https://github.com/borisowww))
* Allow list inputs on Query, File and Form ([PR](https://github.com/Ge0rg3/flask-parameter-validation/pull/24) by [summersz](https://github.com/summersz))
* Fix issue where forms did not have type conversion ([PR](https://github.com/Ge0rg3/flask-parameter-validation/pull/27) by [summersz](https://github.com/summersz))
* Fix issue where async functions would crash ([PR](https://github.com/Ge0rg3/flask-parameter-validation/pull/28) by [summersz](https://github.com/summersz))

2.0.0

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

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.