Skip to content

Switching underscore for dashes #7

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions