Skip to content

fix(dart): count Unicode code points in string bounds - #3442

Merged
schani merged 4 commits into
enable-dart-swift-ts-testsfrom
fix/dart-unicode-string-length
Sep 5, 2026
Merged

fix(dart): count Unicode code points in string bounds#3442
schani merged 4 commits into
enable-dart-swift-ts-testsfrom
fix/dart-unicode-string-length

Conversation

@schani

@schani schani commented Sep 5, 2026

Copy link
Copy Markdown
Member

Dart string bounds counted UTF-16 code units, rejecting valid supplementary characters. Count Unicode code points with runes.length so 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.

@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
57 changed lines — +45 / −12

Open the generated-output report →

@schani
schani changed the base branch from master to enable-dart-swift-ts-tests September 5, 2026 16:46
@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

Generated-output differences

29 files differ — 5 modified, 21 new, 3 deleted
40306 changed lines — +39810 / −496

Open the generated-output report →

@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
57 changed lines — +45 / −12

Open the generated-output report →

@schani
schani merged commit 66739af into enable-dart-swift-ts-tests Sep 5, 2026
35 checks passed
@schani
schani deleted the fix/dart-unicode-string-length branch September 5, 2026 17:45
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
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