Swashbuckle.AspNetCore
Swashbuckle.AspNetCore copied to clipboard
Swagger tools for documenting API's built on ASP.NET Core
Hi, I don't know if anyone here is using [OData Restier](https://github.com/OData/RESTier) library here but when I try to use Swagger with it, no controller information gets generated. I have also...
Version="6.4.0" Steps to reproduce: 1. Extend a base DTO and use metadata attributes to differentiate DTOs for different actions. 2. Reference inherited classes and generate Swagger.json ``` public class BaseDto...
I notices that swashbuckle's swaggerui interface relies on the swaggerui javascript code which unfortunately always assigns the same guide value to uuid strings: (source: https://github.com/swagger-api/swagger-ui/blob/b825e440770d9328996a116784cb77b05ab24c6c/src/core/plugins/samples/fn.js) "string_uuid": () => "3fa85f64-5717-4562-b3fc-2c963f66afa6", is...
I have generated code: ```cs using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Dedoose.Apis.Servers.Controllers.Core; using Dedoose.Apis.Servers.Services; using Dedoose.Apis.Services; using Dedoose.Core.Data.Model; using Dedoose.Services.DTO; using Dedoose.Services.Services.DTO; using Dedoose.Data.DTO; using Dedoose.Core.Data.DTO; using...
``` [Post] IActionResult Post([SwaggerParameter(Required = false)] int? value = null) { ... } ``` The generated specification Json is no different than when SwaggerParameter omitted. As a consequence the auto...
Submitting a GET request to a controller action when the action has a parameter that is an array of complex objects does not send the request properly. Example: ``` [Route("example")]...
Hello. I'm trying to generate named models (arguments) for `multipart/form-data` requests: ```csharp namespace ReproApp.Controllers { [ApiController] [Route("[controller]")] public class WeatherForecastController : ControllerBase { [HttpPost("create1")] [Consumes("multipart/form-data")] [ProducesResponseType(StatusCodes.Status200OK)] public async Task Create1([FromForm]...
We are using mongodb which has an ObjectId type (struct). We use a JsonConverter to serialize this as a string, This converter is registered using builder.Services.AddJsonOptions. It works perfectly in...
Hi, Recently updated from 6.2.1 to 6.3.0 and stuff started breaking. I'm running an OData controller via [aspnet-api-versioning](https://github.com/dotnet/aspnet-api-versioning) Any endpoint within an OData controller with manually defined query parameters results...
Swashbuckle.AspNetCore.Newtonsoft 6.4.0 Code to reproduce: ```cs [JsonConverter(typeof(StringOnlyEnumConverter))] public enum PromotionType { New, Paying, } public class StringOnlyEnumConverter : Newtonsoft.Json.Converters.StringEnumConverter { public StringOnlyEnumConverter() { AllowIntegerValues = false; } } ``` output...