From 80f21611bb860d6294b5ee7475f4523a9e999e20 Mon Sep 17 00:00:00 2001 From: Kendall Weihe Date: Sat, 21 Sep 2024 13:01:05 -0400 Subject: [PATCH] Fix presentation definition casing bug --- .../web5/src/credentials/presentation_definition.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/web5/src/credentials/presentation_definition.rs b/crates/web5/src/credentials/presentation_definition.rs index f5574713..20872960 100644 --- a/crates/web5/src/credentials/presentation_definition.rs +++ b/crates/web5/src/credentials/presentation_definition.rs @@ -30,9 +30,9 @@ pub struct PresentationDefinition { #[serde(skip_serializing_if = "Option::is_none")] pub purpose: Option, - #[serde(rename = "inputDescriptors")] + #[serde(rename = "input_descriptors")] pub input_descriptors: Vec, - #[serde(rename = "submissionRequirements")] + #[serde(rename = "submission_requirements")] pub submission_requirements: Option>, } @@ -101,7 +101,7 @@ pub struct SubmissionRequirement { pub rule: SubmissionRequirementRule, #[serde(skip_serializing_if = "Option::is_none")] pub from: Option, - #[serde(skip_serializing_if = "Option::is_none", rename = "fromNested")] + #[serde(skip_serializing_if = "Option::is_none", rename = "from_nested")] pub from_nested: Option>, #[serde(skip_serializing_if = "Option::is_none")] pub name: Option, @@ -127,10 +127,10 @@ pub enum SubmissionRequirementRule { pub struct PresentationSubmission { pub id: String, - #[serde(rename = "definitionId")] + #[serde(rename = "definition_id")] pub definition_id: String, - #[serde(rename = "descriptorMap")] + #[serde(rename = "descriptor_map")] pub descriptor_map: Vec, } @@ -141,7 +141,7 @@ pub struct InputDescriptorMapping { pub format: String, pub path: String, - #[serde(rename = "pathNested")] + #[serde(rename = "path_nested")] pub path_nested: Option>, }