396 questions
Score of 0
1 answer
75 views
.yaml not added to group URL
When I change the property springdoc.swagger-ui.url to contain the .yaml extension, for example /v3/api-docs.yaml, I expect the URLs of the defined groups to include it as well.
For example, with the ...
Score of 2
1 answer
81 views
What is the purpose of springdoc.group-configs[_].display-name if Swagger UI derives the group display name from SwaggerUrl instead
I'm trying to understand the relationship between groups and URLs in Springdoc.
For example, we might have the following Springdoc configuration:
springdoc.swagger-ui.urls[0].url=${springdoc.swagger-...
Score of 0
0 answers
141 views
Creation of semi-duplicate definitions leads to display problems (problem became visible when transitioning from springdoc 1.6.13 to springdoc 2.8.14)
When a Spring Boot application using springdoc-openapi-{common, ui, web-code, ...}:1.6.13 starts, it invokes the SwaggerWelcomeWebMvc class and later AbstractSwaggerWelcome, where ...
Score of 6
1 answer
1921 views
ConventionErrorViewResolver bean conflict with springdoc-openapi-starter-webmvc-ui 3.0.1
I am setting up OpenAPI doc in spring-boot on one of my projects.
Every time I try to run my project with the following dependency:
<dependency>
<groupId>org.springdoc</groupId>
...
Score of 1
1 answer
127 views
Can't set up OpenAPI for RestController in Spring Boot
I am trying to set up OpenAPI. My application uses port 9002 and every time I try to access http://localhost:9002/swagger-ui/index.html on the browser the server rejects my request with 403 code.
This ...
Score of 1
1 answer
119 views
CSRF acting strange with springdoc in stateless service
Let's consider that I have a stateless service with an authentication mechanism that makes the browser automatically send the credentials which then makes even a stateless service vulnerable. I want ...
Score of 0
1 answer
148 views
ClassNotFoundException: org.springframework.web.servlet.resource.LiteWebJarsResourceResolver when running Spring Boot 3.3 best practices recipe
I am running org.openrewrite.java.spring.boot3.SpringBoot33BestPractices recipe of OpenRewrite on a Spring Boot v3.3.8 project that uses SpringDoc Api v2.6.0. OpenRewrite is upgrading correctly the ...
Score of 0
1 answer
57 views
Specifying schema attributes descriptions
Can I describe schema attributes somehow, similar to how I can describe request parameters? In my case, I want to tell the clients that identifier means either a username, email, or phone. Obviously, ...
Score of 1
1 answer
143 views
springdoc.swagger-ui.path property doesn't generate corresponding endpoint
It's extremely weird. I made no changes at all, and now suddenly spring-doc Swagger UI doesn't work.
First, I had this error.
Then, after updating the version of the artifact from 2.6.0 to 2.8.8, I ...
Score of 0
1 answer
70 views
exclude spring-boot @AuthenticatedUser argument from swagger ui mask?
We have an old service that used to run on an older spring-boot version and springfox-swagger-ui. Everything worked fine there.
Since we've upgraded to spring-boot 2.7 and springdoc-openapi-ui 1.8.0, ...
Score of 0
0 answers
65 views
Spring Boot Maven Plugin does not pickup test properties or ansible properties for integration tests
I am trying to run openapi springdoc for my application for which I am using
<groupId>org.springdoc</groupId>`
<artifactId>springdoc-openapi-maven-plugin</artifactId>`
<...
Score of 0
1 answer
242 views
Set up OpenAPI (Swagger) UI 3 in Spring Framework 6
Tried a few suggestions in existing stackoverflow discussions but I can't even get the html page to serve, and almost all information on the web uses Spring Boot instead, does anyone have an article, ...
Score of 0
1 answer
403 views
Spring Boot: Combine multiple applications SwaggerUI?
Having about 6 Spring Boot applications with REST APIs running with Actuator and Prometheus support.
These are running on Docker, but the actuator port is not exposed.
Although we can connect each ...
Score of 1
1 answer
1720 views
SpringDoc 2.8.0: Failed to introspect Class [SwaggerConfig] - IllegalStateException
After updating SpringDoc to version 2.8.0, my Spring Boot application fails to start with the following error:
Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springdoc....
Score of 3
0 answers
58 views
How to display in swagger dynamically registered routes in a java webflux applicaiton?
I am creating a demo applicaiton where I register my endpoints dynamically using an endpoint registrar based on controller beans I have instanciated. Thus there are no annotations for the spring-doc ...