flask-parameter-validation icon indicating copy to clipboard operation
flask-parameter-validation copied to clipboard

Get and validate all Flask input parameters with ease.

Results 9 flask-parameter-validation issues
Sort by recently updated
recently updated
newest added

For query and form data, null values are transmitted as empty strings. I would like to suggest a method to convert these to None during the convert function of the...

bug
help wanted
good first issue

I have own custom decorator now sure how to use it along with ValidateParameters() Example code: ```python def token_required(f): @wraps(f) def decorated(*args, **kwargs): # ... return f(current_user, *args, **kwargs) return...

question

### 🛠 Changes being made #### Give examples of the changes you've made in this pull request. Include an itemized list if you can. - Add validation for `StrEnum` and...

enhancement

### 🛠 Changes being made #### Give examples of the changes you've made in this pull request. Include an itemized list if you can. - Add OpenAPI 3.1.0 [Responses object](https://swagger.io/specification/#responses-object)...

Is there a way to validate an argument to ensure that it has only a list of specific values? For example ``` func( suit = Json(hearts | clubs | spades...

enhancement

Using an Optional or Union type with the @ValidateParameters decorator works for validation purposes, but it causes a 500 error when accessing the /docs route. It looks like it may...

bug

### 🛠 Changes being made #### Give examples of the changes you've made in this pull request. Include an itemized list if you can. - Prepend UUID to the function...

I see there are parameters for min_int and max_int and expected to see similar parameters for floats, but didn't see any. Did I miss something? Is there another way to...

enhancement
good first issue

Source code for `/.../str/default`: ![image](https://github.com/user-attachments/assets/01ceb270-99b1-42a2-ab30-0c603add4451) Generated docs for `/.../str/default`: ![image](https://github.com/user-attachments/assets/a1fe77a5-0dd8-434f-aae7-5fb4ecfbeacc) Source code for `/.../date/default`: ![image](https://github.com/user-attachments/assets/8d7086e0-85aa-4bd1-93b7-7bb33e33b52f) Generated docs for `/.../date/default`: ![image](https://github.com/user-attachments/assets/c294bc34-1db8-4445-9a76-cc4253fcd4b6) I think this is likely due to the use of...