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

error details: add @type key by switching to any.Any #553

Merged

Conversation

srenatus
Copy link
Contributor

@srenatus srenatus commented Feb 21, 2018

This is arguably more correct than what was introduced in #515. So, any
error details no have a "@type" field indicating their underlying
proto.Message's type, following the Cloud API docs1.

Note that this does not help with #551. The error is still present.

This is arguably more correct than what was introduced in grpc-ecosystem#515. So, any
error details no have a "@type" field indicating their underlying
proto.Message's type, following the Cloud API docs[1].

[1]: https://cloud.google.com/apis/design/errors#http_mapping

Signed-off-by: Stephan Renatus <[email protected]>
@achew22
Copy link
Collaborator

achew22 commented Feb 23, 2018

Good catch! Thanks for taking the time to fix it for everyone

@achew22 achew22 merged commit 21563a1 into grpc-ecosystem:master Feb 23, 2018
adasari pushed a commit to adasari/grpc-gateway that referenced this pull request Apr 9, 2020
)

This is arguably more correct than what was introduced in grpc-ecosystem#515. So, any
error details no have a "@type" field indicating their underlying
proto.Message's type, following the Cloud API docs[1].

[1]: https://cloud.google.com/apis/design/errors#http_mapping

Signed-off-by: Stephan Renatus <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants