Skip to content

Commit fa9575c

Browse files
committed
Making everything internal to the Kernel camelCase
1 parent bf25f78 commit fa9575c

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

Source/Kernel/Grains/EventTypes/EventTypes.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
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;
54
using Cratis.Chronicle.Concepts;
65
using Cratis.Chronicle.Concepts.Events;
76
using 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()));

Source/Kernel/Setup/Serialization/SerializationConfigurationExtensions.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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);

0 commit comments

Comments
 (0)