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

Allow serialized properties to be sorted alphabetically #546

Open
chrisparton1991 opened this issue Aug 9, 2023 · 0 comments
Open

Allow serialized properties to be sorted alphabetically #546

chrisparton1991 opened this issue Aug 9, 2023 · 0 comments
Labels
type: enhancement New feature or request

Comments

@chrisparton1991
Copy link

Feature description

Jackson has a setting that will output fields in alphabetical order, which can be enabled through Micronaut (when using Jackson) via jackson.deserialization.sort-properties-alphabetically=true.

I store JSON documents as regression test snapshots, and sorting properties alphabetically makes the documents more stable.

My workaround for the time being will be to take the JSON produced by Serde and run it back through Jackson in my tests to sort the properties.

@yawkat yawkat added the type: enhancement New feature or request label Aug 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants