{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/signicat/main/json-schema/signicat-organization-list-response-schema.json",
  "title": "OrganizationListResponse",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/signicat-siam-openapi.yml#/components/schemas/OrganizationListResponse",
  "type": "object",
  "properties": {
    "schemas": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "uniqueItems": true
    },
    "totalResults": {
      "type": "integer",
      "format": "int32"
    },
    "itemsPerPage": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "startIndex": {
      "type": [
        "integer",
        "null"
      ],
      "format": "int32"
    },
    "previousCursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    },
    "Resources": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/OrganizationResource"
      }
    },
    "id": {
      "type": [
        "string",
        "null"
      ]
    },
    "externalId": {
      "type": [
        "string",
        "null"
      ]
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "required": [
    "Resources"
  ],
  "$defs": {
    "Meta": {
      "type": "null",
      "properties": {
        "resourceType": {
          "type": [
            "string",
            "null"
          ]
        },
        "created": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "lastModified": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        },
        "location": {
          "type": [
            "string",
            "null"
          ],
          "format": "uri"
        },
        "version": {
          "type": [
            "string",
            "null"
          ]
        },
        "createdMillis": {
          "$ref": "#/$defs/Meta",
          "writeOnly": true
        },
        "lastModifiedMillis": {
          "$ref": "#/$defs/Meta",
          "writeOnly": true
        }
      }
    },
    "OrganizationResource": {
      "type": "object",
      "properties": {
        "schemas": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "uniqueItems": true
        },
        "id": {
          "type": [
            "string",
            "null"
          ]
        },
        "externalId": {
          "type": [
            "string",
            "null"
          ]
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "active": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "customAttributes": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "$ref": "#/$defs/ScimInboundCustomAttribute"
          },
          "writeOnly": true
        },
        "parent": {
          "$ref": "#/$defs/ScimOrganization"
        },
        "meta": {
          "$ref": "#/$defs/Meta"
        }
      }
    },
    "ScimInboundCustomAttribute": {
      "type": "object",
      "properties": {
        "value": {
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "ScimOrganization": {
      "type": "null",
      "properties": {
        "value": {
          "type": "string"
        },
        "display": {
          "type": "string"
        },
        "ref": {
          "type": "string"
        },
        "type": {
          "type": "string",
          "enum": [
            "GROUP",
            "ORGANIZATION",
            "ACCOUNT"
          ]
        }
      }
    }
  }
}