-
-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
We use google.golang.org/genproto/googleapis/rpc/errdetails for adding additional information to statuses.
We need to add support for details for grpc statuses.
https://pkg.go.dev/google.golang.org/grpc/internal/status#Status.WithDetails
Example stub:
{
"service": "YourService",
"method": "YourMethod",
"input": {
"equals": {
"name": "test"
}
},
"output": {
"code": 3,
"message": "Invalid argument provided",
"details": [
{
"type": "type.googleapis.com/google.rpc.ErrorInfo",
"reason": "API_DISABLED",
"domain": "your.service.com",
"metadata": {
"service": "your.service.com",
"consumer": "projects/123"
}
},
{
"type": "type.googleapis.com/google.rpc.BadRequest",
"field_violations": [
{
"field": "name",
"description": "Name must be at least 3 characters"
}
]
}
]
}
}Reactions are currently unavailable