{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hint-health/main/json-schema/hint-health-company-update-sanitizer-schema.json",
  "title": "CompanyUpdateSanitizer",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hint-health-company-api-openapi.yml#/components/schemas/CompanyUpdateSanitizer",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "address": {
      "$ref": "#/$defs/Address"
    },
    "phones": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PhoneNumber"
      }
    }
  },
  "$defs": {
    "Address": {
      "type": "object",
      "properties": {
        "line1": {
          "type": "string"
        },
        "line2": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "zip": {
          "type": "string"
        },
        "country": {
          "type": "string"
        }
      },
      "required": [
        "line1",
        "city",
        "state",
        "zip"
      ]
    },
    "PhoneNumber": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "number": {
          "type": "number"
        },
        "type": {
          "type": "string"
        },
        "us_formattable": {
          "type": "boolean",
          "description": "Make this false if your number is not exactly 10 digits"
        }
      },
      "required": [
        "number",
        "type"
      ]
    }
  }
}