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

Generate null checks in code-gen #1105

Open
YuriiNskyi opened this issue Aug 24, 2022 · 0 comments
Open

Generate null checks in code-gen #1105

YuriiNskyi opened this issue Aug 24, 2022 · 0 comments

Comments

@YuriiNskyi
Copy link
Contributor

Code generation is great feature, however, it is missing very desired behavior: null checks for properties.

How about to extend code-gen and maybe add special attribute, which indicates that null checks are included. Special constructor, which returns option/either/validation if some of the properties is null is also eligible.

What do you think about this?

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

No branches or pull requests

1 participant