Skip to content

How to remove the prefix 'UserService_' of operationId? #480

Description

@23buliuhu

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions