Skip to content

Commit e84fdf4

Browse files
Set Json Serializer to not change names
1 parent 0e7ee8c commit e84fdf4

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ASCOM.Alpaca.Simulators/Startup.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ public void ConfigureServices(IServiceCollection services)
6363
services.AddScoped<IUserService, UserService>();
6464
services.AddScoped<AuthorizationFilter>();
6565
services.AddBlazoredToast();
66+
67+
//Do not automatically change JSON to Camel Case
68+
services.AddControllers().AddJsonOptions(options => options.JsonSerializerOptions.PropertyNamingPolicy = null);
6669
}
6770

6871
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.

0 commit comments

Comments
 (0)