[pbs-devel] [PATCH proxmox-backup 1/2] api: traffic_control: add missing rename to 'kebab-case'

Dominik Csapak d.csapak at proxmox.com
Fri Nov 19 15:42:26 CET 2021


otherwise the 'delete' properties need underscores
(e.g. 'burst_in' instead of 'burst-in')

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 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.
-- 
2.30.2






More information about the pbs-devel mailing list