Skip to content

Commit 7e1e492

Browse files
committed
fixes
1 parent 7dc6562 commit 7e1e492

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

Cargo.toml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,11 @@ keywords = ["serde", "wasm"]
1111
license = "MIT"
1212

1313
[features]
14-
json = ["json_schema"]
14+
json_schema = []
1515

1616
[dependencies]
1717
serde = "^1.0.0"
18-
19-
[dependencies.schemars]
20-
version = "0.8.8"
21-
default-features = false
22-
features = ["json_schema"]
23-
18+
schemars = { version = "0.8.11", default-features = false, cfg = "feature = \"json_schema\""}
2419

2520
[dev-dependencies]
2621
serde_derive = "^1.0.0"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ impl Ord for Value {
114114
}
115115

116116
#[cfg(feature = "json_schema")]
117-
impl JsonSchema for Value {
117+
impl schemars::JsonSchema for Value {
118118
fn schema_name() -> String {
119119
"JSON object".to_string()
120120
}

0 commit comments

Comments
 (0)