Skip to content
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
21 changes: 5 additions & 16 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 export_schema/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ unexpected_cfgs = { level = "warn", check-cfg = ['cfg(test)'] }
[dependencies]
anyhow = "1.0.40"
c2pa = { path = "../sdk", features = ["json_schema"], default-features = false }
schemars = "0.8.21"
schemars = "1.0.4"
serde_json = "1.0.117"
4 changes: 2 additions & 2 deletions export_schema/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ use std::{fs, path::Path};

use anyhow::Result;
use c2pa::{settings::Settings, Builder, ManifestDefinition, Reader};
use schemars::{schema::RootSchema, schema_for};
use schemars::{schema_for, Schema};

fn write_schema(schema: &RootSchema, name: &str) {
fn write_schema(schema: &Schema, name: &str) {
println!("Exporting JSON schema for {name}");
let output = serde_json::to_string_pretty(schema).expect("Failed to serialize schema");
let output_dir = Path::new("./target/schema");
Expand Down
2 changes: 1 addition & 1 deletion sdk/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ rasn-pkix = "0.26.0"
regex = "1.11"
riff = "2.0.0"
rsa = { version = "0.9.7", features = ["pem", "sha2", "std"], optional = true }
schemars = { version = "0.8.21", optional = true }
schemars = { version = "1.0.4", optional = true }
serde = { version = "1.0.225", features = ["derive"] }
serde_bytes = "0.11.14"
serde_cbor = "0.11.1"
Expand Down
Loading