Skip to content

Commit

Permalink
Upgrade json-ld to version 0.20
Browse files Browse the repository at this point in the history
  • Loading branch information
timothee-haudebourg committed Jul 8, 2024
1 parent 72d6ce2 commit 02b8dbe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/json-ld/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ documentation = "https://docs.rs/ssi-json-ld/"
[dependencies]
thiserror.workspace = true
async-std = { version = "1.9", features = ["attributes"] }
json-ld = { version = "0.19.2", features = ["serde"] }
json-ld = { version = "0.20", features = ["serde"] }
iref.workspace = true
static-iref.workspace = true
rdf-types.workspace = true
Expand Down
7 changes: 6 additions & 1 deletion crates/json-ld/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ mod context;
use std::{borrow::Cow, hash::Hash};

pub use context::*;
use json_ld::expansion::Action;
use json_ld::Expand;
use linked_data::{LinkedData, LinkedDataResource, LinkedDataSubject};

Expand Down Expand Up @@ -111,7 +112,11 @@ impl Expandable for CompactJsonLd {
None,
loader,
json_ld::expansion::Options {
policy: json_ld::expansion::Policy::Strict,
policy: json_ld::expansion::Policy {
invalid: Action::Reject,
allow_undefined: false,
..Default::default()
},
..Default::default()
},
(),
Expand Down

0 comments on commit 02b8dbe

Please sign in to comment.