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

[protoc-gen-openapi] how can i generate required query parama? #379

Closed
tbdrm opened this issue Feb 9, 2023 · 1 comment
Closed

[protoc-gen-openapi] how can i generate required query parama? #379

tbdrm opened this issue Feb 9, 2023 · 1 comment

Comments

@tbdrm
Copy link

tbdrm commented Feb 9, 2023

protoc-gen-openapi

I generate openapi.yaml by this cmd tool, but my annotation [(google.api.field_behavior) = REQUIRED] not take effect.
It take effect in body params, but not query.

I get the result:

- name: username                
  in: query       
  schema:                      
    type: integer              
    format: int32              

I expect it generate like this:

- name: username                
  in: query
  required: true                  
  schema:                      
    type: integer              
    format: int32              
@tbdrm tbdrm closed this as completed Feb 15, 2023
@lycpan233
Copy link

Has the problem been solved?

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