google / google/gnostic

invalid generated swagger from proto with protoc-gen-openapi

Open
#311 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
2.3k
Forks
279
PR merge metrics
No merged PRs in 30d

Description

i have proto file with
{ post: "/some/path/XXX?RqUID={RqUID}&RqTm={RqTm}"; body: "*"; };
so i think that generated swagger have RqUID and RqTm in path query parameters and other in body
but
```
paths:
/some/path/XXX?RqUID={RqTm: // this is invalid
post:
tags:
- XXX
operationId: someOperation
parameters:
- name: RqUID
in: path
required: true
schema:
type: string
- name: RqTm
in: path
required: true
schema:
type: string
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.