package conformist
Module Conformist.FieldSource
A field of type ('meta, 'a) t represents the static type 'a and it can hold arbitrary meta data of type 'meta. That meta data can be used to build functionality on top of conformist.
meta field returns an optional meta data of a field. This can be used to store arbitrary meta data in each field. Note that the type of the meta data has to be the same for all fields.
name field returns the name of the field, which uniquely identifies the field within one schema.
validate field values decodes values and runs the field's validation logic on the decoded values. Both decoding and validation might fail, which results in an error string.
optional field returns true if the field is optional and false otherwise.
is_optional field returns true if the field is optional and false otherwise.
type_ field returns a string representation of the type of field.