{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/faxterra-com/json-schema/faxterra-com-directory-line-schema.json",
  "title": "DirectoryLine",
  "x-generated": "2026-12-02",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/faxterra-com-openapi.json#/components/schemas/DirectoryLine",
  "type": "object",
  "properties": {
    "number": {
      "type": "string",
      "description": "E.164"
    },
    "organization": {
      "type": "string"
    },
    "purpose": {
      "type": "string",
      "description": "What the line is for, as the institution names it"
    },
    "form": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "kind": {
      "type": "string",
      "enum": [
        "fax",
        "voice"
      ],
      "description": "`voice` is a phone line, not a fax line: use `alternative`"
    },
    "alternative": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "number": {
              "type": "string"
            },
            "purpose": {
              "type": "string"
            }
          },
          "required": [
            "number",
            "purpose"
          ]
        },
        {
          "type": "null"
        }
      ]
    },
    "lastChecked": {
      "anyOf": [
        {
          "type": "string",
          "description": "YYYY-MM-DD a person or our verifier last confirmed it"
        },
        {
          "type": "null"
        }
      ]
    },
    "source": {
      "type": "string"
    },
    "page": {
      "anyOf": [
        {
          "type": "string",
          "format": "uri"
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "number",
    "organization",
    "purpose",
    "form",
    "kind",
    "alternative",
    "lastChecked",
    "source",
    "page"
  ]
}