@extend_schema_serializer
not isolated properly.
#585
Labels
bug
Something isn't working
fix confirmation pending
issue has been fixed and confirmation from issue reporter is pending
Hi @tfranzel. This is an extension of the issue in #218 / #554.
Describe the bug
Using
@extend_schema_serializer
on a class and its subclass causes the subclass to overwrite configuration in the parent. It is likely that this affects all code usingset_override()
, so also@extend_schema_field
also.To Reproduce
Expected behavior
It seems that
set_override()
should check to ensure that_spectacular_annotation
is cloned to the current class.The text was updated successfully, but these errors were encountered: