Define a schema to encode / decode convert type T to type E.
Decodes the encoded data using the schema.
Encodes the value using the schema.
Optional validator that can be used to enforce constraints on the data before encoding / after decoding.
Define a schema to encode / decode convert type T to type E.