Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework the MiniMessage serializer to consolidate behavior into resolvers #703

Merged
merged 10 commits into from Feb 26, 2022

Conversation

zml2008
Copy link
Member

@zml2008 zml2008 commented Feb 24, 2022

Currently, this is only exposed internally, but after development in
future releases this may begin to be exposed more widely.

Fixes #513
Fixes #526

I've currently got the core of the system here, and all reproducible tags exposed to the serializer. Many tests fail due to differences in escaping and tag order. Much of this is subjective, and some will need reconciling with the quirks of the parser to ensure round-trippability of the whole system.

I would like review on this to be focused on correctness and style of the generated output, and API exposed on MiniMessage instances. API design review for the serialization system itself can be provided, but beyond small issues or complete blockers, I would like to delay discussion on the structure of the serialization API until after 4.10.0 has been released. All of the serialization system is internal API that is still subject to change, and it will likely change as we refine it later on. Design discussion is welcome in #702.

Copy link
Member

@kezz kezz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a really nice API - makes a great addition to MiniMessage :)

This was referenced Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Builder strict(true) method has no effect when serialising Serializer not serializing decoration correctly
3 participants