Ge0rg3 / flask-parameter-validation

Get and validate all Flask input parameters with ease.
https://pypi.org/project/Flask-Parameter-Validation/
29 stars 12 forks source link

Allow passing a custom function as a validator #5

Closed Garcel closed 2 years ago

Garcel commented 2 years ago

I would find useful to pass a function acting as a validator to the Parameter. This way i would be able to fully customize the behavior in some cases.

That function could:

Maybe I could help with this If you want.

Ge0rg3 commented 2 years ago

Hey, thanks for the suggestion -- definitely a good idea! I'm quite busy for the next ~1.5 months but will look into implementation after, unless you want to raise a PR 😄

Garcel commented 2 years ago

Hi, sure I would be glad to help. I'll be raising a PR next week

Ge0rg3 commented 2 years ago

Closed by #6, thanks again!