Skip to content

Commit 0f4620b

Browse files
committed
json: Set fields of Reflection to kebab case
1 parent fddafe0 commit 0f4620b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/data_tree/reflection.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ use serde::{Deserialize, Serialize};
2727
/// **Serialization and deserialization:** Requires enabling the `json` feature to enable `serde`.
2828
#[derive(Debug, Clone, PartialEq, Eq)]
2929
#[cfg_attr(feature = "json", derive(Deserialize, Serialize))]
30+
#[cfg_attr(feature = "json", serde(rename_all = "kebab-case"))]
3031
pub struct Reflection<Name, Data: Size> {
3132
/// Name of the tree.
3233
pub name: Name,

0 commit comments

Comments
 (0)