Skip to content

fix(csharp): count System.Text.Json string bounds in code points - #3450

Merged
schani merged 14 commits into
masterfrom
fix/system-text-json-unicode-length
Sep 5, 2026
Merged

fix(csharp): count System.Text.Json string bounds in code points#3450
schani merged 14 commits into
masterfrom
fix/system-text-json-unicode-length

Conversation

@schani

@schani schani commented Sep 5, 2026

Copy link
Copy Markdown
Member

System.Text.Json string bounds counted UTF-16 units, rejecting valid supplementary characters and accepting strings that were too short. Count Unicode code points only where length checks are emitted, without adding imports or warning pragmas.

Uses the shared Unicode fixtures from #3449. Split from #3446 to keep each renderer fix within 15 production lines; this fix changes 9.

Validation: build and Biome; four schema fixtures (19 positive/negative samples); unchanged output for combinations1 and pokedex. Local fixture runs used .NET 10 with DOTNET_ROLL_FORWARD=Major for the .NET 8 target.

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

Generated-output differences

6 files differ — 5 modified, 1 new, 0 deleted
298 changed lines — +278 / −20

Open the generated-output report →

Base automatically changed from enable-dart-swift-ts-tests to master September 5, 2026 18:10
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

Generated-output differences

6 files differ — 5 modified, 1 new, 0 deleted
298 changed lines — +278 / −20

Open the generated-output report →

@schani
schani merged commit 732f5de into master Sep 5, 2026
35 checks passed
@schani
schani deleted the fix/system-text-json-unicode-length branch September 5, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant