Schema
Schema representing metadata on values of type T.
The schema of a form is responsible for specifying which validations to run on it, as well as how to "manage" the form data. If a certain form contains a field of, for example, type Int, then there should be a schema of type Schema<Int> that holds the metadata required for knowing how to, for example, initialise said field and validate it.
The form manager uses schemas extensively to, amongst others, initialise data, set data, and validate data; the schema is responsible for specifying how each different type of data is initialised or set.
Inheritors
Properties
Functions
Whether a value of this schema can be assigned to a variable with the provided type.
Changes value, a value of this schema stored by the form manager into the given value intoValue, sending events about the change through eventsBus. The provided path represents the path of the value being changed within the form manager. The value must be set via setValue, even if it hasn't changed; for parent schemas, it should typically be the same instance of value, but mutated to resemble intoValue.
Destroys and removes value, a value of this schema stored by the form manager, sending events about the destruction through eventsBus. The provided path represents the path of the value being destroyed within the form manager. removeValue should always be called to remove the value.
Initialises and sets a value of this schema from a given value fromValue to be stored by the form manager, sending events about the initialisation of the value through eventsBus. The provided path represents the path of the value being initialised within the form manager. The value must be set via setValue, which should always be called.