{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/assignar/json-schema/assignar-clients-schema.json",
  "title": "Clients",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/assignar-clients-api-openapi.yml#/components/schemas/Clients",
  "type": "array",
  "items": {
    "$ref": "#/$defs/Client"
  },
  "$defs": {
    "Client": {
      "type": "object",
      "required": [
        "name",
        "company_name"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "readOnly": true
        },
        "name": {
          "type": "string"
        },
        "company_name": {
          "type": "string"
        },
        "abn": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "office_phone": {
          "type": "string"
        },
        "mobile": {
          "type": "string"
        },
        "address_1": {
          "type": "string"
        },
        "address_geo": {
          "type": [
            "string",
            "null"
          ],
          "readOnly": true
        },
        "address_2": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "postcode": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "comments": {
          "type": "string"
        },
        "external_id": {
          "type": "string"
        },
        "active": {
          "type": "boolean"
        },
        "modified_by": {
          "type": "string",
          "readOnly": true
        },
        "modified_time": {
          "type": "string",
          "format": "date-time",
          "readOnly": true
        },
        "integration_id": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    }
  }
}