Skip to content

JSON_API_FORMAT_FIELD_NAMES = "camelize" - NOT working with nested objects #796

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

Closed
mroobert opened this issue Jun 19, 2020 · 2 comments
Closed

Comments

@mroobert
Copy link

mroobert commented Jun 19, 2020

I updated Django project with this config:
Django version 2.2
django-rest-framework version 3.9.4
django-rest-framework-json-api version 2.8.0

In the base.py file, JSON_API_FORMAT_FIELD_NAMES = "camelize" and the result is:

Formatted JSON Data

{
   "data":{
      "type":"...",
      "id":"...",
      "attributes":{
         "title":"...",
         "slug":"...",
         "components":[
            {
               "type":"...",
               "id":"...",
               "component_style":"..."
            }
         ]
      }
   }
}

The component_style is not camelized...
With django-rest-framework-json-api version 2.4.0** this worked.

@sliverc
Copy link
Member

sliverc commented Jun 21, 2020

See #754 (comment)

Does this clarify your issue?

@sliverc
Copy link
Member

sliverc commented Sep 4, 2020

As there hasn't been any feedback on this issue so I assume this has been clarified. If not feel free to comment.

@sliverc sliverc closed this as completed Sep 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants