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

how to get proper fields name for method #745

Closed
vtolstov opened this issue Sep 3, 2018 · 2 comments
Closed

how to get proper fields name for method #745

vtolstov opened this issue Sep 3, 2018 · 2 comments

Comments

@vtolstov
Copy link

vtolstov commented Sep 3, 2018

I have some method that returns 10 fields. Some of them are big (2-4Kb). I know about field_mask and try to use it, but swagger generated file not specify which fields actually i can send. (my web service use swagger to generate typescript services).
I'm try to use enum for fields, but in this case my url look not like ?fields=id,name,xx,yy but ?fields=id&fields=name&fields=xxx

Does it possible to define in proto fields as enums, but swagger generated file have not array of fields kv, but fields=kv with comma?

@johanbrandhorst
Copy link
Collaborator

Hi @vtolstov. Your issue confuses me a bit. Could you try to reword it as a feature request, so I can understand what the problem with your current setup is? Field masks do not require or encourage the use of enums to select fields. Field masks are just strings.

@johanbrandhorst
Copy link
Collaborator

Closing this as issue is a bit unclear. I will reopen if you provide more details.

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