{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/vee3-io/json-schema/vee3-io-domains-register-request-schema.json",
  "title": "DomainsRegisterRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/vee3-io-domains-api-openapi.yml#/components/schemas/DomainsRegisterRequest",
  "properties": {
    "domain": {
      "type": "string",
      "maxLength": 253,
      "minLength": 1,
      "title": "Domain"
    },
    "years": {
      "type": "integer",
      "maximum": 10.0,
      "minimum": 1.0,
      "title": "Years",
      "default": 1
    },
    "expected_token_cost": {
      "type": "integer",
      "minimum": 1.0,
      "title": "Expected Token Cost"
    },
    "enable_privacy": {
      "type": "boolean",
      "title": "Enable Privacy",
      "default": true
    },
    "contact": {
      "$ref": "#/$defs/DomainsRegisterContact"
    }
  },
  "type": "object",
  "required": [
    "domain",
    "expected_token_cost",
    "contact"
  ],
  "$defs": {
    "DomainsRegisterContact": {
      "properties": {
        "first_name": {
          "type": "string",
          "maxLength": 64,
          "minLength": 1,
          "title": "First Name"
        },
        "last_name": {
          "type": "string",
          "maxLength": 64,
          "minLength": 1,
          "title": "Last Name"
        },
        "address1": {
          "type": "string",
          "maxLength": 128,
          "minLength": 1,
          "title": "Address1"
        },
        "city": {
          "type": "string",
          "maxLength": 64,
          "minLength": 1,
          "title": "City"
        },
        "state_province": {
          "type": "string",
          "maxLength": 64,
          "minLength": 1,
          "title": "State Province"
        },
        "postal_code": {
          "type": "string",
          "maxLength": 32,
          "minLength": 1,
          "title": "Postal Code"
        },
        "country": {
          "type": "string",
          "maxLength": 2,
          "minLength": 2,
          "title": "Country"
        },
        "phone": {
          "type": "string",
          "maxLength": 32,
          "minLength": 1,
          "title": "Phone"
        },
        "email_address": {
          "type": "string",
          "maxLength": 255,
          "minLength": 1,
          "title": "Email Address",
          "description": "Real registrant email inbox the domain owner can access. The registrar may send a verification email that must be completed to keep the domain in good standing."
        },
        "address2": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 128
            },
            {
              "type": "null"
            }
          ],
          "title": "Address2"
        },
        "organization_name": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 128
            },
            {
              "type": "null"
            }
          ],
          "title": "Organization Name"
        }
      },
      "type": "object",
      "required": [
        "first_name",
        "last_name",
        "address1",
        "city",
        "state_province",
        "postal_code",
        "country",
        "phone",
        "email_address"
      ],
      "title": "DomainsRegisterContact"
    }
  }
}