gRPC: Use oneof
clause where appropriate
#2593
Labels
conclusion: resolved
Issue was resolved
topic: gRPC
Related to the gRPC interface
type: enhancement
Proposed improvement
Milestone
Describe the request
Some gRPC calls would benefit from the
oneof
clause, particularly all the streaming responses.For example the
PlatformInstallResponse
, is currently defined as:could be rewritten as:
making explicit the exclusive nature of the fields and reserving space for an explicit call result that could be expanded in the future.
Describe the current behavior
N/A
Arduino CLI version
nightly
Operating system
N/A
Operating system version
N/A
Additional context
Some of the gRPC calls have already been changed in a similar way, this request is to propagate the same change in all the API.
Issue checklist
The text was updated successfully, but these errors were encountered: