Skip to content

Commit b3da4d0

Browse files
styris-amedjc
authored andcommitted
Skip serializing replaces field if None (fixes #135)
1 parent 6747c5d commit b3da4d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ impl<'de> Deserialize<'de> for Authorization {
411411
#[serde(rename_all = "camelCase")]
412412
pub struct NewOrder<'a> {
413413
/// The [`CertificateIdentifier`] of a previously issued certificate being replaced by the order
414+
#[serde(skip_serializing_if = "Option::is_none")]
414415
pub(crate) replaces: Option<CertificateIdentifier<'a>>,
415416
/// Identifiers to be included in the order
416417
identifiers: &'a [Identifier],

0 commit comments

Comments
 (0)