You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@maxemitchell Above error is coming while deserializing given json as we can see from the trace, so you can override parsing phase which happens earlier using reader option 🍻
Hi! I'm not sure if this is a bug or if there is some way to deal with it.
Given a representable with a collection inside:
When trying to parse a Json with
collection: []
, it works!But when setting
composer: nil
, it raises an error (very difficult to understand):I tried to use
render_nil: true
, but the same problem occurred.I got this problem because Rails 4.x is replacing the
[]
value bynil
-> rails/rails#12251 (comment)Is there any option to a
collection
accept a nil value?Is this really a bug?
Thanks!
The text was updated successfully, but these errors were encountered: