How to remove the prefix 'UserService_' of operationId?
- Dominant language
- Go
- Stars
- 2.3k
- Forks
- 279
- PR merge metrics
- No merged PRs in 30d
Description
When I use `protoc --openapi_out=docs -Iidl -Ithird_party idl/hello/hello.proto` to generate openapi.yaml,
How to remove the prefix 'UserService_' of operationId?
Does it have a global strategy param to remove it?
post:
tags:
- UserService
operationId: UserService_CreateUser
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CreateUserReq'
required: true
Clould the generator add param to remove 'XXXService_' prefix?
Contributor guide
Research direction
Start with the protoc command in the issue and inspect the OpenAPI generator path that produces operationId in openapi.yaml from idl/hello/hello.proto. Determine how generator options are handled, then verify that a global option can omit the UserService_ or XXXService_ prefix while preserving the generated operationId values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, openapi
- Domain
- api, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100