Skip to content

Latest commit

 

History

History
87 lines (71 loc) · 6.37 KB

CHANGELOG.md

File metadata and controls

87 lines (71 loc) · 6.37 KB

v3.0.11

  • Redoc v2.2.0
  • SwaggerUI v5.17.14
  • Internal dependencies updated

v3.0.10

v3.0.9

  • 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

v3.0.8

  • 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

v3.0.7

  • always prefer modelMetaData.Type over parameter.Type to support Enums. Fixes #7

v3.0.6

  • Mark non-nullable properties required when SupportNonNullableReferenceTypes is enabled and property is declared non-nullable. Fixes domaindrivendev#2623 for #3

v3.0.5

v3.0.4

  • Fixes an issue where single file AOT .NET 8 project does not start if swagger is registered

v3.0.3

  • 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

v3.0.2

v3.0.1

  • Adds support for required property modifiers. Fixes domaindrivendev#2764
  • DotSwashbuckle dependencies are now defined with open version to allow applications update them

v3.0.0

  • 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 and WithDescription 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

Breaking Changes

  • ReDoc has been renamed to Redoc, this applies to all methods and types. Including the Nuget package name DotSwashbuckle.AspNetCore.Redoc

v2.0.0

  • XML comments parsing performance has been improved
  • Add support for JsonPolymorphic and JsonDerivedType attributes
  • DotSwashbuckle.AspNetCore.Filters added
  • DotSwashbuckle.AspNetCore.Filters.Abstractions added

Removed following obsolete features:

  • 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