Skip to content

Commit

Permalink
pascalcase for const
Browse files Browse the repository at this point in the history
  • Loading branch information
HauklandJ committed Oct 4, 2024
1 parent f1d1ace commit f100839
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ internal JsonSettingsNameAttribute(string name)

internal static class JsonSettingNames
{
internal const string ALTINN_API = "AltinnApi";
internal const string AltinnApi = "AltinnApi";
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ internal class AltinnControllerConventions : IControllerModelConvention
{
public void Apply(ControllerModel controller)
{
controller.Filters.Add(new JsonSettingsNameAttribute(JsonSettingNames.ALTINN_API));
controller.Filters.Add(new JsonSettingsNameAttribute(JsonSettingNames.AltinnApi));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static void AddAltinnAppControllersWithViews(this IServiceCollection serv
.AddApplicationPart(typeof(InstancesController).Assembly)
.AddXmlSerializerFormatters()
.AddJsonOptions(
JsonSettingNames.ALTINN_API,
JsonSettingNames.AltinnApi,
options =>
{
options.JsonSerializerOptions.PropertyNamingPolicy = System.Text.Json.JsonNamingPolicy.CamelCase;
Expand Down

0 comments on commit f100839

Please sign in to comment.