Skip to content

fix(dart): avoid inherited Object member names - #3439

Open
schani wants to merge 2 commits into
masterfrom
fix/dart-object-member-names
Open

fix(dart): avoid inherited Object member names#3439
schani wants to merge 2 commits into
masterfrom
fix/dart-object-member-names

Conversation

@schani

@schani schani commented Sep 5, 2026

Copy link
Copy Markdown
Member

JSON properties named hashCode, runtimeType, toString, or noSuchMethod can generate invalid overrides of Dart's Object members. Reserve those property names and add a Dart-specific schema fixture covering the conflicts.

Validation: fixture compilation fails before the fix; all 57 QUICKTEST Dart JSON fixtures pass afterward. The scoped schema fixture passes both valid and invalid cases. Production change: 4 added lines, 1 deleted line.

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

Generated-output differences

37 files differ — 0 modified, 37 new, 0 deleted
2822 changed lines — +2822 / −0

Open the generated-output report →

@github-actions

github-actions Bot commented Sep 5, 2026

Copy link
Copy Markdown

Generated-output differences

36 files differ — 35 modified, 1 new, 0 deleted
4867 changed lines — +4299 / −568

Open the generated-output report →

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