Objects
Primitive values in JavaScript can be composed into Plain-Old-JavaScript-Objects. This can be
easily represented using the bin.object()
schema constructor function.
Simple objects
Generic objects
This feature allows for the parsing of a type that contains different fields depending on its previous values. For example, if you want to store an animal description, certain animal types might have differing features from one another.