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

Merged
merged 1 commit into from
Oct 23, 2024
Merged

Adding back required property #15

merged 1 commit into from
Oct 23, 2024

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

Copy link
Contributor

@mhmd-azeez mhmd-azeez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, let's get this merged so that i can merge them into my PR

@bhelx bhelx merged commit b9634db into main Oct 23, 2024
3 checks passed
@bhelx bhelx deleted the bring-back-required branch October 23, 2024 15:05
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.

3 participants