cedar_policy_validator::cedar_schema

Module to_json_schema

Source
Expand description

Convert a schema into the JSON format

Functionsยง

  • Convert a schema AST into the JSON representation. This will let you subsequently decode that into the Validator AST for Schemas (crate::ValidatorSchema). On success, this function returns a tuple containing: * The json_schema::Fragment * An iterator of warnings that were generated
  • Convert a Type into the JSON representation of the type.