From 00ee4a994dbd0de4daea26d39c88686aa36cd48a Mon Sep 17 00:00:00 2001 From: Luuk Hendriks Date: Wed, 23 Oct 2024 15:57:52 +0200 Subject: [PATCH] camelCase path attributes when serializing --- src/bgp/path_attributes.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/bgp/path_attributes.rs b/src/bgp/path_attributes.rs index f1520ea..08ea77f 100644 --- a/src/bgp/path_attributes.rs +++ b/src/bgp/path_attributes.rs @@ -385,6 +385,7 @@ macro_rules! path_attributes { #[derive(Clone, Debug, Eq, Hash, PartialEq)] #[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))] #[cfg_attr(feature = "serde", derive(serde::Serialize))] + #[cfg_attr(feature = "serde", serde(rename_all = "camelCase"))] pub enum PathAttribute { $( $name($data) ),+, Unimplemented(UnimplementedPathAttribute),