Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: UseAllOfToExtendReferenceSchemas in OpenApiExtensions.AddSwagger… #317

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions source/App/documents/release-notes/release-notes.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# App Release notes

## Version 12.2.0

- For `WebApp` dependency injection, added call to `SwaggerGenOptions.UseAllOfToExtendReferenceSchemas` in `OpenApiExtensions.AddSwaggerForWebApp`.

## Version 12.1.0

- In `FunctionApp` project:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ limitations under the License.

<PropertyGroup>
<PackageId>Energinet.DataHub.Core.App.Common.Abstractions</PackageId>
<PackageVersion>12.1.0$(VersionSuffix)</PackageVersion>
<PackageVersion>12.2.0$(VersionSuffix)</PackageVersion>
<Title>Azure Function Common Abstractions Library</Title>
<Company>Energinet-DataHub</Company>
<Authors>Energinet-DataHub</Authors>
Expand Down
2 changes: 1 addition & 1 deletion source/App/source/Common/Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ limitations under the License.

<PropertyGroup>
<PackageId>Energinet.DataHub.Core.App.Common</PackageId>
<PackageVersion>12.1.0$(VersionSuffix)</PackageVersion>
<PackageVersion>12.2.0$(VersionSuffix)</PackageVersion>
<Title>Azure Function Common Library</Title>
<Company>Energinet-DataHub</Company>
<Authors>Energinet-DataHub</Authors>
Expand Down
2 changes: 1 addition & 1 deletion source/App/source/FunctionApp/FunctionApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ limitations under the License.

<PropertyGroup>
<PackageId>Energinet.DataHub.Core.App.FunctionApp</PackageId>
<PackageVersion>12.1.0$(VersionSuffix)</PackageVersion>
<PackageVersion>12.2.0$(VersionSuffix)</PackageVersion>
<Title>Azure Function App Library</Title>
<Company>Energinet-DataHub</Company>
<Authors>Energinet-DataHub</Authors>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
using Energinet.DataHub.Core.App.WebApp.Extensions.Options;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.OpenApi.Models;

namespace Energinet.DataHub.Core.App.WebApp.Extensions.DependencyInjection;
Expand Down Expand Up @@ -75,6 +74,7 @@ public static IServiceCollection AddSwaggerForWebApp(
services.AddSwaggerGen(options =>
{
options.SupportNonNullableReferenceTypes();
options.UseAllOfToExtendReferenceSchemas();

// Set the comments path for the Swagger JSON and UI.
// See: https://learn.microsoft.com/en-us/aspnet/core/tutorials/getting-started-with-swashbuckle?view=aspnetcore-8.0&tabs=visual-studio#xml-comments
Expand Down
2 changes: 1 addition & 1 deletion source/App/source/WebApp/WebApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ limitations under the License.

<PropertyGroup>
<PackageId>Energinet.DataHub.Core.App.WebApp</PackageId>
<PackageVersion>12.1.0$(VersionSuffix)</PackageVersion>
<PackageVersion>12.2.0$(VersionSuffix)</PackageVersion>
<Title>Azure Web App Library</Title>
<Company>Energinet-DataHub</Company>
<Authors>Energinet-DataHub</Authors>
Expand Down
Loading