Skip to content

convertCase converts arrays to objects #80

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
stefanvanherwijnen opened this issue Aug 6, 2019 · 0 comments
Closed

convertCase converts arrays to objects #80

stefanvanherwijnen opened this issue Aug 6, 2019 · 0 comments

Comments

@stefanvanherwijnen
Copy link
Contributor

E.g. an attribute with the value [1,2,3,4,5] will be converted to {0: 1, 1: 2, 2: 3...}, which should not happen.

Can be fixed with an extra check for data is array:
https://github.com/stefanvanherwijnen/json-api-serializer/commit/656ad5bbbf9d071903fb71454c73b798a5bbcc93

@danivek danivek closed this as completed in 2406a54 Aug 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant