{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/codeqr-io/json-schema/codeqr-io-domain-schema-schema.json",
  "title": "DomainSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/codeqr-io-domains-api-openapi.yml#/components/schemas/DomainSchema",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "The unique identifier of the domain."
    },
    "slug": {
      "type": "string",
      "description": "The domain name."
    },
    "verified": {
      "type": "boolean",
      "default": false,
      "description": "Whether the domain is verified."
    },
    "primary": {
      "type": "boolean",
      "default": false,
      "description": "Whether the domain is the primary domain for the project."
    },
    "archived": {
      "type": "boolean",
      "description": "Whether the domain is archived.",
      "default": false
    },
    "target": {
      "type": [
        "string",
        "null"
      ],
      "description": "The target URL to redirect to when accessing the domain root."
    },
    "type": {
      "type": "string",
      "enum": [
        "redirect",
        "rewrite"
      ],
      "default": "redirect",
      "description": "The behavior type for the domain root redirect."
    },
    "placeholder": {
      "type": "string",
      "description": "Provide context to your teammates in the link creation modal by showing them an example of a link to be shortened.",
      "default": "https://codeqr.io/help/article/what-is-codeqr"
    },
    "expiredUrl": {
      "type": [
        "string",
        "null"
      ],
      "description": "The URL to redirect to when a link under this domain has expired."
    },
    "createdAt": {
      "type": "string",
      "description": "The date the domain was created."
    },
    "updatedAt": {
      "type": "string",
      "description": "The date the domain was last updated."
    }
  },
  "required": [
    "id",
    "slug",
    "verified",
    "primary",
    "archived",
    "target",
    "type",
    "placeholder",
    "expiredUrl",
    "createdAt",
    "updatedAt"
  ]
}