Skip to content

Commit

Permalink
refactor: update serialization namespace (#24)
Browse files Browse the repository at this point in the history
Co-authored-by: Egil Hansen <egil@assimilated.dk>
  • Loading branch information
tanczosm and egil authored Apr 30, 2024
1 parent d24ae2c commit fba9139
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion samples/HtmxBlazorSSR/Components/_Imports.razor
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,4 @@
@using HtmxBlazorSSR.Components
@using HtmxBlazorSSR.Components.FlashMessages
@using Htmxor
@using Htmxor.Configuration
@using Htmxor.Components
2 changes: 1 addition & 1 deletion src/Htmxor/Components/HtmxHeadOutlet.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Text.Json;
using Htmxor.Configuration.Serialization;
using Htmxor.Serialization;
using Microsoft.AspNetCore.Components;
using Microsoft.Extensions.DependencyInjection;

Expand Down
1 change: 0 additions & 1 deletion src/Htmxor/HtmxConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
using System.Text.Json.Serialization;
using System.Text.Json.Serialization.Metadata;
using Htmxor.Antiforgery;
using Htmxor.Configuration.Serialization;

namespace Htmxor;

Expand Down
2 changes: 1 addition & 1 deletion src/Htmxor/Http/HtmxResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Runtime.CompilerServices;
using System.Text;
using System.Text.Json;
using Htmxor.Configuration.Serialization;
using Htmxor.Serialization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Http.Json;
using Microsoft.AspNetCore.Routing;
Expand Down
3 changes: 1 addition & 2 deletions src/Htmxor/Serialization/HtmxJsonSerializerContext.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
using System.Text.Json.Serialization;
using Htmxor.Http;
using Htmxor.Serialization;

namespace Htmxor.Configuration.Serialization;
namespace Htmxor.Serialization;

[JsonSourceGenerationOptions(
PropertyNamingPolicy = JsonKnownNamingPolicy.CamelCase,
Expand Down

0 comments on commit fba9139

Please sign in to comment.