These are the changes to each version that has been released on the nuget.
- Fix #38
- Add support for .NET7/.NET6
- Update and remove unused nuget-dependencies
- Fix #20: Multiple Enum Labels with the Same Value Results in Unusable Output
- Fix #21: Line Break is OS dependent (\r\n vs \n)
- Fix #27: Enum descriptions are only written to the type description text if all enum values have a description
- Fix #28: selecting distinct members when including inherited XML comments
- Fix #31: enum descriptions do not work as expected when enum array is provided
- Fix #17: check schema for null in
DisplayEnumsWithValuesDocumentFilter
- Fix #18: add aliases for "x-enumNames" and "x-enumDescriptions"
- Fix NRE in
InheritDocRequestBodyFilter
andInheritDocParameterFilter
- Add
IncludeXmlCommentsWithRemarks
improvements
- Add message template for
AppendActionCountToTagSummaryDocumentFilter
- Add
IncludeXmlCommentsWithRemarks
improvements
- Fix
IncludeXmlCommentsWithRemarks
- Update nuget-dependencies: update Swashbuckle.AspNetCore to v6.1.5
- Update nuget-dependencies: update Swashbuckle.AspNetCore to v6.1.0
- Fix
DisplayEnumsWithValuesDocumentFilter
for action enum parameters like:
[HttpGet("MyFunction")]
public IActionResult MyFunction(ParameterEnum parameter1)
{
return NoContent();
}
- Add more overloads for
IncludeXmlCommentsWithRemarks
extension method - Update nuget-dependencies: update Swashbuckle.AspNetCore to v6.0.2
- Update nuget-dependencies: update Swashbuckle.AspNetCore to v6.0.0
- Fix some bugs in
IncludeXmlCommentsWithRemarks
option - Add
IncludeXmlCommentsFromInheritDocs
option to add xml comments from inheritdocs (from summary and remarks) into the swagger documentation
- Add
params Type[]
parameters toIncludeXmlCommentsWithRemarks
option to exclude remarks for concrete types
- Add
IncludeXmlCommentsWithRemarks
option to add xml comments from summary and remarks into the swagger documentation - Update nuget-dependencies
- Add
IncludeXEnumRemarks
option to include remarks for descriptions from xml-comments - Fix small bugs
- Fix issue #11
- Fix bug related with removal of required schemes from
AllOf
usingHidePathsAndDefinitionsByRolesDocumentFilter
- Update nuget dependencies for sample WebAPI
- Fix issue #12
- Fix bug with missed required definitions in
HidePathsAndDefinitionsByRolesDocumentFilter
- Fix bug with missed required definitions in
HidePathsAndDefinitionsByRolesDocumentFilter
- Fix bug with OpenAPI operation RequestBody in
HidePathsAndDefinitionsByRolesDocumentFilter
- Fix bug in
HidePathsAndDefinitionsByRolesDocumentFilter
- Fix bug #10
- Add option to choose descriptions source -
FixEnumOptions.DescriptionSource
- Fix small bugs
- Fix bug with
System.MissingMethodException
- Add feature: add configured options to
AddEnumsWithValuesFixFilters
- Fix bug: fix #7 - get descriptions from xml comments
- Fix small bugs
- Fix bug: add fix #6 to
options.AddEnumsWithValuesFixFilters(true);
when usingJsonStringEnumConverter()
- Fix bug: hide Paths and Components with
AuthorizeAttribute
applied to the Controller
- Add
RemovePathsAndComponentsWithoutAcceptedRolesFor
overloaded extension method (withactionName
parameter)
- Allow to use
RemovePathsAndComponentsWithoutAcceptedRolesForController
extension method withoutnew()
constraint
- Fix bug with
AmbiguousMatchException
- Add feature: remove Paths and Definitions from OpenApi documentation for all controller actions without accepted roles
- Add feature: remove Paths and Definitions from OpenApi documentation for specific controller action without accepted roles
- Fix bug: replace
<br>
tag to{Envirinment.NewLine}{Envirinment.NewLine}
for enum descriptions
- Fix bug: fix openApi response content schema in
ChangeResponseByHttpStatusCodeDocumentFilter
- Add xml-comments to nuget package
- Fix bug: use
System.Text.Encodings.Web.JavaScriptEncoder.UnsafeRelaxedJsonEscaping
encoder for responses examples
- Add
ChangeAllResponsesByHttpStatusCode<T>
extension method forSwaggerGenOptions
allows to change all responses by specific http status codes in OpenApi document - Add
TagOrderByNameDocumentFilter
for ordering tags by name in OpenApi document
BREAKING CHANGES (see README.md):
- Close #2 issue: Add support for Swashbuckle.AspNetCore 5.0.0
- Add
AppendActionCountToTagSummaryDocumentFilter
to append action count into the SwaggetTag's descriptions
- Add extension-method
HidePathItemsWithoutAcceptedRoles
for hiding all SwaggerDocument PathItems with added Security information for OAuth2 without accepted roles - Change extension-method name from
EnumsWithValuesFixFilters
toAddEnumsWithValuesFixFilters
- Update
README
- Add an output enums integer values with there strings like
0 = FirstEnumValue
without aStringEnumConverter
in swaggerUI and schema (by default enums will output only their integer values) - Add description to each enum value that has an
[Description]
attribute inswaggerUI
and schema - Fix enum values in generated by
NSwagStudio
or Unchase OpenAPI Connected Service client classes - Add
Getting Started
overview to GitHubREADME
- Release version of
Unchase Swashbuckle Asp.Net Core Extensions