{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-scimlist-response-schema.json",
  "title": "SCIMListResponse",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-scim-api-openapi.yml#/components/schemas/SCIMListResponse",
  "properties": {
    "Resources": {
      "anyOf": [
        {
          "items": {
            "$ref": "#/$defs/SCIMUser"
          },
          "type": "array"
        },
        {
          "items": {
            "$ref": "#/$defs/SCIMGroup"
          },
          "type": "array"
        }
      ],
      "title": "Resources"
    },
    "itemsPerPage": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": 10,
      "title": "Itemsperpage"
    },
    "schemas": {
      "default": [
        "urn:ietf:params:scim:api:messages:2.0:ListResponse"
      ],
      "items": {
        "type": "string"
      },
      "title": "Schemas",
      "type": "array"
    },
    "startIndex": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": 1,
      "title": "Startindex"
    },
    "totalResults": {
      "title": "Totalresults",
      "type": "integer"
    }
  },
  "required": [
    "totalResults",
    "Resources"
  ],
  "type": "object",
  "$defs": {
    "SCIMGroup": {
      "properties": {
        "displayName": {
          "title": "Displayname",
          "type": "string"
        },
        "externalId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Externalid"
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        },
        "members": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/SCIMMember"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Members"
        },
        "meta": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Meta"
        },
        "schemas": {
          "items": {
            "type": "string"
          },
          "title": "Schemas",
          "type": "array"
        }
      },
      "required": [
        "schemas",
        "displayName"
      ],
      "title": "SCIMGroup",
      "type": "object"
    },
    "SCIMMember": {
      "properties": {
        "display": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Display"
        },
        "value": {
          "title": "Value",
          "type": "string"
        }
      },
      "required": [
        "value"
      ],
      "title": "SCIMMember",
      "type": "object"
    },
    "SCIMUser": {
      "properties": {
        "active": {
          "default": true,
          "title": "Active",
          "type": "boolean"
        },
        "displayName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Displayname"
        },
        "emails": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/SCIMUserEmail"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Emails"
        },
        "externalId": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Externalid"
        },
        "groups": {
          "anyOf": [
            {
              "items": {
                "$ref": "#/$defs/SCIMUserGroup"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Groups"
        },
        "id": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Id"
        },
        "meta": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Meta"
        },
        "name": {
          "anyOf": [
            {
              "$ref": "#/$defs/SCIMUserName"
            },
            {
              "type": "null"
            }
          ]
        },
        "schemas": {
          "items": {
            "type": "string"
          },
          "title": "Schemas",
          "type": "array"
        },
        "userName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Username"
        }
      },
      "required": [
        "schemas"
      ],
      "title": "SCIMUser",
      "type": "object"
    },
    "SCIMUserEmail": {
      "properties": {
        "primary": {
          "anyOf": [
            {
              "type": "boolean"
            },
            {
              "type": "null"
            }
          ],
          "title": "Primary"
        },
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Type"
        },
        "value": {
          "format": "email",
          "title": "Value",
          "type": "string"
        }
      },
      "required": [
        "value"
      ],
      "title": "SCIMUserEmail",
      "type": "object"
    },
    "SCIMUserGroup": {
      "properties": {
        "display": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Display"
        },
        "type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "default": "direct",
          "title": "Type"
        },
        "value": {
          "title": "Value",
          "type": "string"
        }
      },
      "required": [
        "value"
      ],
      "title": "SCIMUserGroup",
      "type": "object"
    },
    "SCIMUserName": {
      "properties": {
        "familyName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Familyname"
        },
        "formatted": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Formatted"
        },
        "givenName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Givenname"
        },
        "honorificPrefix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Honorificprefix"
        },
        "honorificSuffix": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Honorificsuffix"
        },
        "middleName": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Middlename"
        }
      },
      "title": "SCIMUserName",
      "type": "object"
    }
  }
}