Skip to content

fix(json_serializable): improve error for unmatched ctor parameters - #1586

Merged
kevmoo merged 2 commits into
masterfrom
fix-1583-ctor-param-error
Aug 3, 2026
Merged

fix(json_serializable): improve error for unmatched ctor parameters#1586
kevmoo merged 2 commits into
masterfrom
fix-1583-ctor-param-error

Conversation

@kevmoo

@kevmoo kevmoo commented Aug 3, 2026

Copy link
Copy Markdown
Collaborator
  • Append default explanation when an unavailable required constructor argument lacks a matching field or getter on the class.
  • Add test case asserting the diagnostic message when constructor parameters have no corresponding properties.

Fixes #1583

kevmoo added 2 commits August 3, 2026 00:00
- Append default explanation when an unavailable required constructor argument lacks a matching field or getter on the class.
- Add test case asserting the diagnostic message when constructor parameters have no corresponding properties.

Fixes #1583
- Suppress avoid_unused_constructor_parameters linter rule on StandaloneCtorParamClass to resolve CI analysis check on PR #1586.
@kevmoo
kevmoo requested a review from natebosch August 3, 2026 02:51
@kevmoo
kevmoo merged commit 9ccf5da into master Aug 3, 2026
24 checks passed
@kevmoo
kevmoo deleted the fix-1583-ctor-param-error branch August 3, 2026 15:52
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.

Improve error description for primary constructors not assigning parameters to fields

2 participants