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
I think the cause is into the Sawyer::Resource implementation. Sawyer::Resouce#[] calls #method_missing and searches the key from inner fields. Ordinarily it will return nil if does not find the key.
However, :max is Enumerable module instance so it will happen that calls Enumerable#max method.
The text was updated successfully, but these errors were encountered:
Hi, I have a trouble. Please see below.
An API is expected to return following result as JSON.
A
Sawyer::Agent
instance returns result asSawyer::Resource
.However, if the API returns following result, above execution will unexpected result.
I think the cause is into the
Sawyer::Resource
implementation.Sawyer::Resouce#[]
calls#method_missing
and searches the key from inner fields. Ordinarily it will returnnil
if does not find the key.However,
:max
isEnumerable
module instance so it will happen that callsEnumerable#max
method.The text was updated successfully, but these errors were encountered: