{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api.allianz-trade.com/schemas/trade-policy-joint_insured-schema.json",
  "title": "JointInsured",
  "type": "object",
  "description": "A joint insured entity registered under a policy",
  "properties": {
    "jointInsuredId": {
      "type": "string",
      "description": "Unique identifier for the joint insured"
    },
    "policyId": {
      "type": "string",
      "description": "Parent policy identifier"
    },
    "companyName": {
      "type": "string",
      "description": "Legal name of the joint insured company"
    },
    "registrationNumber": {
      "type": "string",
      "description": "Company registration number"
    },
    "country": {
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code"
    },
    "status": {
      "type": "string",
      "description": "Current status of the joint insured",
      "enum": [
        "active",
        "inactive"
      ]
    }
  }
}