{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/drillerdb-com/json-schema/drillerdb-com-contact-response-schema.json",
  "title": "ContactResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/drillerdb-com-contacts-api-openapi.yml#/components/schemas/ContactResponse",
  "type": "object",
  "properties": {
    "data": {
      "$ref": "#/$defs/Contact"
    },
    "meta": {
      "$ref": "#/$defs/RequestMeta"
    },
    "links": {
      "$ref": "#/$defs/ItemLinks"
    }
  },
  "required": [
    "data",
    "meta",
    "links"
  ],
  "$defs": {
    "Address": {
      "type": "object",
      "properties": {
        "line1": {
          "type": [
            "string",
            "null"
          ]
        },
        "line2": {
          "type": [
            "string",
            "null"
          ]
        },
        "city": {
          "type": [
            "string",
            "null"
          ]
        },
        "state": {
          "type": [
            "string",
            "null"
          ]
        },
        "postal_code": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "Contact": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "business_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "first_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "last_name": {
          "type": [
            "string",
            "null"
          ]
        },
        "email": {
          "type": [
            "string",
            "null"
          ]
        },
        "billing_email": {
          "type": [
            "string",
            "null"
          ]
        },
        "phone": {
          "type": [
            "string",
            "null"
          ]
        },
        "cell": {
          "type": [
            "string",
            "null"
          ]
        },
        "address": {
          "$ref": "#/$defs/Address"
        },
        "is_client": {
          "type": "boolean"
        },
        "is_vendor": {
          "type": "boolean"
        },
        "is_active": {
          "type": "boolean"
        },
        "updated_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "address",
        "is_client",
        "is_vendor",
        "is_active"
      ]
    },
    "ItemLinks": {
      "type": "object",
      "properties": {
        "self": {
          "type": "string"
        }
      },
      "required": [
        "self"
      ]
    },
    "RequestMeta": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "request_id": {
          "type": "string"
        }
      },
      "required": [
        "request_id"
      ]
    }
  }
}