Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-rs): bump the minor group with 2 updates #1539

Merged
merged 3 commits into from
Oct 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ downcast-rs = "1.2.0"
enum_dispatch = "0.3.11"
html-escape = "0.2.13"
itertools = "0.13.0"
jsonschema = "0.19.1"
jsonschema = "0.21.0"
lazy_static = "1.4.0"
num-rational = "0.4.1"
paste = "1.0"
Expand All @@ -45,7 +45,7 @@ proptest = "1.4.0"
proptest-derive = "0.5.0"
regex = "1.9.5"
regex-syntax = "0.8.3"
rstest = "0.22.0"
rstest = "0.23.0"
serde = "1.0"
serde_json = "1.0.97"
serde_yaml = "0.9.19"
Expand Down
10 changes: 5 additions & 5 deletions hugr-core/src/hugr/serialize/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use crate::types::{
use crate::{type_row, OutgoingPort};

use itertools::Itertools;
use jsonschema::{Draft, JSONSchema};
use jsonschema::{Draft, Validator};
use lazy_static::lazy_static;
use portgraph::LinkView;
use portgraph::{multiportgraph::MultiPortGraph, Hierarchy, LinkMut, PortMut, UnmanagedDenseMap};
Expand All @@ -45,11 +45,11 @@ struct SerTestingLatest {

struct NamedSchema {
name: &'static str,
schema: JSONSchema,
schema: Validator,
}

impl NamedSchema {
pub fn new(name: &'static str, schema: JSONSchema) -> Self {
pub fn new(name: &'static str, schema: Validator) -> Self {
Self { name, schema }
}

Expand Down Expand Up @@ -84,9 +84,9 @@ macro_rules! include_schema {
concat!("../../../../specification/schema/", $path, "_live.json")
))
.unwrap();
JSONSchema::options()
Validator::options()
.with_draft(Draft::Draft7)
.compile(&schema_val)
.build(&schema_val)
.expect("Schema is invalid.")
});
}
Expand Down
Loading