From aac109a9f69b9e726d6de1eab228db3351fc2330 Mon Sep 17 00:00:00 2001 From: Yoshinori Tanimura Date: Tue, 12 Dec 2023 23:14:26 +0900 Subject: [PATCH 1/2] Plural class names are converted as is. --- CHANGELOG.md | 1 + ruststep/src/ast/de/parameter.rs | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 035845db5..88e62b649 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,6 +22,7 @@ In addition to original Keep-a-Changelog, we use following rules: - Recursive `get_owned` for select type without boxed variant. https://github.com/ricosjp/ruststep/pull/234 ### Fixed +- Plural class names are converted as is. - Fixed bug in logical_listeral parser. https://github.com/ricosjp/ruststep/pull/244 - Deseialize `Option::Some`. https://github.com/ricosjp/ruststep/pull/232 - Recursive implementation of `ruststep::tables::EntityTable::{get_owned, owned_iter}` for select types. https://github.com/ricosjp/ruststep/pull/230 diff --git a/ruststep/src/ast/de/parameter.rs b/ruststep/src/ast/de/parameter.rs index 98b1b48c9..116f014df 100644 --- a/ruststep/src/ast/de/parameter.rs +++ b/ruststep/src/ast/de/parameter.rs @@ -24,7 +24,7 @@ impl<'de, 'param> de::Deserializer<'de> for &'param Parameter { Parameter::Ref(name) => visitor.visit_enum(name), Parameter::NotProvided | Parameter::Omitted => visitor.visit_none(), Parameter::Enumeration(variant) => { - visitor.visit_enum(variant.to_class_case().into_deserializer()) + visitor.visit_enum(variant.to_pascal_case().into_deserializer()) } } } @@ -39,7 +39,7 @@ impl<'de, 'param> de::Deserializer<'de> for &'param Parameter { "TRUE" => visitor.visit_bool(true), "F" => visitor.visit_bool(false), "FALSE" => visitor.visit_bool(false), - _ => visitor.visit_enum(variant.to_class_case().into_deserializer()), + _ => visitor.visit_enum(variant.to_pascal_case().into_deserializer()), } } else { self.deserialize_any(visitor) From 4c5892e32389f165c498282e492579bb7db31067 Mon Sep 17 00:00:00 2001 From: Yoshinori Tanimura Date: Tue, 12 Dec 2023 23:19:23 +0900 Subject: [PATCH 2/2] updates CHANGELOG --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88e62b649..8658e1571 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,7 @@ In addition to original Keep-a-Changelog, we use following rules: - Recursive `get_owned` for select type without boxed variant. https://github.com/ricosjp/ruststep/pull/234 ### Fixed -- Plural class names are converted as is. +- Plural class names are converted as is. https://github.com/ricosjp/ruststep/pull/245 - Fixed bug in logical_listeral parser. https://github.com/ricosjp/ruststep/pull/244 - Deseialize `Option::Some`. https://github.com/ricosjp/ruststep/pull/232 - Recursive implementation of `ruststep::tables::EntityTable::{get_owned, owned_iter}` for select types. https://github.com/ricosjp/ruststep/pull/230