From 4fe77c36dffdbd9645b77d99d93f065cf418f875 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Fri, 19 Nov 2021 15:42:26 +0100 Subject: [PATCH] api: traffic_control: add missing rename to 'kebab-case' otherwise the 'delete' properties need underscores (e.g. 'burst_in' instead of 'burst-in') Signed-off-by: Dominik Csapak --- src/api2/config/traffic_control.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api2/config/traffic_control.rs b/src/api2/config/traffic_control.rs index fa580a55..dec0e3b2 100644 --- a/src/api2/config/traffic_control.rs +++ b/src/api2/config/traffic_control.rs @@ -99,6 +99,7 @@ pub fn read_traffic_control( #[api()] #[derive(Serialize, Deserialize)] #[allow(non_camel_case_types)] +#[serde(rename_all = "kebab-case")] /// Deletable property name pub enum DeletableProperty { /// Delete the rate_in property.