Skip to content

Commit 99c7ff9

Browse files
committed
Update readme and version
1 parent f64236d commit 99c7ff9

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/python-publish.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ name: Upload Python Package
1010

1111
on:
1212
release:
13-
types: [published]
14-
push:
15-
branches: [ master ]
13+
types: [ published ]
1614

1715
jobs:
1816
deploy:

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ These validators are passed into the classes in the route function, such as:
9595
* `profile_picture: werkzeug.datastructures.FileStorage = File(content_types=["image/png", "image/jpeg"])`
9696
* `filter: str = Query()`
9797

98+
Note: For `typing.List` Query inputs, users can pass via either `value=1&value=2&value=3`, or `value=1,2,3`. Both will be transformed to a list.
99+
98100
### Overwriting default errors
99101
By default, the error messages are returned as a JSON response, with the detailed error in the "error" field. However, this can be edited by passing a custom error function into the ValidateParameters decorator. For example:
100102
```py
@@ -222,7 +224,8 @@ This method returns an object with the following structure:
222224
## Contributions
223225
Many thanks to all those who have made contributions to the project:
224226
* [d3-steichman](https://github.com/d3-steichman): API documentation, custom error handling, datetime validation and bug fixes
227+
* [summersz](https://github.com/summersz): Parameter aliases, async support, form type conversion and list bug fixes
225228
* [Garcel](https://github.com/Garcel): Allow passing custom validator function
226229
* [iml1111](https://github.com/iml1111): Implement regex validation
227230
* [borisowww](https://github.com/borisowww): Fix file handling bugs
228-
* [Charlie-Mindified](https://github.com/Charlie-Mindified): Fix JSON handling bug
231+
* [Charlie-Mindified](https://github.com/Charlie-Mindified): Fix JSON handling bug

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
setup(
1313
name='Flask-Parameter-Validation',
14-
version='2.1.9',
14+
version='2.2.0',
1515
url='https://github.com/Ge0rg3/flask-parameter-validation',
1616
license='MIT',
1717
author='George Omnet',

0 commit comments

Comments
 (0)