From 976498dc5069e5552f10b84e75a84aef7abca35e Mon Sep 17 00:00:00 2001 From: maxchil Date: Sun, 18 Oct 2020 11:19:50 +0200 Subject: [PATCH] change enum serialization (#68) change enum serialization Co-authored-by: MaxchilKH --- src/InternshipSystem.Api/InternshipSystem.Api.csproj | 3 ++- src/InternshipSystem.Api/Startup.cs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/InternshipSystem.Api/InternshipSystem.Api.csproj b/src/InternshipSystem.Api/InternshipSystem.Api.csproj index 00db90f..f512388 100644 --- a/src/InternshipSystem.Api/InternshipSystem.Api.csproj +++ b/src/InternshipSystem.Api/InternshipSystem.Api.csproj @@ -17,7 +17,8 @@ - + + diff --git a/src/InternshipSystem.Api/Startup.cs b/src/InternshipSystem.Api/Startup.cs index 94246e8..595b43e 100644 --- a/src/InternshipSystem.Api/Startup.cs +++ b/src/InternshipSystem.Api/Startup.cs @@ -57,6 +57,7 @@ namespace InternshipSystem.Api var xmlPath = Path.Combine(AppContext.BaseDirectory, xmlFile); options.IncludeXmlComments(xmlPath); }) + .AddSwaggerGenNewtonsoftSupport() .AddControllers(o => { o.ModelBinderProviders.Insert(0, new UserBinderProvider()); }) .AddNewtonsoftJson(options => {