We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4202a5c commit 851e916Copy full SHA for 851e916
OpenAPI/LearningHub.Nhs.OpenApi/Startup.cs
@@ -83,7 +83,12 @@ public void ConfigureServices(IServiceCollection services)
83
options.UseSqlServer(this.Configuration.GetConnectionString("LearningHub")));
84
services.AddApplicationInsightsTelemetry();
85
services.AddControllers(options => options.Filters.Add(new HttpResponseExceptionFilter()));
86
- services.AddControllers(opt => { opt.Filters.Add(new AuthorizeFilter()); });
+ services.AddControllers(opt => { opt.Filters.Add(new AuthorizeFilter()); })
87
+ .AddJsonOptions(options =>
88
+ {
89
+ options.JsonSerializerOptions.ReferenceHandler = System.Text.Json.Serialization.ReferenceHandler.Preserve;
90
+ });
91
+
92
services.AddSwaggerGen(
93
c =>
94
{
0 commit comments