egil / Htmxor

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

SwapStyle enum serialization is incorrect #51

Closed tanczosm closed 6 months ago

tanczosm commented 6 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 6 months ago

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