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
It’s surprising when Message.new(array: []).to_json_hash gets encoded to {}.
A decoded proto Message will still respond to the array field, supplying the default value. A JSON response however, will fail to do so. This seems inconsistent. Happy to submit a PR for this!
The text was updated successfully, but these errors were encountered:
It’s surprising when
Message.new(array: []).to_json_hash
gets encoded to{}
.A decoded proto Message will still respond to the
array
field, supplying the default value. A JSON response however, will fail to do so. This seems inconsistent. Happy to submit a PR for this!The text was updated successfully, but these errors were encountered: