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
Describe the bug
Routes that produce JSON don't correctly handle empty collections. The resulting JSON should always have a field with an empty JSON array - but instead the field is omitted altogether. To Reproduce
See this gist
result of run is:
@987Nabil Should we change the default here? I too would expect empty collections to be represented in responses (but missing collections to be accepted in requests -- notice the duality).
Describe the bug
Routes that produce JSON don't correctly handle empty collections. The resulting JSON should always have a field with an empty JSON array - but instead the field is omitted altogether.
To Reproduce
See this gist
result of run is:
Additional context
This causes breakage in codecs when lists are not optional and are empty
The gist also shows a work-around that might shed light on a possible fix?
The text was updated successfully, but these errors were encountered: