egil / Htmxor

Supercharges Blazor static server side rendering (SSR) by seamlessly integrating the Htmx.org frontend library.
MIT License
109 stars 12 forks source link

SwapStyle enum serialization is incorrect #51

Closed tanczosm closed 2 months ago

tanczosm commented 2 months ago

The current serializer for SwapStyle uses JsonNamingPolicy.CamelCase, which converts SwapStyle.AfterBegin to "afterBegin" instead of the correct "afterbegin". This issue impacts several enum values.

egil commented 2 months ago

That's an easy fix. Create a SwapStyleConverter : JsonConverter<SwapStyle> in the serialization folder and register it with the sterilization context.