-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ToCamelCase extension works wrong for ending Id #1480
Comments
This is a big problem for me, too. Now I have to add I propose to add the following tests to the
and fixing |
ive hit something similar to this too ... pre 106.11.2 (working ToCamelCase in a strategy) post 106.11.2+ (broken ToCamelCase, all properties are lowercase now) doing as @deburau suggests and adding a DeserializeAs attribute everywhere is not feasible .. Looking at the code changes for the StringExtensions, and i believe this is where the logic changed that is causing this issue.. I.e. it is now doing a ToLower aggressively, where as before (on the left) it was only doing it if the "rest of the word was uppercase" |
fix #1480 - ToCamelCase broken for a single word with multiple upperc…
Expected Behavior
"AgreementId".ToCamelCase(CultureInfo.InvariantCulture).Should().Be("agreementId");
Actual Behavior
in 106.10.1 that works as expected
in 106.11.4 that returns "agreementid", so CamelCaseJsonSerializerStrategy works incorrectly
The text was updated successfully, but these errors were encountered: