{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/silvercar/json-schema/silvercar-admin-drivers-response-schema.json",
  "title": "AdminDriversResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/silvercar-drivers-api-openapi.yml#/components/schemas/AdminDriversResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "description": "Additional Driver ID"
    },
    "email": {
      "type": "string",
      "description": "Email"
    },
    "first_name": {
      "type": "string",
      "description": "First name"
    },
    "last_name": {
      "type": "string",
      "description": "Last name"
    },
    "license_number": {
      "type": "string",
      "description": "The drivers license number"
    },
    "license_subregion": {
      "type": "string",
      "description": "The subregion of the drivers license"
    },
    "license_expires_on": {
      "type": "string",
      "description": "The expiration date of the drivers license formatted like YYYY-MM-DD"
    },
    "born_on": {
      "type": "string",
      "description": "The date of birth formatted like YYYY-MM-DD"
    },
    "country": {
      "type": "string",
      "description": "The country of the drivers license"
    },
    "phone_number": {
      "type": "string",
      "description": "The phone number unformatted"
    },
    "signature": {
      "type": "boolean",
      "description": "Has a signature image by signing their agreement"
    },
    "links": {
      "type": "object",
      "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"
        }
      }
    }
  }
}