{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://offeringprotocol.org/schemas/sort-capability-source.schema.json",
  "title": "ODP Sort Definition source",
  "type": "object",
  "oneOf": [
    {
      "required": [
        "inline"
      ],
      "not": {
        "required": [
          "linked"
        ]
      }
    },
    {
      "required": [
        "linked"
      ],
      "not": {
        "required": [
          "inline"
        ]
      }
    }
  ],
  "properties": {
    "inline": {
      "type": "array",
      "minItems": 1,
      "maxItems": 16,
      "items": {
        "$ref": "sort-definition.schema.json"
      }
    },
    "linked": {
      "$ref": "capability-link.schema.json"
    }
  }
}
