pub fn build_validator(
schema: &Schema,
spec: &OpenAPI,
) -> Result<Validator, String>Expand description
Build a jsonschema::Validator for schema that can resolve
$ref pointers against the full spec. Returns a String
error so callers don’t have to thread jsonschema::ValidationError
lifetimes through their result types.