Skip to content

fix: alphabetizeProperties option #2700

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

jayzhang
Copy link

@jayzhang jayzhang commented Apr 18, 2025

Description

alphabetizeProperties option does not work, this PR aims to fix this.

Another fix is default indent size is 4 for most of the json files.

Related Issue

#2698

Motivation and Context

Previous Behaviour / Output

No matter alphabetizeProperties is true or false, the output interface still sort the property in alphabet order.

New Behaviour / Output

When not set or set to false, the default output properties are ordered in schema definition order. When set to true, the output order is in alphabet order.

How Has This Been Tested?

Testing code (default false):
image

Output (schema order):
image

Testing code (set to true):
image

Output (alphabet order):
image

Screenshots (if appropriate):

@jayzhang jayzhang changed the title fix: fix: alphabetizeProperties option Apr 18, 2025
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