{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/namemy-app/json-schema/namemy-app-domain-schema.json",
  "title": "Domain",
  "x-generated": "2026-11-19",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/namemy-app-openapi.yml#/components/schemas/Domain",
  "type": "object",
  "properties": {
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "active",
        "expired",
        "pending"
      ]
    },
    "expiresAt": {
      "type": "string",
      "format": "date-time"
    },
    "autoRenew": {
      "type": "boolean"
    },
    "privacyEnabled": {
      "type": "boolean"
    },
    "ownershipType": {
      "type": "string",
      "enum": [
        "owned",
        "connected",
        "transferred"
      ]
    },
    "purchasePrice": {
      "type": "number"
    },
    "renewalPrice": {
      "type": "number"
    },
    "nameservers": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "dnsProvider": {
      "type": "string"
    },
    "dnsRecords": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string"
          },
          "host": {
            "type": "string"
          },
          "value": {
            "type": "string"
          },
          "ttl": {
            "type": "integer"
          }
        }
      }
    },
    "emailForwards": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "alias": {
            "type": "string"
          },
          "forwardTo": {
            "type": "string"
          },
          "status": {
            "type": "string"
          }
        }
      }
    }
  }
}