fn schema_validator(schema: &Value) -> Validator
Helper function to create a JSON validator from a JSON schema. If the schema is invalid, a default JSON validator is created.