Skip to content

Json schema array define ordering #1197

Closed
@Willem-J-an

Description

@Willem-J-an

When defining an array in a json schema, I would like to be able to define the items of the array to be in ascending/descending order.

{
  "$schema": "http://json-schema.org/draft-07/schema",
  "type": "array",
  "additionalItems": false,
>>>>>    "sort": "ascending",
  "items": {
     "type": "string"
}

Has this been considered, or could this be considered? In this case I need ordering of json primitives, but I have also seen a request for ordering of objects here.

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