Skip to content

Commit

Permalink
Update path serialization for requested field object
Browse files Browse the repository at this point in the history
Signed-off-by: Tiago Nascimento <[email protected]>
  • Loading branch information
theosirian committed Jan 17, 2025
1 parent 4db4d1a commit 1f0631a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 2 additions & 8 deletions src/core/input_descriptor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -540,13 +540,7 @@ impl ConstraintsField {
RequestedField {
id: uuid::Uuid::new_v4(),
name: self.name.clone(),
// TODO: Figure out path
path: self
.path
.clone()
.into_iter()
.map(|e| format!("{}|", e.to_string()))
.collect(),
path: self.path.iter().map(|j| j.to_string()).collect(),
required: self.is_required(),
retained: self.intent_to_retain,
purpose: self.purpose.clone(),
Expand Down Expand Up @@ -673,7 +667,7 @@ pub struct RequestedField<'a> {
// The name property is optional, since it is also
// optional on the constraint field.
pub name: Option<String>,
pub path: String,
pub path: Vec<String>,
pub required: bool,
pub retained: bool,
pub purpose: Option<String>,
Expand Down
2 changes: 0 additions & 2 deletions src/wallet.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
use std::collections::HashMap;

use anyhow::{bail, Context, Result};
use async_trait::async_trait;
use http::header::CONTENT_TYPE;
Expand Down

0 comments on commit 1f0631a

Please sign in to comment.