{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/wso2/main/json-schema/wso2-organization-list-schema.json",
  "title": "Organization List",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wso2-organizations-api-openapi.yml#/components/schemas/OrganizationList",
  "type": "object",
  "properties": {
    "count": {
      "type": "integer",
      "description": "Number of Organizationa returned.\n"
    },
    "list": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Organization"
      }
    }
  },
  "$defs": {
    "Organization": {
      "title": "Organization",
      "required": [
        "externalOrganizationId"
      ],
      "type": "object",
      "properties": {
        "organizationId": {
          "type": "string",
          "readOnly": true,
          "description": "UUID of the organization.\n"
        },
        "externalOrganizationId": {
          "type": "string",
          "description": "External id of the organization.\n"
        },
        "parentOrganizationId": {
          "type": "string",
          "readOnly": true,
          "description": "UUID of the parent organization if there is any.\n"
        },
        "displayName": {
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        "description": {
          "maxLength": 1023,
          "type": "string"
        }
      }
    }
  }
}