Skip to content

Feature Request: Ability to Sort Properties  #1004

Open

Description

@SingleShot

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.

Activity

  1. wparad commented on Mar 28, 2024

    @wparad

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions