Skip to content

Commit 00ee4a9

Browse files
committed
camelCase path attributes when serializing
1 parent 3de424f commit 00ee4a9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bgp/path_attributes.rs

+1
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,7 @@ macro_rules! path_attributes {
385385
#[derive(Clone, Debug, Eq, Hash, PartialEq)]
386386
#[cfg_attr(feature = "arbitrary", derive(arbitrary::Arbitrary))]
387387
#[cfg_attr(feature = "serde", derive(serde::Serialize))]
388+
#[cfg_attr(feature = "serde", serde(rename_all = "camelCase"))]
388389
pub enum PathAttribute {
389390
$( $name($data) ),+,
390391
Unimplemented(UnimplementedPathAttribute),

0 commit comments

Comments
 (0)