Skip to content

Commit

Permalink
Merge pull request #903 from dlcs/bugfix/swagger-property-names
Browse files Browse the repository at this point in the history
Respect JsonPropertyName attributes in generated swagger
  • Loading branch information
donaldgray committed Sep 18, 2024
2 parents 63574fa + d669eb8 commit c736030
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/protagonist/API/API.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="6.0.22" />
<PackageReference Include="Serilog.AspNetCore" Version="5.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="6.3.1" />
<PackageReference Include="Swashbuckle.AspNetCore.Newtonsoft" Version="6.3.1 " />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 2 additions & 0 deletions src/protagonist/API/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,8 @@ public void ConfigureServices(IServiceCollection services)
options.SerializerSettings.ApplyHydraSerializationSettings();
});

services.AddSwaggerGenNewtonsoftSupport();

services
.AddHealthChecks()
.AddDbContextCheck<DlcsContext>("DLCS-DB");
Expand Down

0 comments on commit c736030

Please sign in to comment.