-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Ability to access the direction and auto_schema in MarshmallowSerializerExtension.get_name method #392
Comments
the fix should be easy. problem is that this breaks everybody using the |
@tfranzel thank you! for now, as a workaround, I implemented a custom |
awesome! i'll leave this open to gather some support from other users. if this becomes a more common pain point we can look at it again. in the meantime i should add |
1. Allows get_name with full parameters without breaking legacy code. 2. enable calling ``auto_schema.resolve_serializer`` with ``bypass_extensions=True`` to allow offloading component creation
so I just hit this problem without a proper way to achieve the goal. Even got a new feature on top of that. When this is merged, your custom |
Cool! I liked how you did the backward compatibility (by Checking the method signature), and I think the changes are safe (the changes should only affect the users with custom I think I can easily update my implementation to use the new signature of the Thank you! |
is it possible to get the
direction
andauto_schema
(or at least the ViewSet class) in MarshmallowSerializerExtensionget_name
methods?I need the direction and some properties from ViewSet class to generate the name correctly. (and in some cases to solve the naming conflict issue)
The text was updated successfully, but these errors were encountered: