You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I were you, I would prefer to add a comment to the rpc api, like below:
// GetUser return a user. It will return an error with reason "USER_NOT_FOUND" when user is not found.
rpc GetUser (GetUserRequest) returns (GetUserReply)
I see a way to definite error codes, but it doesn't update the open API spec generation with HTTP error codes
https://go-kratos.dev/en/docs/component/errors
The text was updated successfully, but these errors were encountered: