{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/fermyontechnologies/json-schema/fermyontechnologies-domain-item-schema.json",
  "title": "DomainItem",
  "x-generated": "2026-12-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/fermyontechnologies-openapi.json#/components/schemas/DomainItem",
  "required": [
    "dnsRecords",
    "name",
    "validationStatus"
  ],
  "type": "object",
  "properties": {
    "name": {
      "minLength": 1,
      "type": "string"
    },
    "validationStatus": {
      "minLength": 1,
      "type": "string"
    },
    "validatedAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "lastModified": {
      "type": "string",
      "format": "date-time"
    },
    "dnsRecords": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DnsRecord"
      }
    }
  },
  "additionalProperties": false,
  "$defs": {
    "DnsRecord": {
      "required": [
        "name",
        "ttl",
        "type",
        "value"
      ],
      "type": "object",
      "properties": {
        "type": {
          "minLength": 1,
          "type": "string"
        },
        "name": {
          "minLength": 1,
          "type": "string"
        },
        "value": {
          "minLength": 1,
          "type": "string"
        },
        "ttl": {
          "type": "integer",
          "format": "int32"
        }
      },
      "additionalProperties": false
    }
  }
}