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

Adding back required property #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Adding back required property #15

wants to merge 1 commit into from

Conversation

bhelx
Copy link
Contributor

@bhelx bhelx commented Oct 21, 2024

Adding back required so we can distinguish b/w required and nullable

Adding back required so we can distinguish b/w required and nullable
@bhelx bhelx requested a review from mhmd-azeez October 22, 2024 21:18
@bhelx
Copy link
Contributor Author

bhelx commented Oct 22, 2024

Okay, we can land this now.

@nilslice
Copy link
Member

nilslice commented Oct 22, 2024

should there be some validation to catch the case where something is both required and nullable? I think that would be invalid? or, do we want to be able to represent that state. still thinking about the use case.

@bhelx
Copy link
Contributor Author

bhelx commented Oct 22, 2024

should there be some validation to catch the case where something is both required and nullable? I think that would be invalid? or, do we want to be able to represent that state. still thinking about the use case.

No, all combinations are valid. For an idea of what this would look like in Go, see the description of this PR: dylibso/xtp-go-bindgen#20

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.

2 participants