cedar_policy_core::entities

Module conformance

Source
Expand description

Module for checking that entities conform with a schema

Modules§

  • This module cotnains errors around entities not conforming to schemas

Structs§

Enums§

Functions§

  • Check whether the given RestrictedExpr is a valid instance of SchemaType. We do not have type information for unknowns, so this function liberally treats unknowns as implementing any schema type. If the typecheck passes, return Ok(()). If the typecheck fails, return an appropriate Err.
  • Check whether the given PartialValue typechecks with the given SchemaType. If the typecheck passes, return Ok(()). If the typecheck fails, return an appropriate Err.