diff --git a/Cargo.lock b/Cargo.lock index 82fff1ba..b58b3469 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -46,7 +46,7 @@ checksum = "6966317188cdfe54c58c0900a195d021294afb3ece9b7073d09e4018dbb1e3a2" dependencies = [ "cfg-if", "indexmap", - "schemars", + "schemars 0.9.0", "serde", "serde_json", "thiserror 2.0.17", @@ -716,7 +716,7 @@ dependencies = [ "redis", "reqwest", "rustversion", - "schemars", + "schemars 1.2.0", "sea-query", "sea-query-binder", "serde", @@ -1279,7 +1279,7 @@ name = "example-json" version = "0.1.0" dependencies = [ "cot", - "schemars", + "schemars 1.2.0", "serde", ] @@ -3074,7 +3074,20 @@ dependencies = [ "dyn-clone", "indexmap", "ref-cast", - "schemars_derive", + "schemars_derive 0.9.0", + "serde", + "serde_json", +] + +[[package]] +name = "schemars" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "54e910108742c57a770f492731f99be216a52fadd361b06c8fb59d74ccc267d2" +dependencies = [ + "dyn-clone", + "ref-cast", + "schemars_derive 1.2.0", "serde", "serde_json", ] @@ -3091,6 +3104,18 @@ dependencies = [ "syn", ] +[[package]] +name = "schemars_derive" +version = "1.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "4908ad288c5035a8eb12cfdf0d49270def0a268ee162b75eeee0f85d155a7c45" +dependencies = [ + "proc-macro2", + "quote", + "serde_derive_internals", + "syn", +] + [[package]] name = "scopeguard" version = "1.2.0" diff --git a/Cargo.toml b/Cargo.toml index fa089aa4..ebfd482e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -115,7 +115,7 @@ rand = { version = "0.9", default-features = false } redis = { version = "0.32", default-features = false } reqwest = { version = "0.12", default-features = false } rustversion = "1" -schemars = { version = "0.9", default-features = false } +schemars = { version = "1.2", default-features = false } sea-query = { version = "0.32", default-features = false } sea-query-binder = { version = "0.7", default-features = false } serde = "1" diff --git a/examples/json/Cargo.toml b/examples/json/Cargo.toml index 8f921cdd..813a7db0 100644 --- a/examples/json/Cargo.toml +++ b/examples/json/Cargo.toml @@ -9,4 +9,4 @@ edition = "2024" [dependencies] cot = { path = "../../cot", features = ["openapi", "swagger-ui"] } serde = "1" -schemars = "0.9" +schemars = "1.2"