Skip to content

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

Closed
@mroobert

Description

@mroobert

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions