Repository navigation
JsonNamingPolicyAttribute: Add missing PascalCase - #135238
Merged
Merged
Conversation
|
Azure Pipelines: Successfully started running 3 pipeline(s). 13 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
Tagging subscribers to this area: @dotnet/area-system-text-json |
eiriktsarpalis
enabled auto-merge (squash)
October 6, 2026 18:00
eiriktsarpalis
approved these changes
Oct 6, 2026
Member
|
/backport to release/11.0 |
Contributor
|
Started backporting to |
2 of 4 tasks
artl93
pushed a commit
that referenced
this pull request
Oct 7, 2026
…5325) Backport of #135238 to release/11.0 /cc @eiriktsarpalis @compujuckel ## Customer Impact - [x] Customer reported - [ ] Found internally Fixes a customer reported issue where the newly introduced `JsonNamingPolicyAttribute` did not include support for the newly introduced PascalCase naming policy. ## Regression - [ ] Yes - [x] No ## Testing Added functional tests verifying the fix. ## Risk Low. Makes a targeted and straightfoward fix adding missing functionality. Co-authored-by: compujuckel <compujuckel@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Support for Pascal Case was added in #124644.
However, JsonNamingPolicyAttribute was missed, leading to an exception when doing something like this:
After adding that line, the attribute works as expected.