Questions tagged [swashbuckle.examples]

21 questions
0
votes
0 answers

Missing #/definitions/HttpError in Swashbuckle implementation

I am working on a code base generating a swagger document correctly. All of the endpoints have HTTP responses which are referencing #/definitions/HttpError. However, HTTPError is missing from my swagger JSON documentation. I want to include…
0
votes
1 answer

Is it possible to generate referenced schema for oneof properties using Swashbuckle?

By default, Swashbuckle generates an inline schema for oneof properties(universeCategory) like below. "Universe":{ "type":"object", "properties":{ "universeCategory":{ "oneOf":[ { …
0
votes
0 answers

How to provide sample response in Swagger when using common Response structure?

I am using asp.net core 3.1 with Swashbuckle 5.6. I am using a common class ApiResponse to standardize the response structure. So for both http status codes 404 and 500, my response structure will use same class. But in the generated swagger…
0
votes
1 answer

How to suppress code parameter in Swashbuckle

I have an Azure function app where Swashbuckle is configured and working with minimal configuration. Swashbuckle is generating the web pages with parameters as desired, but the parameter code is added to every definition page. How can I suppress the…
jlo-gmail
  • 4,453
  • 3
  • 37
  • 64
0
votes
1 answer

.NET Framework Swashbucket Examples SwaggerRequestExample throws System.ArgumentNullException

I use Swashbucket and Swashbucket.Examples NugetPackages to provide a Swagger API in .NET Framework (v.4.7.2) Following the documentation onhttps://github.com/mattfrear/Swashbuckle.AspNetCore.Filters I am trying to use the SwaggerRequestExample…
Michael Staples
  • 537
  • 7
  • 13
0
votes
1 answer

Facing Problem while returning object in response Example in Swashbuckle.Examples

I'm using Swashbuckle.Examples in Web API for better documentation. It is working fine for Swashbuckle Sample response but when I'm using Sample Example When I run the project it is showing an Error. My controller …
1
2