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
Sometimes in the api response, the value of the relation field may be null, but if it is null it must be validated, why doesn't assertJsonStructure have optional subarray checks?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Sometimes in the api response, the value of the relation field may be
null
, but if it isnull
it must be validated, why doesn't assertJsonStructure have optional subarray checks?Something like this:
I have implemented this in a custom assertion, but it would be nice if it was in the default method
Beta Was this translation helpful? Give feedback.
All reactions