Skip to content

Commit

Permalink
fix(Documents): Use stencila-schema
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed May 20, 2021
1 parent b5bfc93 commit d379615
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
14 changes: 14 additions & 0 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 rust/Cargo.toml
Expand Up @@ -113,7 +113,7 @@ serde = { version = "1.0.126", features = ["derive", "rc"] }
serde_json = "1.0.64"
serde_with = "1.9.1"
serde_yaml = { version = "0.8.17", optional = true }
# stencila-schema = { path = "../../schema/rs" }
stencila-schema = "1.6.1"
structopt = { version = "0.3.21", optional = true }
strum = { version = "0.20", features = ["derive"] }
strum_macros = "0.20.1"
Expand Down
4 changes: 1 addition & 3 deletions rust/src/documents.rs
Expand Up @@ -13,9 +13,7 @@ use std::{
Arc, Mutex, MutexGuard,
},
};

// use stencila_schema::CreativeWorkTypes;
type CreativeWorkTypes = serde_json::Value;
use stencila_schema::CreativeWorkTypes;

#[derive(JsonSchema, Serialize)]
#[schemars(deny_unknown_fields)]
Expand Down

0 comments on commit d379615

Please sign in to comment.