cat_gateway::db::event::config::key

Function schema_validator

source
fn schema_validator(schema: &Value) -> Validator
Expand description

Helper function to create a JSON validator from a JSON schema. If the schema is invalid, a default JSON validator is created.