Joe Woodward
Joe Woodward
I've done this... I don't particularly like polluting the I18n locales but it's working for us atm ```ruby # app/serializable/serializable_active_model_errors.rb class SerializableActiveModelError < JSONAPI::Serializable::Error title do "Invalid #{@field}" unless @field.nil?...
You don't need to use `jsonapi_pointers`. Are you using the correct mime type and have it registered? FYI `deserializable_resource :symbol` will make the deserialized params available as `params[:symbol]` I added...
I had not noticed the railtie specified the mime type. Thanks for pointing that out
Looks like this PR would benefit this issue too https://github.com/jsonapi-rb/jsonapi-rails/issues/68
Just added tests against multiple versions of Ruby and Rails. Updates what you were doing here https://github.com/jsonapi-rb/jsonapi-rails/pull/46 @beauby
@dawidof are you maintaining this now? Any verdict on whether contributions to this repo are welcome? Seems like @beauby is either busy or has lost interest.
Hey, @dawidof, @beauby! Thanks for the responses, been so long I almost forgot I wrote these PRs Just had to read my code again for a while to remember the...
Also, sorry to hear about your health problems @dawidof, hope you're recover{ed,ing} now.
I've created a PR that allows customizing the default serializer mappings in the config file. https://github.com/jsonapi-rb/jsonapi-rails/pull/92 I think it makes sense for situations like this one. i.e. STI models normally...
For now I'm monkey patching and rendering a jsonapi_error when the parsing fails. Not sure if this is the correct thing to do. The docs state that we MAY return...