Structure does type coercion based on the declared schema. It's important to note that it never coerces the following scenarios:
undefined;
undefined
null when nullable option is enabled;
null
nullable
value is already of the declared type (except for arrays, we'll talk more about this soon).
Let's break the coercion into 3 categories.
Last updated 5 years ago