Disabling coercion
You can disable coercion for a whole structure or for attributes individually using the coercion
option in the schema and attribute options, respectively. Notice that it will cause validation to fail when the passed value is not of the expected value:
Disabling for the whole structure
Disabling for specific attributes
Overwritting structure option with attribute option
If you define the coercion
option both for the structure and for an attribute, the structure one will apply for the whole schema except the specific attributes that overwrite it:
Last updated