openapiv3 tags
After setting the tag, why not overwrite the original default but recreate the tag, proto file:
service Test {
rpc CreateTest (CreateTestRequest) returns (CreateTestReply) {
option (google.api.http) = {
post: "/api/test",
body: "*"
};
option (openapi.v3.operation) = {
tags: ["TS1"],
};
}
}
yaml file:
paths:
/api/test:
post:
tags:
- Test
- TS1
..................
How do I do it, please, Thanks!
I have the same problem as you
I have the same problem as you
I am experiencing similar behavior. Is there a way to suppress the "default" tag of the service and just use the specified tags?
I had the same problem, checked the source code and found that this is hardcoded and currently impossible to change
It uses GoName as the default tag and adds it to document
https://github.com/google/gnostic/blob/ade94e0d08cb9c60272a311608cd5dabd30d1813/cmd/protoc-gen-openapi/generator/generator.go#L587
https://github.com/google/gnostic/blob/ade94e0d08cb9c60272a311608cd5dabd30d1813/cmd/protoc-gen-openapi/generator/generator.go#L739
https://github.com/google/gnostic/blob/ade94e0d08cb9c60272a311608cd5dabd30d1813/cmd/protoc-gen-openapi/generator/generator.go#L754