diff --git a/codes-iso-639/templates/part_1._rs b/codes-iso-639/templates/part_1._rs index 4cb2b8c..6f69605 100644 --- a/codes-iso-639/templates/part_1._rs +++ b/codes-iso-639/templates/part_1._rs @@ -28,7 +28,7 @@ pub const ISO_639_1: Standard = Standard::new_with_long_ref( /// 639-1 identifier. /// #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)] -#[cfg_attr(feature = "serde", derive(Deserialize, Serialize))] +#[cfg_attr(feature = "serde", derive(Deserialize, Serialize), serde(rename_all = "lowercase"))] pub enum {{ type_name }} {{ "{" }}{% for id in all_ids %} /// {{ codes[id].label }} {{ id | capitalize }},{% endfor %}