File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed
Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 11// Copyright (c) Cratis. All rights reserved.
22// Licensed under the MIT license. See LICENSE file in the project root for full license information.
33
4- using System . Text . Json ;
54using Cratis . Chronicle . Concepts ;
65using Cratis . Chronicle . Concepts . Events ;
76using Cratis . Chronicle . Schemas ;
@@ -41,11 +40,7 @@ public EventTypes(
4140 {
4241 var settings = new SystemTextJsonSchemaGeneratorSettings ( )
4342 {
44- AllowReferencesWithProperties = true ,
45- SerializerOptions = new JsonSerializerOptions
46- {
47- PropertyNamingPolicy = JsonNamingPolicy . CamelCase ,
48- }
43+ AllowReferencesWithProperties = true
4944 } ;
5045 settings . ReflectionService = new ReflectionService ( settings . ReflectionService ) ;
5146 settings . SchemaProcessors . Add ( new TypeFormatSchemaProcessor ( new TypeFormats ( ) ) ) ;
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ static void Configure(this IServiceCollection services)
111111 {
112112 var options = new JsonSerializerOptions
113113 {
114+ PropertyNamingPolicy = JsonNamingPolicy . CamelCase ,
114115 DefaultIgnoreCondition = JsonIgnoreCondition . WhenWritingNull ,
115116 } ;
116117 ApplyConverters ( options ) ;
You can’t perform that action at this time.
0 commit comments