{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ex2-com/json-schema/ex2-com-domain-availability-schema.json",
  "title": "DomainAvailability",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ex2-com-openapi.json#/components/schemas/DomainAvailability",
  "type": "object",
  "required": [
    "domain",
    "available",
    "currency",
    "tld",
    "period_years",
    "register",
    "transfer",
    "renew",
    "order_url",
    "transfer_url"
  ],
  "properties": {
    "domain": {
      "type": "string",
      "description": "The name checked, lower case, in its ASCII (xn--) form."
    },
    "available": {
      "type": "boolean",
      "description": "Free to register now (WHOIS); a premium or reserved name can still fail at checkout."
    },
    "currency": {
      "type": "string"
    },
    "tld": {
      "type": "string"
    },
    "period_years": {
      "type": "integer",
      "const": 1
    },
    "register": {
      "oneOf": [
        {
          "type": "number",
          "minimum": 0,
          "description": "In the answer's currency, excluding taxes."
        },
        {
          "type": "null"
        }
      ]
    },
    "transfer": {
      "oneOf": [
        {
          "type": "number",
          "minimum": 0,
          "description": "In the answer's currency, excluding taxes."
        },
        {
          "type": "null"
        }
      ]
    },
    "renew": {
      "oneOf": [
        {
          "type": "number",
          "minimum": 0,
          "description": "In the answer's currency, excluding taxes."
        },
        {
          "type": "null"
        }
      ]
    },
    "order_url": {
      "oneOf": [
        {
          "type": "string",
          "format": "uri"
        },
        {
          "type": "null"
        }
      ],
      "description": "The cart, to register it (free names)."
    },
    "transfer_url": {
      "oneOf": [
        {
          "type": "string",
          "format": "uri"
        },
        {
          "type": "null"
        }
      ],
      "description": "The cart, to transfer it to Ex2 (taken names)."
    }
  }
}