-
Notifications
You must be signed in to change notification settings - Fork 13
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
feat: resolve-all functionality #62
Conversation
Signed-off-by: Todd Baert <toddbaert@gmail.com>
4114aad
to
59c06e1
Compare
protobuf/schema/v1/schema.proto
Outdated
oneof value { | ||
bool boolValue = 3; | ||
string stringValue = 4; | ||
int64 intValue = 5; | ||
double doubleValue = 6; | ||
google.protobuf.Struct objectValue = 7; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think oneof is a good solution here. In many languages it generates some convenience functions so we can easily check what value is set.
protobuf/schema/v1/schema.proto
Outdated
|
||
// The response value of the boolean flag evaluation, will be unset in the case of error. | ||
oneof value { | ||
bool boolValue = 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
linting errors here as boolValue
should instead be lower snake cased bool_value
, same with the other names
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call, resolved.
Signed-off-by: Todd Baert <toddbaert@gmail.com>
Looks good to me - but going to hold off on approving until I play around with what a map of |
💯 , yep, that was my only mild concern too. I thought it seemed like a nice implementation but it'd be good to have that validated. Thanks! |
Signed-off-by: Todd Baert <toddbaert@gmail.com>
LGTM :) |
🤖 I have created a release *beep* *boop* --- ## [0.2.6](v0.2.5...v0.2.6) (2022-12-20) ### Features * resolve-all functionality ([#62](#62)) ([9ca9ee3](9ca9ee3)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Closes: #63