Skip to content

Commit

Permalink
camelCase path attributes when serializing
Browse files Browse the repository at this point in the history
  • Loading branch information
DRiKE committed Oct 23, 2024
1 parent 3de424f commit 00ee4a9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bgp/path_attributes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 00ee4a9

Please sign in to comment.