<< back to sanity-clause index
The methods that govern behavior in sanity-clause.
The methods relating to fields are:
The methods relating to schemas are:
Exported symbols:
WARNING: This isn't fully tested/supported, but it might work! I reserve the right to change the API in breaking ways, though.
dump takes some data an serializes it to a plist or alist based on format, which can be set to, well, :plist or :alist.
Deserializes data into an instance of schema. Fills in default values and validates fields. If schema is :env, it will try to load from environment variables.
Tries to fetch the value corresponding to the field from some datastructure. field-name is used if no attribute is explicitly set on the field.
Run the validation checks for a given field and raise a sanity-clause.field:validation-error if it is invalid.
Converts the value retrieved from the raw data into the datatype the field expects to work with, or fails, raising a sanity-clause.field:conversion-error.
A function that encapsulates getting, corecing, and validating values for a field. Calls get-value, deserialize, and validate.