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

Allow omitting Presence #2029

Open
OlegYch opened this issue Sep 25, 2024 · 2 comments
Open

Allow omitting Presence #2029

OlegYch opened this issue Sep 25, 2024 · 2 comments

Comments

@OlegYch
Copy link

OlegYch commented Sep 25, 2024

Some (if not most) specs don't actually distinguish between a field being non-required and being null.
So it would be nice to avoid using Presence for them.

Ie, please allow an option to treat non-required fields as nullable.

@blast-hardcheese
Copy link
Member

@OlegYch Can you share whether encodeOptionalAs=codingOptionalLegacy, decodeOptionalAs=codingOptionalLegacy is the behavior you're looking for?

@OlegYch
Copy link
Author

OlegYch commented Sep 26, 2024

@blast-hardcheese that breaks something in api behavior, but doesn't seem to change generated api code, ie Presence is still everywhere

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

2 participants