Netflix / fast_jsonapi

No Longer Maintained - A lightning fast JSON:API serializer for Ruby Objects.
Apache License 2.0
5.07k stars 425 forks source link

Using fields option doesn't return attributes that contain underscore #436

Open shaul75 opened 5 years ago

shaul75 commented 5 years ago

When using fields: { movie: [:name_with_underscore] } - the attribute will not be returned.

niklilland commented 5 years ago

I've ran into this issue as well. I believe if you try fields: { movie: [:nameWithoutUnderscore] }, it should work. I haven't tested the fields array explicitly, but I have dealt with this issue when the resource name is two words (e.g. instead of movies, something like fields: { movieName: [:name] })

kapilnarula commented 4 years ago

It seems Netflix has abandoned this project. The community created a new fork to continue supporting this project. Please refer https://github.com/fast-jsonapi/fast_jsonapi