- Redoc v2.2.0
- SwaggerUI v5.17.14
- Internal dependencies updated
- Redoc v2.1.4
- SwaggerUI v5.17.2
- ported domaindrivendev#2392 Replace text with Markdown link format
- ported domaindrivendev#2852, adds additional 5xx error responses
- ported domaindrivendev#2825 Generate Enum-Dictionary-Keys (analogous to Newtonsoft)
- ported https://github.com/domaindrivendev/Swashbuckle.AspNetCore/pull/2824/files removed redundant any check,
- ported domaindrivendev#2826 Correctly respect interfaces in GetInheritanceChain
- ported domaindrivendev#2784 Handle Stream and PipeReader content types correctly
- Use parameterInfo to decide if to use apiExplorer ModelMetaData ModelType or apiParameter.Type. Fixes an issue where AsParameter Enums get incorrectly generated as strings domaindrivendev#2733
- Adds support for IDictionary and IAsyncEnumerable types to Newtonsoft JSON based schemas
- Adds "application/x-www-form-urlencoded" as an additional default content type for FromForm parameters
- Nuget dependencies updated
- Improved test coverage
- Adds support for HttpResults domaindrivendev#2595
- Fixes an issue where interface chain is not checked for parameters, this resolves issue: domaindrivendev#2596
- Added minimum and maximum constraint for unsigned integers to more accurately declare them in the schema. UInt128 maximum value is left as null because OpenApi maximum field is too small to support it. Changed uint to use int64 format because int32 is too small to represent its upper limit. Fixes domaindrivendev#2582
- Adds support for Int128 and UInt128 and unify STJ and Newtonsoft Primitive types and formats lookup dictionary to reduce code duplication. Fixes domaindrivendev#2611
- always prefer
modelMetaData.Type
overparameter.Type
to support Enums. Fixes #7
- Mark non-nullable properties required when SupportNonNullableReferenceTypes is enabled and property is declared non-nullable. Fixes domaindrivendev#2623 for #3
- Adds support for RequestBodyFilters and ParameterFilters when constructing schema from Metadata fixes domaindrivendev#2613 and domaindrivendev#2561
- Fixes an issue where IFormFile parameters are incorrectly generated when WithOpenApi() extension method is used ref: domaindrivendev#2625
- Fixes an issue where single file AOT .NET 8 project does not start if swagger is registered
- Adds support for System.Text.Json.RequiredAttribute
- Fixes an issue where referencing same schema multiple times causes runtime error. domaindrivendev#2679 Instead changed the runtime to throw error if same id path is used for different schemas. for #3
- Fixes an issue where nullable is not defined for primitive response type schema domaindrivendev#2731
- Fixes an issue where nested record types nullable does not get generated correctly https://github.com/Havunen/DotSwashbuckle/commit/ab7e8e681888034fa9157565eaf45ec18703849b
- Adds support for Length attribute domaindrivendev#2756
- Adds support for required property modifiers. Fixes domaindrivendev#2764
- DotSwashbuckle dependencies are now defined with open version to allow applications update them
- Adds support for using
<remarks>
on schema XML comments. When using<remarks>
on a class, it will be used as the description for the schema. When there is also<summary>
defined, the<summary>
will be used as the title for the schema. When<summary>
is defined alone it is used as description for the schema. - Adds support for defining examples using
SwaggerSchemaAttribute
. - Adds support for custom Required and Binding attributes
- Fixes an issue where UniqueItems is not set true for
IReadOnlySet<T>
- Adds support for
WithSummary
andWithDescription
metadata - Improve performance of IsRequiredSpecified method
- Fixes an issue where query string parameters crash OpenApi path generation
System.ArgumentException: Literal sections cannot contain the '?' character.
- For more details see: #1
ReDoc
has been renamed toRedoc
, this applies to all methods and types. Including the Nuget package nameDotSwashbuckle.AspNetCore.Redoc
- XML comments parsing performance has been improved
- Add support for JsonPolymorphic and JsonDerivedType attributes
- DotSwashbuckle.AspNetCore.Filters added
- DotSwashbuckle.AspNetCore.Filters.Abstractions added
- SwaggerGenOptionsExtensions.TagActionsBy overload -> "Use the overload that accepts a Func that returns a list of tags"
- SwaggerGenOptionsExtensions.GeneratePolymorphicSchemas -> You can use "UseOneOfForPolymorphism", "UseAllOfForInheritance" and "SelectSubTypesUsing" to configure equivalent behavior
- DataContract.ForPrimitive -> "Provide jsonConverter function instead of enumValues"
- DataContract.EnumValues -> Use JsonConverter instead
- ApiDescriptionExtensions.GetAdditionalMetadata -> "Use TryGetMethodInfo() and CustomAttributes() instead"
- ApiParameterDescriptionExtensions.GetAdditionalMetadata -> "Use ParameterInfo(), PropertyInfo() and CustomAttributes() extension methods instead"
- SwaggerUIOptionsExtensions.ValidatorUrl -> "The validator is disabled by default. Use EnableValidator to enable it"
- SwaggerSubType, SwaggerSubTypesAttribute and SwaggerDiscriminator has been removed, use JsonPolymorphic and JsonDerivedType instead