Expand description
Module for checking that entities conform with a schema
Modules§
- This module cotnains errors around entities not conforming to schemas
Structs§
- Struct used to check whether entities conform to a schema
Enums§
- Errors returned by
typecheck_value_against_schematype()
andtypecheck_restricted_expr_against_schematype()
Functions§
- Check whether the given
RestrictedExpr
is a valid instance ofSchemaType
. We do not have type information for unknowns, so this function liberally treats unknowns as implementing any schema type. If the typecheck passes, returnOk(())
. If the typecheck fails, return an appropriateErr
. - Check whether the given
PartialValue
typechecks with the givenSchemaType
. If the typecheck passes, returnOk(())
. If the typecheck fails, return an appropriateErr
.