Skip to main content

All Questions

Tagged with
0 votes
1 answer
20 views

Springdoc with Boot 3, no explicit OpenAPI bean declaration

I have trouble creating Swagger/Open API endpoints for my app. There was a previous app where such an endpoint was created automatically. I want to avoid explicitly declaring an OpenAPI bean. My ...
Cagepi's user avatar
  • 87
0 votes
0 answers
14 views

How to Implement OpenAPI v3 in Spring 6 (without Spring Boot)?

I am working on a project that uses Spring 6 but does not use Spring Boot. I want to implement OpenAPI v3 to document and interact with my REST API, but I only see examples and documentation on Spring'...
DEV's user avatar
  • 1,736
0 votes
0 answers
15 views

Spring Data Rest / openapi - Change serialization for collection in relation

Using spring-data-rest-webmvc - to create apis from repos openapi-generator-cli - to generate models in typescript My Java models @Entity @Data @NoArgsConstructor @AllArgsConstructor @FieldDefaults(...
Oskar Woźniak's user avatar
3 votes
1 answer
187 views

Enum class name is used instead of value

Newbie here trying to use json serialization using mappers for a class that contains a enum. I find the classname is used in the request sent instead of the enum value.N ot sure what I missed here. ...
stackuser's user avatar
  • 4,181
0 votes
1 answer
43 views

SpringBoot OpenAPI definition polymorphism with anyOf and discriminatorProperty

How to define entity inheritance in a SpringBoot openapi type definition when POST-ing a @RequestBody containing an object map of polymorphic entities? Shouldn't it be sufficient to set anyOf = { ...
ccpizza's user avatar
  • 31.3k
3 votes
2 answers
148 views

openapi-generator generates correct code, but incorrect documentation annotations in Spring Boot project

I currently am using openapi-generator to generate Spring Boot APIs based off a yaml spec. One endpoint in the yaml spec is supposed to return a map where the values are lists of enum values { "...
James Parsons's user avatar
-1 votes
1 answer
57 views

Is there a ready-made class in spring boot that represents the OpenApi Schema when I return an exception of type ResponseStatusException?

This is a method example that returns ResponseStatusException: @Operation(summary = "Summary example", description = "Description example.") @ApiResponses(value = { @ApiResponse(...
Rodrigo Lira's user avatar
0 votes
1 answer
40 views

How to set encoding for headers in Springdoc

I have a problem with the Swagger documentation auto-generated by Swagger. The issue is that despite me having set my project to UTF-8, the authentication headers are still encoded in ISO-8859-1, ...
Kira Resari's user avatar
  • 2,280
0 votes
0 answers
61 views

Generate and validate LocalTime from OpenAPI specification YAML

I was able to make OpenAPI Generator for Gradle make fields with the LocalTime data type using the following answer: Generate `LocalTime` from OpenAPI specification Works great, until I want to add ...
Eriol's user avatar
  • 147
0 votes
0 answers
37 views

Questions about /q/openapi http request enhancements to Quarkus-SmallRye-Openapi using filters in the QUARKUS extension

I am using quarkus-smallrye-openapi in the quarkus project, I do not plan to use native UI pages, I use knife4j ui interface myself, so far I have written a quarkus extension to implement this ...
SL Wu's user avatar
  • 1
0 votes
1 answer
90 views

openapi / swagger examples are not displayed

I'm using spring-boot 3.2 here is my dependencies: pom.xml <dependency> <groupId>org.springdoc</groupId> <artifactId>springdoc-openapi-starter-...
Egor Grigoriev's user avatar
0 votes
1 answer
31 views

Issue with Character Encoding for ASCII symbols for API request in SpringBoot application

I am working on a Spring Boot application that uses OpenAPI for generating APIs. One of the endpoints, sendEmail, accepts a request body containing toAddress, subject, emailBodyAsHtml, and attachments....
Zara Smith's user avatar
0 votes
0 answers
45 views

Run spring-boot-maven-plugin start goal without DB connection

I need to run spring-boot-maven-plugin start goal in our build process so that I can generate the Openapi.json with the springdoc-openapi-maven-plugin and generate typescript SDK with openapi-...
Ez Az's user avatar
  • 93
0 votes
0 answers
60 views

Nested Generic return Type in Spring Swagger

Very close to this question How to specify a generic type class for Swagger API response But not quite the same. Using OpenApi v3 and Spring boot 3.3, I have these structures: public class ...
Soheil Rahsaz's user avatar
0 votes
1 answer
170 views

How customize SpringDoc OpenApi definition from Spring Cloud Gateway service

I want add security schema to every OpenApi's of my services. I try @Configuration public class OpenApiConfig { @Bean public GroupedOpenApi apis(OpenApiCustomizer openApiCustomizer) { ...
Willbeplay's user avatar

15 30 50 per page
1
2 3 4 5
17