cedar_policy::ffi

Function check_parse_schema_json_str

Source
pub fn check_parse_schema_json_str(json: &str) -> Result<String, Error>
Expand description

Check whether a schema successfully parses. Input and output are strings containing serialized JSON, in the shapes expected by check_parse_schema_json().

ยงErrors

Will return Err if the input cannot be converted to valid JSON or deserialized as a Schema.