{
  "$id": "https://raw.githubusercontent.com/i2-open/i2scim/master/spec/schema/scim-searchRequest.schema.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "JSON Schema for a SCIM Search Request per Sec 3.4.3 RFC7644",
  "properties": {
    "attributes": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "count": {
      "minimum": 1,
      "type": "integer"
    },
    "excludedAttributes": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "filter": {
      "type": "string"
    },
    "schemas": {
      "items": {
        "enum": [
          "urn:ietf:params:scim:api:messages:2.0:SearchRequest"
        ]
      },
      "type": "array"
    },
    "sortBy": {
      "type": "string"
    },
    "sortOrder": {
      "enum": [
        "ascending",
        "descending"
      ],
      "type": "string"
    },
    "startIndex": {
      "minimum": 0,
      "type": "integer"
    }
  },
  "required": [
    "schemas"
  ],
  "title": "SCIM Search Request",
  "type": "object"
}