Questions tagged [springdoc-openapi-ui]
365 questions
1
vote
0 answers
Unable to open swagger-ui.html using springdoc-openapi-ui
I am using (Spring MVC 4.3.11.RELEASE), (spring-boot, spring-boot-autoconfigure 1.5.7.RELEASE).
In which trying to integrate springdoc-openapi-ui 1.5.9
On the API-JSON DOC it is returning a proper JSON formatted document.
When am trying to hit…

ankit giri
- 388
- 3
- 11
1
vote
0 answers
springdoc-openapi-ui behind kong api
I am using this OpenAPI 3 implementation in Spring Boot web project.
org.springdoc
springdoc-openapi-ui
1.5.2
My configuration for…

Eugene
- 1,013
- 1
- 22
- 43
1
vote
2 answers
With SpringDoc OpenAPI, Double and other non-primitives numbers are not marked as nullable
We are using SpringDoc OpenAPI with SpingBoot 2.3 and WebFlux and have Swagger UI on top of it (more precisely springdoc-openapi-webflux-ui 1.4.8).
Lately, we noticed that there is no way to differentiate a nullable / optional number (Double) from a…

J_D
- 3,526
- 20
- 31
1
vote
1 answer
Spring WebFlux OpenAPI - override model/schema field name
I'm using Spring boot + webflux + r2dbc to implement an REST API Server.
The generated schema for a model is duplicating the same field with different definition (name, restrictions, etc.).
My model:
data class Extension(
@Column("number")
…

dim
- 21
- 2
1
vote
1 answer
open api swagger-ui giving white label error page (404) after moving the project as a module in a project
I have the working project in Spring boot which was a standalone app. Now, to modularize, I have split the app and put the api in a module. Earlier the swagger-ui.html page was working, but after this, it is not working.
my pom.xml has these 2…

Saran
- 99
- 2
- 14
1
vote
0 answers
SpringDoc OpenAPI UI and wildcard path
I am trying to use springdoc-openapi-ui in a Spring Boot project where @GetMapping(path = "**") is necessary (I have to use **, no way to avoid it). I went through many issues and discussion but I still can achieve only two…

Marek Suchánek
- 118
- 1
- 6
1
vote
0 answers
Springdoc-openapi Global Headers not getting added in Swagger-UI when using GroupedOpenApi bean
I wanted to add a global header to all my groups with the below bean configurations but the My-Global-Header does not get added.
The same works if I don't include the GroupedOpenApi Bean, when I don't include the GroupedApi bean the…

Rajesh
- 11
- 2
1
vote
2 answers
Disable JSR-303 annotation processing in springdoc
How can I disable JSR-303 annotation processing in springdoc for specific fields?
I have the following request class MyRequestTO where the field name is actually optional. The @NotBlank annotation is only applied to the unwrapped JsonNullable. This…

christopher.online
- 2,614
- 3
- 28
- 52
1
vote
1 answer
Springdoc-openapi-ui OpenAPI Java Generator Inheritance
Since springdoc-openapi-ui version 1.4.0, I am not able to manage java pojo inheritance anymore.
I know that the concept of AllOf, OneOf has been added in 1.4.0 but I can't figure out how to make it work.
I have a simple pojo that contains a list of…

BlaZz91
- 11
- 3
1
vote
1 answer
Swagger url is not working after migration from springfox swagger to openAPI
I am having springfox swagger2 where http://localhost:8080/context/swagger-ui.html works fine.
Now I have modified all the changes to make it open-api runnable.
Using : Migrating from springfox swagger2 to springdoc openapi
Now I can open my service…

Skabdus
- 220
- 3
- 13
1
vote
0 answers
Spring Boot - OpenAPI - Tell API to use certain subclass for example
I have an class hierarchy as below
public class Car {
private String make;
private String model;
@Schema(example = "MANUAL")
private TransmissionType transmissionType;
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME,…

Ganesh Satpute
- 3,664
- 6
- 41
- 78
1
vote
1 answer
How can I hide @ApiResponse form @ControllerAdvice for an endpoint?
I'm trying to migrate our manually writen OpenAPI (swagger) to a generated OpenAPI using springdoc-openapi for our Spring-Boot application. We got some issues, because the controller responses (mostly ErrorCodes) didn't match to the…

MSX
- 46
- 5
1
vote
0 answers
Cannot see swagger-ui.html on the server open-api
I'm using Spring-Boot 2.x.x, gradle 6, Java 8
and I would like to use Openapi UI for documentation instead of Swagger 2
I didn't have those issues with Swagger 2
dependencies {
implementation('org.springdoc:springdoc-openapi-ui:1.5.3')
}
and…

Artem
- 37
- 4
1
vote
0 answers
springdoc-openapi-maven-plugin not generating output file when used with spring.webflux.base-path
I have a maven Spring Boot project that uses Webflux. I generate the open api spec into an output file using springdoc-openapi-maven-plugin in my pom:
org.springdoc
…

SR Angiras
- 31
- 5
1
vote
1 answer
How to point Springdoc Swagger UI to my own YAML file instead of the auto-generated one?
I have created a Spring Boot RESTFul microservice and for the documentation, I have created a swagger.yaml file but I don't know how to run that file. To create the swagger.yaml file, I have used OpenAPI Specification. I know that we have a Swagger…

Hamza ATIF
- 37
- 1
- 9