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 value for every enum #31

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

DavidLawes
Copy link
Contributor

What does this change?

This adds an intentional unspecified value to every enum. This should increase the robustness of the schema by explicitly defining default/fallback values (meaning the client code can explicitly handle these cases).

@DavidLawes
Copy link
Contributor Author

@mohammad-haque @guardian-ben - does this change meet your expectations or I need to re-think the approach?

@mohammad-haque
Copy link
Contributor

This looks much better to me compare to the current version of _UNSPECIFIED fields. This will require some change in the client side but that would be small piece of work.

@DavidLawes
Copy link
Contributor Author

@guardian-ben @mohammad-haque - if we're happy with this approach would someone be able to approve please?

Copy link
Contributor

@mohammad-haque mohammad-haque left a comment

Choose a reason for hiding this comment

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

Looks good to me 👍

@DavidLawes DavidLawes merged commit 3db149a into main Jul 13, 2023
2 checks passed
@DavidLawes DavidLawes deleted the specify-intentional-unspecified-enum branch July 13, 2023 10:49
@waisingyiu waisingyiu mentioned this pull request Apr 22, 2024
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