Skip to content

Commit

Permalink
use top level json path for jwt_vp_json
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Tate <[email protected]>
  • Loading branch information
Ryanmtate committed Aug 20, 2024
1 parent 4a0217b commit 9997486
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/e2e.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ async fn w3c_vc_did_client_direct_post() {
// Starts at the top level path of the verifiable submission, which contains a `vp` key
// for verifiable presentations, which include the verifiable credentials under the `verifiableCredentials`
// field.
"$.vp".into(),
"$".into(),
)
.set_path_nested(DescriptorMap::new(
// Descriptor map id must be the same as the parent descriptor map id.
Expand All @@ -121,7 +121,7 @@ async fn w3c_vc_did_client_direct_post() {
// The nested path is relative to the `vp` key.
//
// See: https://identity.foundation/presentation-exchange/spec/v2.0.0/#processing-of-submission-entries
"$.verifiableCredential[0]".into(),
"$.vp.verifiableCredential[0]".into(),
))
})
.collect();
Expand Down

0 comments on commit 9997486

Please sign in to comment.