Skip to content

Commit

Permalink
Update Rust crate jsonschema to v0.20.0 (#5177)
Browse files Browse the repository at this point in the history
Co-authored-by: hash-worker[bot] <180894564+hash-worker[bot]@users.noreply.github.com>
Co-authored-by: Tim Diekmann <post@timdiekmann.de>
  • Loading branch information
hash-worker[bot] and TimDiekmann authored Sep 19, 2024
1 parent eead9b7 commit 065dce4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ humansize = { version = "=2.1.3", default-features = false }
hyper = { version = "=1.4.1", default-features = false }
include_dir = { version = "=0.7.4", default-features = false }
insta = { version = "=1.40.0", default-features = false }
jsonschema = { version = "=0.19.1", default-features = false }
jsonschema = { version = "=0.20.0", default-features = false }
justjson = { version = "=0.3.0", default-features = false }
lexical = { version = "=7.0.1", default-features = false }
libp2p = { version = "=0.54.1", default-features = false }
Expand Down
4 changes: 2 additions & 2 deletions libs/sarif/src/schema/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ pub(crate) mod tests {
let json_schema_str = include_str!("../../tests/schemas/sarif-2.1.0.json");
let json_schema_value =
serde_json::from_str(json_schema_str).expect("could not parse JSON schema");
let json_schema = jsonschema::JSONSchema::options()
.compile(&json_schema_value)
let json_schema = jsonschema::Validator::options()
.build(&json_schema_value)
.expect("could not compile JSON schema");

let validation = json_schema.validate(&log_value);
Expand Down

0 comments on commit 065dce4

Please sign in to comment.