jsonapi-rb / jsonapi-renderer

Efficiently render JSON API documents.
http://jsonapi-rb.org
MIT License
27 stars 11 forks source link

Support strings or symbols for fields render option #6

Closed tappleby closed 7 years ago

tappleby commented 7 years ago

Currently only symbols can be used for both the resource type and the array of fields for the fields render option.

In the context of a web request, the request parameters are usually strings by default which means a conversion to symbols is required before they can be used.