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

Feature Request: Ability to Sort Properties #1004

Open
SingleShot opened this issue Mar 28, 2024 · 1 comment
Open

Feature Request: Ability to Sort Properties #1004

SingleShot opened this issue Mar 28, 2024 · 1 comment

Comments

@SingleShot
Copy link

SingleShot commented Mar 28, 2024

I like my properties being sorted alphabetically. I can author a spec with them ordered, but when reusing schemas to build more complex objects they are no longer sorted. For example, in this situation:

allOf:
  - $ref: '#/components/schemas/object1'
  - $ref: '#/components/schemas/object2'

The properties of object2 will be appended to the properties of object1. I'd like to be able to set something like:
sort-properties = "true" and have the properties of both objects in this example collectively sorted together.

@wparad
Copy link

wparad commented Mar 28, 2024

@SingleShot I can imagine the difficulty of getting that right while merging properties. If you don't get that resolved here, I'm wondering if that's something we could tackle over at the OpenAPI Explorer

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

No branches or pull requests

2 participants