4,556 questions
Advice
0
votes
1
replies
134
views
Is this the new proper way to detect AllowAnonymous with .net 10 and OpenApi?
With the move from Microsoft to do some major changes with .net 10 with openapi/swagger, I had some trouble to have swagger ui to hide the lock icon on [AllowAnonymous] endpoint while having it on [...
Score of 1
1 answer
207 views
How to configure Swagger UI (version 10.1.7) to send Authorization Header with Bearer Token?
We have recently migrated our .NET project to Swashbuckle.AspNetCore 10.1.7 from version 6.6.2 as part of a larger .NET 8 to .NET 10 migration. However, I'm experiencing serious authorization problems ...
Score of 0
1 answer
183 views
ASP.NET Core OpenAPI/SwaggerUI XML root collections "XML example cannot be generated; root element name is undefined"
I'm trying to use the XmlDataContractSerializerOutputFormatter and XmlDataContractSerializerInputFormatter (yes, I have tried XmlSeralizerOutputFormatter and XmlSerializerInputFormatter so I don't ...
Score of 0
0 answers
132 views
Can Swagger-ui auto-generate examples when using allOf?
I'm using Swagger-ui.js version 5.32.0. I have some OpenApi 3.0 documents that look similar to this (I've simplified for this example).
/test:
post:
requestBody:
content:
...
Score of 2
0 answers
189 views
ASP.NET Core Web API : OpenAPI/Swagger Ui with custom authorization header
I'm moving a Web API project from .NET framework to .NET 10. While I have the project itself working, I'm trying to get documentation up and running with OpenAPI (Microsoft.AspNetCore.OpenApi 10.0.3) &...
Score of 0
1 answer
198 views
Swagger UI fails to load with "Internal Server Error /swagger/v1/swagger.json" on ASP.NET Core 9 with file upload endpoint
I have an ASP.NET Core 9 Web API with a file upload endpoint using IFormFile. When I launch the application, Swagger UI fails to load with this error:
Failed to load API definition.
Fetch error
...
Score of 0
2 answers
783 views
How to enable the "Authorize" button in Swagger in .NET 10?
Recently, I've been trying to create a server with .NET 10 and I want to use Swagger to support the documentation, but I'm having problems with JWT authentication.
How do I enable the "Authorize&...
Score of 0
0 answers
255 views
Swagger not showing v2 data in UI with no way of changing
I'm implementing some versioning in my Minimal API for .NET 8 and I've hit a bit of a snag.
My documentation won't load the v2 API doc into Swagger when I run the application.
I have this Swagger ...
Score of 1
0 answers
65 views
Swagger Caching Authentication parameters
I have an ASP.NET Core Web API. I am using Swagger, so when I run my app in debug mode, the Swagger page appears and I can test my endpoints. I also have authentication, and crucially, I'm ...
Score of 1
0 answers
236 views
Using .NET 10 and SwaggerUI to handle complex data in a GET request
I have a simple .NET 10 Minimal API that I'm testing with SwaggerUI as :
public class Input
{
public string? StringVal { get; set; } = "";
public string[] ArrayVals { get; set; } = [...
Score of 0
1 answer
108 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-...
Advice
1
vote
2
replies
57
views
What dependency for Swagger/OpenApi to work in Kotlin and WebFlux Spring Boot application?
I tried a lot of different options, but I cannot find the right dependency that works with Kotlin ans WebFlux simulatneously. Which one should I use? Is it possible to have this setup?
Score of 0
0 answers
79 views
Gravitee OSS Gateway returns 404 when accessing proxied Swagger UI
I’ve deployed Gravitee OSS as an API Gateway on a VM, with a local DNS entry so it’s available at:
http://apim.local:8082
I also have an API running externally at:
https://my-app.k8s.acme.fr/spring/...
Score of 0
0 answers
50 views
Pass parameter from Swagger to IdentityServer8 for authentication
I'm using Swagger UI to test APIs that require authentication to IdentityServer8 via OAuth 2.0 implicit flow. Is there any way to pass a custom parameter from Swagger UI to IdentityServer8 during ...
Score of 1
0 answers
132 views
Swashbuckle ISchemaFilter Parameter Description .NET 8.0
I want to add helpful message with CSS style to the Swagger UI schema section of my method. So far I have a message displaying for the object but I want them for each property.
Here is what I am doing ...