Skip to content

Clean up serialization#45

Merged
inxilpro merged 3 commits intomainfrom
chris/clean-up-serialization
Dec 15, 2023
Merged

Clean up serialization#45
inxilpro merged 3 commits intomainfrom
chris/clean-up-serialization

Conversation

@inxilpro
Copy link
Copy Markdown
Contributor

@inxilpro inxilpro commented Dec 15, 2023

We are currently using the Symfony ObjectNormalizer which is a little over-eager to deserialize data via methods. This means that if your state has a method with the same name as a property, that can cause problems…

This PR moves to the less-aggressive PropertyNormalizer, which should be good for almost everyone. It also makes the normalization pipeline configurable, if you want to register your own normalizers.

That said, we may look to implement our own serialization system that either is a fork of Livewire synths or at least plays nicely with synths—so this could just be a stop-gap measure.

I'm not 100% sure, but this could also help address #43.

@inxilpro inxilpro merged commit 4843b9c into main Dec 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant