diff --git a/Cargo.toml b/Cargo.toml index fd8acd7..6bc7e4e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -120,7 +120,7 @@ semver = {version = "1.0.20", optional = true, default-features = false } wax = { version = "0.6.0", features = [], default-features = false, optional = true } url = { version = "2.5.0", optional = true } uuid = { version = "1.6.1", default-features = false, features = ["v4", "fast-rng"], optional = true } -jsonschema = { version = "0.24.0", default-features = false, optional = true } +jsonschema = { version = "0.26.1", default-features = false, optional = true } chrono = { version = "0.4.31", optional = true } chrono-tz = { version = "0.10.0", optional = true } jsonwebtoken = { version = "9.2.0", optional = true } diff --git a/src/builtins/objects.rs b/src/builtins/objects.rs index 8788df4..daf0a49 100644 --- a/src/builtins/objects.rs +++ b/src/builtins/objects.rs @@ -447,7 +447,7 @@ fn json_match_schema( Ok(_) => [Value::Bool(true), Value::Null], Err(e) => [ Value::Bool(false), - Value::from_array(e.map(|e| Value::String(e.to_string().into())).collect()), + Value::from(e.to_string()) ], }, Err(e) if strict => bail!(params[1]