flask-pydantic
flask-pydantic copied to clipboard
fix: exclude context from pydantic errors #22
Resolves https://github.com/bauerji/flask-pydantic/issues/86
- Adds
include_error_url
,include_error_context
,include_error_input
tovalidate(...)
method; the parameters are propagated to pydantic'serrors()
method. Providing flexibility in terms of using these values that might break serialization. - Adds type hints to account for typed error details dict