Skip to content

Commit

Permalink
Fix PD null serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
KendallWeihe committed Sep 23, 2024
1 parent 78d865f commit 1366524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/web5/src/credentials/presentation_definition.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub struct PresentationDefinition {

#[serde(rename = "input_descriptors")]
pub input_descriptors: Vec<InputDescriptor>,
#[serde(rename = "submission_requirements")]
#[serde(rename = "submission_requirements", skip_serializing_if = "Option::is_none")]
pub submission_requirements: Option<Vec<SubmissionRequirement>>,
}

Expand Down Expand Up @@ -141,7 +141,7 @@ pub struct InputDescriptorMapping {
pub format: String,
pub path: String,

#[serde(rename = "path_nested")]
#[serde(rename = "path_nested", skip_serializing_if = "Option::is_none")]
pub path_nested: Option<Box<InputDescriptorMapping>>,
}

Expand Down

0 comments on commit 1366524

Please sign in to comment.