3,069 questions with no answers
0
votes
0
answers
35
views
Swagger in springboot3- No API Definition Provided
I have a spring boot 3 application and I have added springdoc-openapi dependency ie
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-...
0
votes
0
answers
64
views
Issues with polymorphis in Swagger (springdoc) in Spring Boot after upgrading to 3.5
I have created a very simple demo project with one controller endpoint:
Spring Boot 3.5.6
Springdoc 2.8.13
This was working much better in Spring Boot 2.7.x
Full project here: https://github.com/...
0
votes
0
answers
21
views
Duplicate records if Class and Operation both has @Path param
I have an API where the class and operation both has @path annotation ( @path("/{id}") ) as shown in following interface example. @path("/v1.0/private/communications") and @path(&...
1
vote
0
answers
70
views
Documenting a Map<String,List<Thing>> properly with Swagger's Java annotations
I'm having trouble finding a solution to documenting a Map<String, List<Thing>> properly using Swagger annotations and Open API. Thing is annotated properly, but I cannot find the correct ...
0
votes
0
answers
72
views
Visual Studio debugger crashes when selecting IFormFile in Swagger UI
I'm running an ASP.NET API in Visual Studio. I have an endpoint to upload a file using IFormFile.
[HttpPost(Name = "AddDocument")]
[ProducesResponseType(StatusCodes.Status200OK)]
public ...
0
votes
0
answers
56
views
Marking error codes as retriable in OpenAPI
I want to mark some response codes in some operations of my REST API as retriable (the API specification described in OpenAPI). Is there a standard solution for this problem?
It would be great if ...
1
vote
0
answers
241
views
How to make swagger-maven-plugin write swagger.json into target/classes in addition to fat jar, so Eclipse can find it?
Our SpringBoot app has a pom.xml that uses the swagger-maven-plugin, and when we run locally with "mvn spring-boot:run", we can view the swagger docs successfully.
However, if we run the app ...
0
votes
0
answers
34
views
OAS Generator creates classes even for referenced schemas
I have two yml files
Common.yml and application.yml
Both under same folder
I have certain schemas like sortOrder that are defined in common schema
And using $ref it is referred in application.yaml
...
1
vote
0
answers
71
views
How to add format, pattern and maxlength?
How do I add information to Swagger docs for:
format
pattern
max length
I was thinking just put them on a object and add attributes, but I need them to be a primitive because I am using them in the ...
0
votes
0
answers
63
views
Micronaut OpenAPI does not generate merged file using micronaut.openapi.additional.files from dependent module YAMLs
I'm trying to generate a single OpenAPI YAML file in an aggregator module that imports other Micronaut modules as dependencies.
Context
I have multiple modules (A, B, C) that define Micronaut ...
0
votes
0
answers
19k
views
DevOps Release: Failed to import from specified resource http://10.XXX.XXX.XXX/swagger/XXX/swagger.json
In a DevOps Release I am getting suddenly this error in "API Management - Create or Update API" step:
2025-06-25T10:48:25.3264215Z Creating or updating API https://management.azure.com/...
1
vote
0
answers
67
views
Swagger UI is unable to render this definition, but only on the server
I am creating two separate swagger pages for my API.
One "Full" page with all endpoints for internal use and one "Limited" page for external users.
So I have added this decorator ...
0
votes
0
answers
26
views
The Type Point in geojson_pydantic is not hashable
I'm using Python 3.11 and I am struggling a lot to understand this.
When I try to access to the Swagger documentation of my service, in localhost, I have this error:
generate_definitions ...
1
vote
0
answers
43
views
spring boot maven web api - open swagger if not already opened
I have a Spring boot java 23 web api using maven.
In my pom.xml I am using springdoc-openapi v2.8.8:
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-...
0
votes
0
answers
55
views
openXpki won't show swagger / openapi definition (404)
I have the task to evaluate integrating openXpki into an external System, thus i want to see the available API (and then figure out how configurable it is).
The documentation does not list a specific ...
2
votes
0
answers
176
views
Scalar documentation - multiple response types for one endpoint
I'm learning Scalar instead of Swagger now, and i can not find out how to configure more than 1 common response types over all endpoints in project. I mean that, that i want to have endpoints which ...
3
votes
0
answers
98
views
Override parent class swagger annotations
This is my parent class:
public abstract class Measurement {
@Schema(description = "The value", example = "1")
public Double amount;
@Schema(description ...
0
votes
0
answers
73
views
Flasgger displaying Swagger page locally, but fails to load API definition on Azure
When I run this locally, the swagger page loads as normal, with all my endpoints and tests effectively. However, when I send it to Azure, I get the following page:
Failed to load API Definition.
When ...
0
votes
0
answers
127
views
Why is Swagger UI not handling optional files properly?
I have a minimal example in this script:
from fastapi import FastAPI, File, Form, UploadFile
from typing import Optional
from fastapi.responses import JSONResponse
app = FastAPI()
@app.post("/...
0
votes
0
answers
96
views
How to Have Swagger to support multiple API version
Good day.
I am new to API and using Microsoft Visual Studio 2022, .NET Core 9 as the development platform. I wish to have the swagger to support multiple AI version but not success.
Below is my code ...
0
votes
0
answers
75
views
Golang Fiber Swagger cant find model :cannot find type definition: models.SignUpParams
I am trying to use gofiber swagger. When I run swag init I get the following error message.
2025/03/31 12:11:39 Generate swagger docs....
2025/03/31 12:11:39 Generate general API Info, search dir:./
...
0
votes
0
answers
156
views
Alternative to Swagger's IncludeXMLComments in native MS OpenApi on .NET9
Is there an alternative to Swagger's configuration IncludeXMLComments in native MS OpenApi which is introduced on .NET9? I'm running a project on .net8 and migrating to .net9 and wanted to migrate to ...
0
votes
0
answers
243
views
Ocelot API Gateway in .NET 8 not showing downstream services in Swagger UI
I'm implementing an Ocelot API Gateway in .NET 8 with Swagger integration, but my downstream services aren't appearing in the Swagger UI. Here's my setup:
Service 1 is running on port 5001, and it ...
0
votes
0
answers
32
views
SwaggerResponse add "Field" suffix to property name
I have an issue with Swagger model preview. I using ASP.NET Web API.
It shows me this model:
But all model properties - is a private property names.
So, on my opinion there must be Id instead of ...
5
votes
0
answers
976
views
Swagger async controller generation
For a project, I use the swagger hub to build my API. From the swagger hub, I generate the server code. However, when this code is generated it has synchronous controllers. Is there a way to specify ...