-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot use @extend_schema_serializer(component_name="...")
with djangorestframework-dataclasses
#1004
Comments
not quite sure what happened here, since this was supposed to be fixed by #839 I believe |
@tfranzel Thanks for confirming that I was at least using this as intended (I wasn't 100% sure). |
the tests cover 2 approaches. one with decorating on the actual serializer was somehow not covered in the tests. not sure if we had a reason for that. I have to contemplate this, since it was a while ago. |
@tfranzel Thanks for sharing that Maybe there would be some way in the docs to also mention that this decorator works on |
Closed the gap. I think this just simply got overlooked due to the mainly inline usage of |
@tfranzel I tested the latest Thanks! This issue can be closed. |
perfect. will probably release in the upcoming days after I looked into another issue. |
Describe the bug
The
component_name
argument to@extend_schema_serializer
does not work onDatclassSerializer
s fromdjangorestframework-dataclasses
.To Reproduce
Expected behavior
I would expect the generated component name to be
Truck
but it is stillCar
.Environment
The text was updated successfully, but these errors were encountered: