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

add unspecified field to enums #198

Merged
merged 1 commit into from
Jul 30, 2024
Merged

Conversation

tomasciccola
Copy link
Contributor

@tomasciccola tomasciccola commented Jul 25, 2024

should close #171.
Instead of having a field "unspecified" for enums, I had to be deliberate (so ${enum_name_in_snake_case}_unspecified) since protobufs don't allow enums to have fields with the same name

@tomasciccola tomasciccola requested a review from EvanHahn July 25, 2024 14:32
@tomasciccola tomasciccola changed the title add *_unspecified to enums add unspecified field to enums Jul 25, 2024
Copy link
Member

@gmaclennan gmaclennan left a comment

Choose a reason for hiding this comment

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

Looks fine to me on a quick read through. I'll let Evan do the final sign-off.

@tomasciccola
Copy link
Contributor Author

@gmaclennan

Looks fine to me on a quick read through. I'll let Evan do the final sign-off.

I think you missed the comments on the issue -> https://github.com/digidem/mapeo-schema/issues/171#issuecomment-2252879592
I did a set of tests to see the case that you where talking about as justification for this work.

I'm not against of merging this, just, want to understand what I'm missing ...

Copy link
Contributor

@EvanHahn EvanHahn left a comment

Choose a reason for hiding this comment

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

Approving after a lot of back-and-forth on the issue. Sorry for the delay!

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.

Include an Unspecified Value in Enums
3 participants