Undetectable Spectacular error on CloneDataset operation ID override
Starting the backend results in the following error in the logs:
Error #0: using @extend_schema on viewset class DatasetClone with parameters operation_id or operation will most likely result in a broken schema.
Spectacular seems to really not like using @extend_schema(operation_id=…)
even when there is only one operation on this endpoint. DatasetClone
should use extend_schema_view
instead.
This is a repeat of #996 (closed). I had filed an upstream bug to catch this specific error within unit tests or with manage.py check
, and we might get it once we take the time to upgrade Django, DRF and Spectacular all at once. Until then, this remains hidden somewhere in the logs.
I updated the best practices to add a reminder.