You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I split a monolithic single service into multiple services and use them to generate a single swagger file, it seems that the numbering logic of path parameters(docs) is used and thepattern field is generated in path parameters. However, this format results in missing path information from the swagger UI as following picture. There is a lack of information that how I should describe the path with this Swagger UI result.
I cannot find it in the documentation, but I'm also wondering if I can turn off these numbering logic and pattern field options for path parameters. Thank you.
To Reproduce
Step 1. Split single service into multiple services
Step 2. Generate the swagger file(swagger.json) with the merge option. (--openapiv2_opt allow_merge=true)
-> numbering logic and pattern field option of path parameters will be turned on
Step 3. Check generated swagger file and Swagger UI results
Expected behavior
a.swagger.json (generated swagger file by protoc-gen-openapiv2)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
馃悰 Bug Report
When I split a monolithic single service into multiple services and use them to generate a single swagger file, it seems that the numbering logic of
path parameters
(docs) is used and thepattern
field is generated in path parameters. However, this format results in missing path information from the swagger UI as following picture. There is a lack of information that how I should describe the path with this Swagger UI result.I cannot find it in the documentation, but I'm also wondering if I can turn off these numbering logic and pattern field options for path parameters. Thank you.
To Reproduce
Step 1. Split single service into multiple services
Step 2. Generate the swagger file(swagger.json) with the merge option. (
--openapiv2_opt allow_merge=true
)-> numbering logic and pattern field option of path parameters will be turned on
Step 3. Check generated swagger file and Swagger UI results
Expected behavior
a.swagger.json (generated swagger file by protoc-gen-openapiv2)
Swagger UI result
Actual Behavior
a.swagger.json (generated swagger file by protoc-gen-openapiv2)
Swagger UI result
Your Environment
macOS
go1.16.15 darwin/amd64
protoc-gen-grpc-gateway v2.11.2
protoc-gen-openapiv2 v2.11.2
The text was updated successfully, but these errors were encountered: