{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wisdomtree/json-schema/wisdomtree-organisation-schema.json",
  "title": "Organisation",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wisdomtree-organizations-api-openapi.yml#/components/schemas/Organisation",
  "type": "object",
  "properties": {
    "address": {
      "$ref": "#/$defs/OrganisationAddress"
    },
    "emails": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "readOnly": true
    },
    "wallets": {
      "allOf": [
        {
          "$ref": "#/$defs/WalletResponse"
        }
      ],
      "readOnly": true
    },
    "guid": {
      "type": "string",
      "format": "uuid",
      "readOnly": true
    },
    "name": {
      "type": "string",
      "maxLength": 255
    },
    "legal_name": {
      "type": "string",
      "maxLength": 255
    }
  },
  "required": [
    "emails",
    "guid",
    "legal_name",
    "name",
    "wallets"
  ],
  "$defs": {
    "OrganisationAddress": {
      "type": "object",
      "properties": {
        "line_1": {
          "type": "string",
          "maxLength": 255
        },
        "line_2": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 255
        },
        "line_3": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 255
        },
        "town": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 255
        },
        "area": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 255
        },
        "post_code": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 255
        },
        "country": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 255
        },
        "telephone_number": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 255
        },
        "mobile_number": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 255
        }
      },
      "required": [
        "line_1"
      ]
    },
    "WalletDetails": {
      "type": "object",
      "properties": {
        "wallet_guid": {
          "type": "string",
          "format": "uuid"
        },
        "public_key": {
          "type": "string",
          "maxLength": 256
        },
        "status": {
          "type": "string",
          "description": "Created or Approved"
        }
      },
      "required": [
        "public_key",
        "status",
        "wallet_guid"
      ]
    },
    "WalletResponse": {
      "type": "object",
      "properties": {
        "data": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "$ref": "#/$defs/WalletDetails"
            }
          }
        }
      },
      "required": [
        "data"
      ]
    }
  }
}