26 questions
0
votes
0
answers
68
views
`OpenApiDocument` fails to load OpenAPI description with external schema
Given the OpenAPI description document at https://www.bcb.gov.br/htms/dasfn/catalogo/1.0.10/openapi.json referencing the external schema file at https://www.bcb.gov.br/htms/dasfn/catalogo/1.0.10/...
1
vote
2
answers
738
views
Minimal API endpoint not appearing in OpenAPI using custom MapGet extension
I'm working on a project using the Clean Architecture Template.
I'm trying to configure the Endpoints with OpenApi specifications.
Here's what I tried to implement:
Custom MapGet Extension
public ...
4
votes
1
answer
706
views
How to use camel case in query string parameters name and OpenAPI on .NET 9 with Minimal API?
I want to have my OpenAPI json spec to use camel case in all query string parameters for my routes. So far the only way I managed to get this working was by using [FromQuery(Name = "camelCase&...
0
votes
0
answers
286
views
OpenAPI/Scalar.ASPNetCore listing servers inconsistently, and shows all binding entries
I'm working on an asp.net core 9 web api. I'm using OpenAPI and Scalar.ASPNetCore. I think this is actually an issue with microsofts openapi functionality, not scalar.
I have deployed my api to 2 ...
1
vote
0
answers
110
views
ASP.NET Core OpenAPI and multiple servers
Can a web API service in ASP.NET Core with OpenAPI return documents for multiple servers? This seems to be supported in OpenAPI v3, but I can't seem to find a way to do it with ASP.NET Core.
To be ...
0
votes
1
answer
1k
views
.NET 9 Minimal API OpenAPI parameter examples
In previous versions of .NET, I'd used Swashbuckle to add OpenAPI support. It had an examples attribute where I could use SwaggerRequestExample or SwaggerResponseExample attributes to map a request ...
3
votes
1
answer
473
views
.NET 9 Open API endpoint throws exception: "the node must be of type 'JsonValue'"
I'm trying to migrate from SwaggerGen to .NET 9 Open API. First, I had this issue which was resolved by removing all of double.MaxValue use cases in my model validations.
Now navigating to (in my case)...
1
vote
0
answers
237
views
The input string '1.7976931348623157E+308' was not in a correct format
I upgraded my .NET 8 solution to .NET 9 and replaced SwaggerGen with the new OpenAPI that .NET 9 provides. This is how everything related to this feature is setup in my program:
...
builder.Services....
0
votes
0
answers
116
views
swagger.json different for "api-docs/v1.0/swagger.json" and "api/swagger/v1/swagger.json" .Net 6.0 API
I am using .Net 6.0 with Open API Swagger packages. When I run my application, I find that "api-docs/v1.0/swagger.json" is just fine (However, I would like to tweak title, description etc.). ...
1
vote
1
answer
2k
views
OpenApiRequestBody attribute doesn't render properly for multipart/form-data payload
I have a project in Visual Studio using the "Azure Functions" template and the "Http trigger with OpenApi" function, and want to use an OpenApiRequestBodyAttribute to indicate that ...
1
vote
0
answers
312
views
microsoft.dotnet-openapi : Generate yaml from command line
I have an Azure Function v4 .net 6 with an http trigger. I have some OpenAi attributes and would like to generate the yaml file to use it in pipeline.
From documetation (https://learn.microsoft.com/en-...
0
votes
0
answers
4k
views
Generate enum with open API 3.0
i have the below section in my yaml file for which i need corresponding enums generated. I intend to use the "somemap" as a response for the API.
somemap:
type: object
...
0
votes
1
answer
214
views
openapi3 integration with webflux functional way is not working
I am trying to integrate openapi3 with reactive webflux functional endpoints. but i am always getting the error message "invalid version" from andother route configuration.andOther(route(...
0
votes
3
answers
5k
views
SwaggerGeneratorException: Conflicting method/path combination "POST api/v{version}/Employee" for actions
I have problem when run swagger with this methods. Can you help me?
[HttpPost]
[ApiVersion("1.0")]
public IActionResult SetEmployeeV1()
{
v1 ...
}
...
1
vote
1
answer
2k
views
How do I mount zap/wrk directory for ZAP API Scan on Windows
I am trying to run a ZAP API scan against an API but when I run the command below I get error "Invalid option v : option -v not recognized" :
docker run -t owasp/zap2docker-weekly zap-api-...