Skip to content
Permalink
Browse files
Serialize header data although the fields are null
Remove `skip_serializing_if` serde attribute

Signed-off-by: Orhun Parmaksız <orhunparmaksiz@gmail.com>
  • Loading branch information
orhun committed Apr 20, 2022
1 parent 4ef2ff4 commit b8c4b78d357fa20f54afc4c1ddcc0cb29479e1a4
Showing 1 changed file with 2 additions and 2 deletions.
@@ -33,10 +33,10 @@ pub struct Header {
#[serde(rename = "alg")]
pub algorithm: AlgorithmType,

#[serde(rename = "kid", skip_serializing_if = "Option::is_none")]
#[serde(rename = "kid")]
pub key_id: Option<String>,

#[serde(rename = "typ", skip_serializing_if = "Option::is_none")]
#[serde(rename = "typ")]
pub type_: Option<HeaderType>,

#[serde(rename = "cty", skip_serializing_if = "Option::is_none")]

0 comments on commit b8c4b78

Please sign in to comment.