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
Rather than just writing examples that show JSON which completely matches the expected internal types of the closed system, also write types that show separate interfaces for the internal type, and the expected system input ("Is this data sufficient to pass to a constructor for my type?").
On top of that, show how if you receive superset god-objects, with all members nullable, you should validate against algebraic types which are the expected potential unions that could have been derived from that god object. "Is the input blob sufficient to make an A? Make an A. Is it sufficient to make a B? Make a B."
The text was updated successfully, but these errors were encountered:
Rather than just writing examples that show JSON which completely matches the expected internal types of the closed system, also write types that show separate interfaces for the internal type, and the expected system input ("Is this data sufficient to pass to a constructor for my type?").
On top of that, show how if you receive superset god-objects, with all members nullable, you should validate against algebraic types which are the expected potential unions that could have been derived from that god object. "Is the input blob sufficient to make an A? Make an A. Is it sufficient to make a B? Make a B."
The text was updated successfully, but these errors were encountered: