Skip to content

Operation ids for actuator endpoints #1233

Closed
@fjakop

Description

@fjakop

We're generating typescript fetch clients from openapi definition. When we enable actuator to be generated into the openapi.yaml the operation ids are rather unuseable because the're named handle_14 and so on while the summary looks good. Example below.

/actuator/health:
  get:
    tags:
      - Actuator
    summary: Actuator web endpoint 'health'
    operationId: handle_14

In consequence the generated typescript methods look like actuatorApi.handle14() that is unreadable.

I would expect the operationId to be set to the endpoint name, i.e. in this example

/actuator/health:
  get:
    tags:
      - Actuator
    summary: Actuator web endpoint 'health'
    operationId: health

which would lead to a method actuatorApi.health().

Used springdoc-openapi version is 1.5.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions