Questions tagged [springdoc-openapi-ui]
365 questions
0
votes
0 answers
OpenAPI : change request body schema
I have a class
public abstract class Transfer {
protected ID_TYPE id;
protected BigDecimal amount;
protected String text;
protected Debitor debit;
protected Creditor credit;
}
public class Debitor {
private…

smillis12
- 111
- 5
0
votes
1 answer
Can Access Tokens be automatically sent from Open Api 3 for OAuth 2.0 authentication?
I have an Spring Boot 3 app. I use Keycloak and Open Api 3. Open Api (swagger) works fine for get methods, but not for post. For POST methods I get a 403. I see that I can configure OpenApi so that I can send manually an access token, but I find it…

Octavia
- 198
- 1
- 13
0
votes
0 answers
TestRestTemplate can't reach /v3/api-docs endpoint during test
I have springboot 3 application with springdoc.
I making a junit test which try to validate the swagger schema using a TestRestTemplate.
I am making this request:
@Autowired protected TestRestTemplate webClient;
@Test
public void test() throws…

tschi
- 26
- 4
0
votes
0 answers
OpenApi 3 Swagger UI not working on Spring 2.7.12 with Spring Security Oauth 2
I have upgraded my spring version to 2.7.12 and migrating from springfox swagger 2 to springdoc openapi 3 (swagger 3). The swagger config api is working fine but due to webMVCConfig in my application , the api-docs api response is coming encryted as…

ssklm
- 1
0
votes
0 answers
Wrong response schema in OpenApi UI using SpringDoc with swagger yaml file
I'm having a issue where the response schema for the erros codes, such 400, 500 e etc. not being show as a no content in the swagger UI. It replicate the schema set for the 200 response code, when using the yaml file generated code.
I'm using the…

Borsoi
- 1
- 3
0
votes
0 answers
Springdoc openapi and Spring boot parent 2.7.10 compatibility
I upgraded my applications spring-boot-starter-parent version to 2.7.10.
org.springframework.boot
spring-boot-starter-parent
2.7.10
…

sai23
- 65
- 1
- 8
0
votes
0 answers
Restricting auto generation of schemas definitions OpenAPI Spring Boot
When running the Spring Boot application with org.springdoc:springdoc-openapi-webflux-ui:1.7.0 when using nested complex types as properties, the generated schemas represent separate types as well as whole classes, for example:
@RestController
class…

stosik
- 43
- 5
0
votes
0 answers
Multiple swagger instances for a single application using springdoc
I want to have two swagger interfaces for the same springboot application like,
/api/auth/swagger-ui.html
/api/leagcy/swagger-ui.html
I am using this dependency
org.springdoc
…

PrasadM96
- 571
- 2
- 6
- 15
0
votes
1 answer
OpenAPI with Spring Framework 6
I have a project which uses spring framework 6 (not spring boot). I just used @RestController, so I can return any type of Object. Now I want to document these rest apis. And for this, I tried to use OpenAPI.
I added implementation…

Akash
- 11
- 3
0
votes
0 answers
What is better approach to display in swagger-ui List parametrizied interface?
I use springdoc for describing API. I have the this request body
class SearchRequest {
val fields: List? = null
var searchTerm: String? = null
@Parameter(description = "Page number")
var pageNumber: Int = 0
…

ovod
- 49
- 1
- 7
0
votes
1 answer
openapi springboot - Error 'swaggerWelcome' threw exception
i use the dependency of org.springdoc, see below in y spring boot project
org.springdoc
springdoc-openapi-starter-webmvc-ui
2.0.2
…

Soufiane D
- 21
- 3
0
votes
0 answers
Problem Displaying Swagger-UI After Spring Library Update
We have a webapp(war) that embeds the Swagger UI working under Spring Boot 2.7.5 and springdoc-openapi 1.6.14. I am in the process of updating Spring Boot to 2.7.11 and all is working fine. When I try to update springdoc-openapi to 1.6.16 I see this…

Mike Rother
- 591
- 4
- 16
0
votes
1 answer
Spring OpenApi DTOs in GET requests
We use OpenAPI to generate the interface description for the services exposed in one of our server applications. We use that openapi.yaml then to generate client-sided libraries that will interact with these services for various languages. As the…

Roman Vottner
- 12,213
- 5
- 46
- 63
0
votes
0 answers
Document childclasses with OpenAPI
I have a spring boot (2.7.11) application, where the entities are part of an inheritance tree:
@Getter @Setter @SuperBuilder
public class Foo {
private String foo;
}
@Getter @Setter @SuperBuilder
public class Bar extends Foo {
private…

Sören
- 1,803
- 2
- 16
- 23
0
votes
0 answers
Open Api v3/api-docs not contains its all variables
i have a springboot project working with 2.5.14 version.
I migrate my Swagger 2 to Swagger Open Api but i got some errors.
While upgrading instead of using springfox, i removed them and started to use springdoc-openapi-ui
Here is before and after…

Erdi Atalay
- 153
- 1
- 1
- 8