Case-Insensitive property match for Deserialization #946
-
Hello, I am currently hit by the fact, that the deserializer expects 1:1 casing from YAML to class in .NET. Example: ---
allowedPrefixes:
- A
- AB
- ABC
allowedSuffixes:
- XYZ In this case, where my class has PascalCase convention, it fails hard, and expect to have camelCase. I believe this should be a matter of preference. Ideally, it matches a property ignoring any casing. I have tried using WithNamingConvention but this does not help. In advance thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes. I just added it in the latest version. On your deserializerbuilder use the |
Beta Was this translation helpful? Give feedback.
Yes. I just added it in the latest version. On your deserializerbuilder use the
WithCaseInsensitivePropertyMatching
method to ignore casing.