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
Retrieving a single Partij resource with expand=digitaleAdressen only includes the _expand.digitaleAdresssen key if the number of digitaleAddressen is >0:.
Stappen om te reproduceren / Steps to reproduce
Fetch a Partij without digitaleAddressen, which yields a resource without an _expand key and with an []digitaleAdresssen key:
If I provide the expand=digitaleAdressen key, I would expect to always receive the same object shape: if there are no resources, I would simply expect an empty list. The shape should not vary depending on the object state (apart from e.g. nullability and such). Currently, the client has to build in additional guards to check for the shape.
The text was updated successfully, but these errors were encountered:
Product versie / Product version
2.2.0
Omschrijf het probleem / Describe the bug
Retrieving a single
Partij
resource withexpand=digitaleAdressen
only includes the_expand.digitaleAdresssen
key if the number ofdigitaleAddressen
is>0
:.Stappen om te reproduceren / Steps to reproduce
Partij
withoutdigitaleAddressen
, which yields a resource without an_expand
key and with an[]
digitaleAdresssen
key:digitaal adres
for this user:_expand
key is now present, as the number ofdigitaleAdressen
is now 1.Verwacht gedrag / Expected behavior
If I provide the
expand=digitaleAdressen
key, I would expect to always receive the same object shape: if there are no resources, I would simply expect an empty list. The shape should not vary depending on the object state (apart from e.g. nullability and such). Currently, the client has to build in additional guards to check for the shape.The text was updated successfully, but these errors were encountered: