Questions tagged [springdoc]
The springdoc-openapi Java library helps automating the generation of API documentation using Spring Boot projects. springdoc-openapi works by examining an application at runtime to infer API semantics based on Spring configurations, class structure and various annotations.
springdoc
506
questions
0
votes
0
answers
17
views
OpenAPI Swagger Documentation Jargons
I have configured OpenAPI documentation in my spring boot application. Everything is coming that is expected but there are a lot of jargons coming up. Only the highlighted and ticked values are ...
0
votes
1
answer
54
views
Which version of Springdoc is compatible with Spring boot 3.2.8?
Which version of Springdoc (springdoc-openapi) is compatible with Spring Boot 3.2.8?
I'm unable to open Swagger UI via localhost.
I have a project that runs on Spring Boot 3.2.8 and cannot downgrade ...
1
vote
1
answer
33
views
Springdoc OpenAPI add Classpath Yaml
I have an OpenAPI description defined in its own library.
This library is used as a gradle dependency in my project.
I am using Springdoc v.2.5.0.
My project is a Spring Cloud Gateway.
Currently, I am ...
0
votes
1
answer
35
views
swagger schema oneOf not generationg Object and List
I would like to get a result like this:
Employee {
description: Description of Employee
id integer($int32)
teste {
oneOf
- array
- integer
- object
}
}
...
0
votes
1
answer
43
views
springdoc integration not working as expected for springboot
I am following this to integrate springdoc in my springboot application.
Springboot version is 3.3.1 and I have added dependency:
<dependency>
<groupId>org.springdoc</...
0
votes
1
answer
61
views
Swagger springdoc-openapi-ui dependency throwing 'Not Found' error
I am working on a Spring project 5.3 version (not spring boot) with Java 11 and I tried to include springdoc-openapi-ui dependency and created an OpenApiConfig class and this project uses spring ...
-1
votes
0
answers
10
views
Working principle of packagesToScan and packagesToExclude together
I have a modularized Spring Boot application with controllers spread across various sub-packages of a main package. I want to exclude one specific sub-package from the OpenAPI documentation.
Does ...
0
votes
1
answer
16
views
Springdoc works with war but cannot start when embedded within an ear (Wildfly31 + JDK17)
I was using spring-core 6.1.5, springdoc-openapi-starter-webmvc-ui 2.5.0. When i packaged my application as war and deploy to Wildfly31 running on JDK17, it was working fine and I am able to access ...
0
votes
0
answers
33
views
Swagger-ui from springdoc-openapi-starter-webmvc-ui display wrong data, But online swagger editor is correct
My openapi.yaml file showing correct data in editor, but not in my local project, any idea what could be the problem here?
Image from my project swagger-ui
enter image description here
Image from ...
2
votes
1
answer
34
views
Having external Swagger JSON along with Springdoc-generated Swagger
I'm developing a Spring application that integrates with Camunda. It exposes both Camunda and custom endpoints. I would like to keep both Swaggers inside the application, like so:
But as soon as I ...
0
votes
0
answers
64
views
OpenAPI Schema with Springdoc mixing schemas from file with Controller generation
I'am using Springdoc (2.5.0) with Spring Boot 3.3. I'm trying to generate an OpenAPI Spec from MyRestController, which looks like this:
public class MyRestController {
@GetMapping("/&...
0
votes
0
answers
28
views
Schema value generated by swagger
I use spring boot 3.3
@Data
public class LongEditorRequest extends ShortEditorRequest {
@NotNull
private BookLangEnum bookLangEnum;;
...
}
@Schema(enumAsRef = true)
public enum BookLangEnum {
...
0
votes
2
answers
94
views
Getting 'No operations defined in spec!' for SpringDoc Swagger
I have implemented swagger using the OpenAPI library.
My application is running on spring boot 2.7.1
I'm getting 'No operations defined in spec!', even my controller is having api's. What could be the ...
1
vote
0
answers
181
views
spring 3 with springdoc 2 - Failed to load remote configuration
I'm using spring boot 3.2.5 with org.springdoc:springdoc-openapi-starter-webflux-ui:2.5.0 to power a simple API based on the OpenAPI spec.
My API is running fine (at /api/v1/mystuff), but when I try ...
0
votes
1
answer
124
views
Spring Boot 3.2.4 + Springdoc OpenAPI: "No operations defined in spec!" in Swagger UI
I'm working on a Spring Boot application (version 3.2.4) and using Springdoc OpenAPI (version 2.0.4) to generate API documentation. However, when I open Swagger UI, I see the message "No ...