{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oyster-hr/json-schema/oyster-hr-end-client-schema.json",
  "title": "endClient",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oyster-hr-reseller-api-openapi.yml#/components/schemas/endClient",
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "registrationNumber": {
      "type": "string"
    },
    "countryOfIncorporation": {
      "type": "string"
    },
    "websiteUrl": {
      "type": [
        "string",
        "null"
      ]
    },
    "address": {
      "type": "object",
      "$ref": "#/$defs/address"
    }
  },
  "required": [
    "name",
    "registrationNumber",
    "countryOfIncorporation",
    "websiteUrl",
    "address"
  ],
  "$defs": {
    "address": {
      "type": "object",
      "properties": {
        "addressId": {
          "type": "string"
        },
        "addressLine1": {
          "type": [
            "string",
            "null"
          ]
        },
        "addressLine2": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "region": {
          "type": [
            "string",
            "null"
          ]
        },
        "countryCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "postalCode": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "addressId",
        "addressLine1",
        "postalCode"
      ]
    }
  }
}