diff --git a/src/lib.rs b/src/lib.rs index b88bfdc..2732271 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -304,7 +304,7 @@ fn validate_json_schema(schema_id: &str, instance: JsonB) -> JsonB { Some(schema) => { let instance_value: Value = instance.0; let options = match schema.t { - SchemaType::Type | SchemaType::PublicPunc => Some(ValidationOptions { be_strict: true }), + SchemaType::PublicPunc => Some(ValidationOptions { be_strict: true }), _ => None, }; @@ -394,7 +394,7 @@ fn collect_errors(error: &ValidationError, errors_list: &mut Vec) { ErrorKind::AnyOf => handle_any_of_error(&base_path), ErrorKind::OneOf(matched) => handle_one_of_error(&base_path, matched), }; - + errors_list.extend(errors_to_add); }