Ge0rg3 / flask-parameter-validation

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

AttributeError raised when trying to get attribute from Delivery Type that wasn't provided to Request #18

Closed d3-steichman closed 1 year ago

d3-steichman commented 1 year ago

https://github.com/Ge0rg3/flask-parameter-validation/blob/d6d96817eb7d84eb960eefc5cf14f532c26c0af7/flask_parameter_validation/parameter_validation.py#L83

Error is thrown on call to .get() on Line 83 if Json() is expected (Optional[] or not) and no JSON body is provided when the request is hit through Flask

Ge0rg3 commented 1 year ago

Should be resolved, please retest if possible 👍

d3-steichman commented 1 year ago

Didn't get a chance to test today, will let you know the verdict by EOD Eastern Time on Thursday, thanks!

smt5541 commented 1 year ago

Sorry for the delay, this is resolved in latest version 😄

Ge0rg3 commented 1 year ago

Great, thanks!