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 using Spring Boot Actuator, Springdoc includes the endpoints in the spec (🎉), but the operationIds are a little odd:
/meta/health:
get:
tags:
- Actuatorsummary: Actuator web endpoint 'health'operationId: health_2/meta/info:
get:
tags:
- Actuatorsummary: Actuator web endpoint 'info'operationId: info_2
To Reproduce
Here's the relevant portion of my application.yml:
# OpenAPIspringdoc:
# Include actuator endpointsshow-actuator: true# Redirect from root to Swagger UIswagger-ui.use-root-path: trueversion: ${BUILD_VERSION:unset}default-produces-media-type: application/json# Exclude the k8s probes because they don't generate properly and shouldn't be used by clients anywaypaths-to-exclude: "/meta/health/*"# Expose some actuator endpoints over RESTmanagement:
endpoint:
# Enable info & healthinfo.enabled: truehealth.enabled: trueendpoints:
# Disable other endpointsenabled-by-default: false# Don't expose anything over JMXjmx.exposure.exclude: "*"web:
exposure.include: "*"# Disable the actuator root discovery endpointdiscovery.enabled: false# Customize path mappingsbase-path: /meta
Expected behavior
I would expect the operationIds to be health and info.
hi, I am still getting this issue with openapi-2.3.0 and Spring Boot 3.2.2. looking at the code (ActuatorOperationCustomizer), the fix with altering operationId after extracting it from handlerMethod does not work, since the handler is AbstractWebMvcEndpointHandlerMapping and it does not get matched against provided regex. shall I open a new issue?
mpleine
pushed a commit
to mpleine/springdoc-openapi
that referenced
this issue
May 17, 2025
Describe the bug
When using Spring Boot Actuator, Springdoc includes the endpoints in the spec (🎉), but the
operationId
s are a little odd:To Reproduce
Here's the relevant portion of my
application.yml
:Expected behavior
I would expect the
operationId
s to behealth
andinfo
.Additional context
Somewhat related to #1264
The text was updated successfully, but these errors were encountered: