From 53a6eff1eb8178be934f90d9f8f4a8ce89f5fe91 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Sat, 19 Sep 2020 23:59:38 +0200 Subject: [PATCH] Fix the new order request --- acmed/src/acme_proto/structs/order.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acmed/src/acme_proto/structs/order.rs b/acmed/src/acme_proto/structs/order.rs index 5658351..cfeddef 100644 --- a/acmed/src/acme_proto/structs/order.rs +++ b/acmed/src/acme_proto/structs/order.rs @@ -6,9 +6,12 @@ use std::fmt; use std::str::FromStr; #[derive(Serialize)] +#[serde(rename_all = "camelCase")] pub struct NewOrder { pub identifiers: Vec, + #[serde(skip_serializing_if = "Option::is_none")] pub not_before: Option, + #[serde(skip_serializing_if = "Option::is_none")] pub not_after: Option, }