Skip to content

Commit

Permalink
Return distinct attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
mattfrear committed Sep 7, 2023
1 parent 4f554eb commit b8df9aa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [7.0.10] - 2023-09-07
- Fix bug in GetControllerAndActionAttributes, introduced by the last release which causes AddResponseHeadersFilter to fail.

## [7.0.9] - 2023-09-06
- Issue #227 - SecurityRequirementsOperationFilter for minimal APIs doesn't work with Swashbuckle.AspNetCore > 6.3.0 (thanks @hartmair)

Expand Down
6 changes: 3 additions & 3 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<TargetFrameworks>netstandard2.0;netcoreapp3.1;net5.0</TargetFrameworks>
<PackageVersion>7.0.9</PackageVersion>
<PackageVersion>7.0.10</PackageVersion>
<Authors>Matt Frear</Authors>
<Description>Some additional useful filters for Swashbuckle.AspNetCore. This package replaces Swashbuckle.AspNetCore.Examples.</Description>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
Expand All @@ -11,15 +11,15 @@
<Copyright>2023</Copyright>
<PackageTags>Swagger Swashbuckle</PackageTags>
<PackageReleaseNotes>
Fix issue #227
Fix bug in GetControllerAndActionAttributes
</PackageReleaseNotes>
<RepositoryType>git</RepositoryType>
<Repository>https://github.com/mattfrear/Swashbuckle.AspNetCore.Filters</Repository>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
</PropertyGroup>

<PropertyGroup>
<VersionPrefix>7.0.9</VersionPrefix>
<VersionPrefix>7.0.10</VersionPrefix>
<VersionSuffix></VersionSuffix>
<SignAssembly>True</SignAssembly>
<AssemblyOriginatorKeyFile>..\key.snk</AssemblyOriginatorKeyFile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static IEnumerable<T> GetControllerAndActionAttributes<T>(this OperationF
result.AddRange(endpointAttributes);
}
#endif
return result;
return result.Distinct();
}
}
}

0 comments on commit b8df9aa

Please sign in to comment.