{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/silvercar/json-schema/silvercar-admin-contract-customer-response-schema.json",
  "title": "AdminContractCustomerResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/silvercar-customers-api-openapi.yml#/components/schemas/AdminContractCustomerResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Customer ID"
    },
    "first_name": {
      "type": "string",
      "description": "First name"
    },
    "last_name": {
      "type": "string",
      "description": "Last name"
    },
    "phone_number": {
      "type": "string",
      "description": "Customer phone number, stripped to digits only"
    },
    "email": {
      "type": "string",
      "description": "Customer email"
    },
    "links": {
      "properties": {
        "contract": {
          "$ref": "#/$defs/HypermediaLink"
        }
      }
    }
  },
  "$defs": {
    "HypermediaLink": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "description": "ID of the associated resource"
        },
        "href": {
          "type": "string",
          "description": "Link to the associated resource"
        }
      }
    }
  }
}