Skip to content

Switching underscore for dashes #7

@gklinich

Description

@gklinich

I don't understand the the reason for the 'jsonify_attribute_name' and 'dejsonify_attribute_name' function.

For example in our API we have meta data like this:

'meta': {'sp_version': '8.3', 'api': 'SP', 'api_version': '3', 'sp_build_id': 'HHHH'}

when trying to retrieve the the 'sp_version' with 'resp.meta.sp_version', None is return because the 'sp_version' attributed is jsonify to 'sp-version'.

AFAIK our meta data is valid per the jsonapi spec

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions