Skip to content

Commit

Permalink
fmt typing
Browse files Browse the repository at this point in the history
Signed-off-by: George Mulhearn <[email protected]>
  • Loading branch information
gmulhearn-anonyome committed Dec 5, 2024
1 parent 3461fc0 commit 10695cd
Show file tree
Hide file tree
Showing 7 changed files with 41 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,11 @@ pub struct IssueCredentialV2Decorators {
pub enum IssueCredentialAttachmentFormatType {
#[serde(rename = "aries/[email protected]")]
AriesLdProofVc1_0,
#[serde(rename = "anoncreds/[email protected]")]
AnoncredsCredential2_0,
#[serde(
rename = "anoncreds/[email protected]",
alias = "anoncreds/[email protected]" // TODO - this is wrong, fix once acapy fixes
)]
AnoncredsCredential1_0,
#[serde(rename = "hlindy/[email protected]")]
HyperledgerIndyCredential2_0,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,12 @@ pub enum OfferCredentialAttachmentFormatType {
DifCredentialManifest1_0,
#[serde(rename = "hlindy/[email protected]")]
HyperledgerIndyCredentialAbstract2_0,
#[serde(rename = "anoncreds/[email protected]")]
AnoncredsCredentialAbstract2_0,
#[serde(
rename = "anoncreds/[email protected]",
alias = "anoncreds/[email protected]", // TODO - remove after acapy fix
alias = "anoncreds/[email protected]" // TODO - remove after credo-ts fix
)]
AnoncredsCredentialOffer1_0,
#[serde(rename = "aries/[email protected]")]
AriesLdProofVcDetail1_0,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,12 @@ pub enum ProposeCredentialAttachmentFormatType {
DifCredentialManifest1_0,
#[serde(rename = "aries/[email protected]")]
AriesLdProofVcDetail1_0,
#[serde(rename = "anoncreds/[email protected]")]
AnoncredCredentialFilter2_0,
#[serde(
rename = "anoncreds/[email protected]",
// TODO - this is wrong, fix once acapy fixes
alias = "anoncreds/[email protected]"
)]
AnoncredCredentialFilter1_0,
#[serde(rename = "hlindy/[email protected]")]
HyperledgerIndyCredentialFilter2_0,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,12 @@ pub enum RequestCredentialAttachmentFormatType {
DifCredentialManifest1_0,
#[serde(rename = "hlindy/[email protected]")]
HyperledgerIndyCredentialRequest2_0,
#[serde(rename = "anoncreds/[email protected]")]
AnoncredsCredentialRequest2_0,
#[serde(
rename = "anoncreds/[email protected]",
// TODO - this is wrong, fix once acapy fixes
alias = "anoncreds/[email protected]",
)]
AnoncredsCredentialRequest1_0,
#[serde(rename = "aries/[email protected]")]
AriesLdProofVcDetail1_0,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ pub struct PresentationV2Decorators {
pub enum PresentationAttachmentFormatType {
#[serde(rename = "hlindy/[email protected]")]
HyperledgerIndyProof2_0,
// TODO - FIX - wrong ver, match acapy
#[serde(rename = "anoncreds/[email protected]")]
AnoncredsProof2_0,
#[serde(
rename = "anoncreds/[email protected]",
// TODO - FIX - wrong ver, match acapy
alias = "anoncreds/[email protected]"
)]
AnoncredsProof1_0,
#[serde(rename = "dif/presentation-exchange/[email protected]")]
DifPresentationExchangeSubmission1_0,
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ pub enum ProposePresentationAttachmentFormatType {
DifPresentationExchangeDefinitions1_0,
#[serde(rename = "hlindy/[email protected]")]
HyperledgerIndyProofRequest2_0,
// TODO - FIX - wrong ver, match acapy
#[serde(rename = "anoncreds/[email protected]")]
AnoncredsProofRequest2_0,
#[serde(
rename = "anoncreds/[email protected]",
// TODO - FIX - wrong ver, match acapy
alias = "anoncreds/[email protected]"
)]
AnoncredsProofRequest1_0,
}

#[cfg(test)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,12 @@ pub struct RequestPresentationV2Decorators {
pub enum PresentationRequestAttachmentFormatType {
#[serde(rename = "hlindy/[email protected]")]
HyperledgerIndyProofRequest2_0,
// TODO - FIX - wrong ver, match acapy
#[serde(rename = "anoncreds/[email protected]")]
AnoncredsProofRequest2_0,
#[serde(
rename = "anoncreds/[email protected]",
// TODO - FIX - wrong ver, match acapy
alias = "anoncreds/[email protected]"
)]
AnoncredsProofRequest1_0,
#[serde(rename = "dif/presentation-exchange/[email protected]")]
DifPresentationExchangeDefinitions1_0,
}
Expand Down

0 comments on commit 10695cd

Please sign in to comment.