fix(dart): count Unicode code points in string bounds - #3442
Merged
schani merged 4 commits intoSep 5, 2026
Conversation
Generated-output differences6 files differ — 5 modified, 1 new, 0 deleted |
Generated-output differences29 files differ — 5 modified, 21 new, 3 deleted |
… fix/dart-unicode-string-length
Generated-output differences6 files differ — 5 modified, 1 new, 0 deleted |
schani
added a commit
that referenced
this pull request
Sep 5, 2026
* test: enable Swift and TypeScript schema CI coverage * test: centralize language-specific schema discovery * test: share Unicode cases and retain existing option coverage * test: round-trip schema-generated Swift without renaming * test: check schema roundtrips in existing Swift fixture * fix(dart): count Unicode code points in string bounds (#3442) * fix(dart): count Unicode code points in string bounds * test(dart): reuse shared Unicode length fixture * fix(zod): count Unicode code points for string length (#3443) * fix(zod): count Unicode code points for string length * test(zod): use shared Unicode length cases * fix(effect): count Unicode code points for string length (#3444) * fix(effect): count Unicode code points for string length * test(effect): use shared Unicode length cases * fix(javascript): count Unicode code points for string length (#3445) * fix(javascript): count Unicode code points for string length * test(javascript): use shared Unicode length cases
schani
added a commit
that referenced
this pull request
Sep 5, 2026
* test: enable Swift and TypeScript schema CI coverage * test: centralize language-specific schema discovery * test: share Unicode cases and retain existing option coverage * test: round-trip schema-generated Swift without renaming * test: check schema roundtrips in existing Swift fixture * fix(dart): count Unicode code points in string bounds (#3442) * fix(dart): count Unicode code points in string bounds * test(dart): reuse shared Unicode length fixture * fix(zod): count Unicode code points for string length (#3443) * fix(zod): count Unicode code points for string length * test(zod): use shared Unicode length cases * fix(effect): count Unicode code points for string length (#3444) * fix(effect): count Unicode code points for string length * test(effect): use shared Unicode length cases * fix(javascript): count Unicode code points for string length (#3445) * fix(javascript): count Unicode code points for string length * test(javascript): use shared Unicode length cases * fix(csharp): count System.Text.Json string bounds in code points
schani
added a commit
that referenced
this pull request
Sep 5, 2026
* fix(csharp): count Unicode code points in string bounds * test: enable Swift and TypeScript schema CI coverage * test: centralize language-specific schema discovery * test: share Unicode cases and retain existing option coverage * test: use shared Unicode length inputs * test: round-trip schema-generated Swift without renaming * test: check schema roundtrips in existing Swift fixture * fix(dart): count Unicode code points in string bounds (#3442) * fix(dart): count Unicode code points in string bounds * test(dart): reuse shared Unicode length fixture * fix(zod): count Unicode code points for string length (#3443) * fix(zod): count Unicode code points for string length * test(zod): use shared Unicode length cases * fix(effect): count Unicode code points for string length (#3444) * fix(effect): count Unicode code points for string length * test(effect): use shared Unicode length cases * fix(javascript): count Unicode code points for string length (#3445) * fix(javascript): count Unicode code points for string length * test(javascript): use shared Unicode length cases * fix(csharp): scope Unicode length output to constraint checks * fix(csharp): keep Unicode bound changes specific to Newtonsoft
schani
added a commit
that referenced
this pull request
Sep 5, 2026
* fix(effect): preserve optional class properties * test: enable Swift and TypeScript schema CI coverage * test: centralize language-specific schema discovery * test: share Unicode cases and retain existing option coverage * test(effect): reject null for optional non-null properties * test: round-trip schema-generated Swift without renaming * test: check schema roundtrips in existing Swift fixture * fix(dart): count Unicode code points in string bounds (#3442) * fix(dart): count Unicode code points in string bounds * test(dart): reuse shared Unicode length fixture * fix(zod): count Unicode code points for string length (#3443) * fix(zod): count Unicode code points for string length * test(zod): use shared Unicode length cases * fix(effect): count Unicode code points for string length (#3444) * fix(effect): count Unicode code points for string length * test(effect): use shared Unicode length cases * fix(javascript): count Unicode code points for string length (#3445) * fix(javascript): count Unicode code points for string length * test(javascript): use shared Unicode length cases * test: share optional-property regression across languages * test: skip confirmed optional-null failures * test: skip confirmed Haskell optional-null failure
schani
added a commit
that referenced
this pull request
Sep 5, 2026
* fix(dart): avoid inherited Object member names * test: enable Swift and TypeScript schema CI coverage * test(dart): scope Object member fixture to Dart * test: centralize language-specific schema discovery * test: share Unicode cases and retain existing option coverage * test: round-trip schema-generated Swift without renaming * test: check schema roundtrips in existing Swift fixture * fix(dart): count Unicode code points in string bounds (#3442) * fix(dart): count Unicode code points in string bounds * test(dart): reuse shared Unicode length fixture * fix(zod): count Unicode code points for string length (#3443) * fix(zod): count Unicode code points for string length * test(zod): use shared Unicode length cases * fix(effect): count Unicode code points for string length (#3444) * fix(effect): count Unicode code points for string length * test(effect): use shared Unicode length cases * fix(javascript): count Unicode code points for string length (#3445) * fix(javascript): count Unicode code points for string length * test(javascript): use shared Unicode length cases * fix: share Object-member keyword coverage across languages * fix(csharp): reserve ToString for record names
schani
added a commit
that referenced
this pull request
Sep 5, 2026
* fix(dart): reserve runtime type names * test(dart): scope runtime name regressions to Dart * test: enable Swift and TypeScript schema CI coverage * test: centralize language-specific schema discovery * test: share Unicode cases and retain existing option coverage * test: round-trip schema-generated Swift without renaming * test: check schema roundtrips in existing Swift fixture * fix(dart): count Unicode code points in string bounds (#3442) * fix(dart): count Unicode code points in string bounds * test(dart): reuse shared Unicode length fixture * fix(zod): count Unicode code points for string length (#3443) * fix(zod): count Unicode code points for string length * test(zod): use shared Unicode length cases * fix(effect): count Unicode code points for string length (#3444) * fix(effect): count Unicode code points for string length * test(effect): use shared Unicode length cases * fix(javascript): count Unicode code points for string length (#3445) * fix(javascript): count Unicode code points for string length * test(javascript): use shared Unicode length cases * Cover Dart runtime names in shared keyword input * Reserve runtime type names in Ruby and Flow
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.
Dart string bounds counted UTF-16 code units, rejecting valid supplementary characters. Count Unicode code points with
runes.lengthso JSON Schema minLength/maxLength apply correctly.Registers the shared regression input from #3449 for Dart, covering astral characters, combining marks, both bounds, and pattern composition. All seven positive/negative samples pass; the original 86-case schema-dart run also passed. Production change: 2 added lines, 2 deleted lines.