{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/esyurl-fyi/json-schema/esyurl-fyi-domain-schema.json",
  "title": "Domain",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/esyurl-fyi-domain-api-openapi.yml#/components/schemas/Domain",
  "type": "object",
  "properties": {
    "domain": {
      "type": [
        "string",
        "null"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "none",
        "pending_validation",
        "provisioning",
        "pending_dns",
        "active",
        "failed"
      ]
    },
    "url": {
      "type": "string",
      "description": "https://{domain}, once active"
    },
    "target": {
      "type": "string",
      "description": "What your domain must CNAME to"
    },
    "dnsRecords": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "purpose": {
            "type": "string"
          },
          "name": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "done": {
            "type": "boolean"
          }
        }
      }
    },
    "instructions": {
      "type": "string"
    },
    "lastError": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    }
  }
}