Skip to content

Commit f903563

Browse files
update: bump schemars from 0.8.22 to 1.0.4 (#1247)
* update: bump schemars from 0.8.22 to 1.0.4 --- updated-dependencies: - dependency-name: schemars dependency-version: 1.0.4 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * fix: change RootSchema to Schema --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: ok-nick <[email protected]>
1 parent 4627d32 commit f903563

File tree

4 files changed

+9
-20
lines changed

4 files changed

+9
-20
lines changed

Cargo.lock

Lines changed: 5 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

export_schema/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test)'] }
1313
[dependencies]
1414
anyhow = "1.0.40"
1515
c2pa = { path = "../sdk", features = ["json_schema"], default-features = false }
16-
schemars = "0.8.21"
16+
schemars = "1.0.4"
1717
serde_json = "1.0.117"

export_schema/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ use std::{fs, path::Path};
22

33
use anyhow::Result;
44
use c2pa::{settings::Settings, Builder, ManifestDefinition, Reader};
5-
use schemars::{schema::RootSchema, schema_for};
5+
use schemars::{schema_for, Schema};
66

7-
fn write_schema(schema: &RootSchema, name: &str) {
7+
fn write_schema(schema: &Schema, name: &str) {
88
println!("Exporting JSON schema for {name}");
99
let output = serde_json::to_string_pretty(schema).expect("Failed to serialize schema");
1010
let output_dir = Path::new("./target/schema");

sdk/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ rasn-pkix = "0.26.0"
153153
regex = "1.11"
154154
riff = "2.0.0"
155155
rsa = { version = "0.9.7", features = ["pem", "sha2", "std"], optional = true }
156-
schemars = { version = "0.8.21", optional = true }
156+
schemars = { version = "1.0.4", optional = true }
157157
serde = { version = "1.0.225", features = ["derive"] }
158158
serde_bytes = "0.11.14"
159159
serde_cbor = "0.11.1"

0 commit comments

Comments
 (0)