@extend_schema_view warnings do not result in failure with --fail-on-warn #706
Labels
bug
Something isn't working
fix confirmation pending
issue has been fixed and confirmation from issue reporter is pending
Describe the bug
Warnings emitted by https://github.com/tfranzel/drf-spectacular/blob/master/drf_spectacular/utils.py#L560 do not result in failure when spectacular is run with
--fail-on-warn
:Possibly a similar root cause to #702?
To Reproduce
Use
@extend_schema_view
with a non-standard method name, such as:(Note that in our specific case the warning is a bit spurious, see nautobot/nautobot#1637 for how we are resolving the warning.)
Expected behavior
When run with
--fail-on-warn
, any warning reported should cause a failure.The text was updated successfully, but these errors were encountered: