Skip to content

Commit

Permalink
Merge pull request #245 from ricosjp/classcase-to-pascalcase
Browse files Browse the repository at this point in the history
Plural class names are converted as is.
  • Loading branch information
ytanimura committed Dec 12, 2023
2 parents 520dcb5 + 4c5892e commit 5411073
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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. 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
Expand Down
4 changes: 2 additions & 2 deletions ruststep/src/ast/de/parameter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())
}
}
}
Expand All @@ -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)
Expand Down

0 comments on commit 5411073

Please sign in to comment.