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
Raise ArgumentError "Cannot infer root key from collection type. Please specify the root or each_serializer option, or render a JSON String" when collection is empty array in >= 10.0.7
#2406
Closed
tashirosota opened this issue
Jan 23, 2021
· 0 comments
In PR #2214, @mvz said「I'm getting this error on a line that does have :each_serializer specified 😞」. Me too.
The text was updated successfully, but these errors were encountered:
tashirosota
changed the title
Raise ArgumentError "Cannot infer root key from collection type. Please specify the root or each_serializer option, or render a JSON String" when collection is empty array in over version 10.0.7
Raise ArgumentError "Cannot infer root key from collection type. Please specify the root or each_serializer option, or render a JSON String" when collection is empty array in >= 10.0.7
Jan 23, 2021
Expected behavior vs actual behavior
10.0.6
10.0.7
Is this breaking change or bug?
Steps to reproduce
(e.g., detailed walkthrough, runnable script, example application)
Environment
ActiveModelSerializers Version (commit ref if not on tag):
>= 10.0.7
Output of
ruby -e "puts RUBY_DESCRIPTION"
: ruby2.6.6p146
&&2.5.1
OS Type & Version: alpine3.12 on docker
Integrated application and version (e.g., Rails, Grape, etc): Rails
5.2.4.4
&5.1.6
Backtrace
(e.g., provide any applicable backtraces from your application)
Additonal helpful information
(e.g., Gemfile.lock, configurations, PR containing a failing test, git bisect results)
In PR #2214, @mvz said「I'm getting this error on a line that does have :each_serializer specified 😞」. Me too.
The text was updated successfully, but these errors were encountered: