We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1938c7c commit 4dfa882Copy full SHA for 4dfa882
src/yaml.rs
@@ -26,12 +26,12 @@ impl YamlVisitor {
26
if element.is_empty() {
27
if let Some(key) = self.paths.last() {
28
self.data
29
- .insert(key.to_uppercase(), (key.to_string(), String::new().into()));
+ .insert(key.to_uppercase(), (to_pascal_case(key), String::new().into()));
30
}
31
} else {
32
for (name, value) in element {
33
if let YamlValue::String(key) = name {
34
- self.enter_context(key.to_string());
+ self.enter_context(to_pascal_case(key));
35
self.visit_value(value);
36
self.exit_context();
37
0 commit comments