You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Through the discussion in #897 it occurred to me that we are not handling reversion of formatting field names very consistently.
In the parser (here and here) it correctly only reverses formatting of the field name when formatting actually has been configured. If not it just keeps the name as their are.
This should actually be always the case whenever we reverse formatting of field name as otherwise someone cannot name their serializer field names as they want but always need to use underscored naming or the format feature.
After a quick analysis I have found this, this, this, this and this code lines which needs to be looked at.
I guess best is to create another utility method which reverses the formatting only if the format setting has been configured.
The text was updated successfully, but these errors were encountered:
Through the discussion in #897 it occurred to me that we are not handling reversion of formatting field names very consistently.
In the parser (here and here) it correctly only reverses formatting of the field name when formatting actually has been configured. If not it just keeps the name as their are.
This should actually be always the case whenever we reverse formatting of field name as otherwise someone cannot name their serializer field names as they want but always need to use underscored naming or the format feature.
After a quick analysis I have found this, this, this, this and this code lines which needs to be looked at.
I guess best is to create another utility method which reverses the formatting only if the format setting has been configured.
The text was updated successfully, but these errors were encountered: