Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix staged builders for single component records #179

Merged
merged 1 commit into from
Apr 11, 2024

Conversation

Randgalt
Copy link
Owner

Fixes #177

@Randgalt Randgalt added this to the v42 milestone Apr 10, 2024
@Randgalt
Copy link
Owner Author

attn: @gabrielshanahan

@gabrielshanahan
Copy link

Thanks @Randgalt, LGTM! But I would still advocate for generating staged builders even for 0-component record classes. I know that's a slightly weird and probably rare edge-case, but the same logic as described in #177 still applies - you can add a field at any time, and then want the compiler to tell you what you need to change.

@Randgalt Randgalt force-pushed the jordanz/fix-single-field-staged branch from a14e76c to 09c7262 Compare April 11, 2024 08:30
@Randgalt
Copy link
Owner Author

@gabrielshanahan - I changed to allow no components as well. Please check.

@gabrielshanahan
Copy link

Awesome, thanks!

@Randgalt Randgalt merged commit 68c3ca4 into master Apr 11, 2024
2 checks passed
@Randgalt Randgalt deleted the jordanz/fix-single-field-staged branch April 11, 2024 11:14
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.

Staged builders are not generated for records having only a single field
2 participants