You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: DeprecationWarning on validate_request, validate_response #586
In Python development mode, the following warnings are shown for the documented usage of validate_request, validate_response:
/home/anders/python/openapi-core/openapi_core/shortcuts.py:320: DeprecationWarning: validate_request is deprecated for unmarshalling data and it will not return any result in the future. Use unmarshal_request function instead.
/home/anders/python/openapi-core/openapi_core/shortcuts.py:403: DeprecationWarning: validate_response is deprecated for unmarshalling data and it will not return any result in the future. Use unmarshal_response function instead.
Expected Behavior
The documented usage should not raise a DeprecationWarning.
The warning is there to guard against deprecated uses of the return value, so either it should not be raised until the return value is used, or an explicit flag should be added that suppresses both the return value and the warning.
Activity
p1c2u commentedon Jun 12, 2023
Hi @andersk
that's fair point. I will add some flag.