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

Ignore some fields in HTTP Response and OpenAPI #1886

Closed
AntoineToussaint opened this issue Jan 6, 2021 · 2 comments
Closed

Ignore some fields in HTTP Response and OpenAPI #1886

AntoineToussaint opened this issue Jan 6, 2021 · 2 comments

Comments

@AntoineToussaint
Copy link

🚀 Feature

There may be a way to do that already but couldn't find documentation.

The goal would be to ignore fields (that are used only internally or not ready yet to be shown to customer of the REST API.

@AntoineToussaint
Copy link
Author

Note that I tried with [json_name="-"] which could be one way to define it but it doesn't work.

@johanbrandhorst
Copy link
Collaborator

I can't think of an appropriate way for us to signal that a field should be ignored - we don't have any custom annotations for the grpc-gateway logic, and we're not going to introduce it for this feature. I would recommend wrapping your internal service with a separate grpc server that implements the interface you want to expose to customers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants