From d301d5fab9ead0e087a892a2cf2a8e7a13b1f07c Mon Sep 17 00:00:00 2001 From: Alex Groleau Date: Tue, 30 Sep 2025 20:44:17 -0400 Subject: [PATCH] types at root not strict --- src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }