Skip to content

Commit

Permalink
Add missing skip_serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
KendallWeihe committed Sep 4, 2024
1 parent e484f59 commit 350bf59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/web5/src/credentials/jwt_payload_vc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub struct JwtPayloadVerifiableCredential {
deserialize_with = "deserialize_optional_system_time"
)]
pub expiration_date: Option<SystemTime>,
#[serde(rename = "credentialStatus")]
#[serde(rename = "credentialStatus", skip_serializing_if = "Option::is_none")]
pub credential_status: Option<CredentialStatus>,
#[serde(skip_serializing_if = "Option::is_none", rename = "credentialSubject")]
pub credential_subject: Option<CredentialSubject>,
Expand Down
2 changes: 1 addition & 1 deletion crates/web5/src/credentials/verifiable_credential_1_1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ pub struct VerifiableCredential {
deserialize_with = "deserialize_optional_system_time"
)]
pub expiration_date: Option<SystemTime>,
#[serde(rename = "credentialStatus")]
#[serde(rename = "credentialStatus", skip_serializing_if = "Option::is_none")]
pub credential_status: Option<CredentialStatus>,
#[serde(rename = "credentialSchema", skip_serializing_if = "Option::is_none")]
pub credential_schema: Option<CredentialSchema>,
Expand Down

0 comments on commit 350bf59

Please sign in to comment.