{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/transmitly-io/json-schema/transmitly-io-domain-audit-schema.json",
  "title": "DomainAudit",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/transmitly-io-domains-api-openapi.yml#/components/schemas/DomainAudit",
  "type": "object",
  "properties": {
    "domain_id": {
      "type": "string"
    },
    "domain": {
      "type": "string"
    },
    "org_name": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "pass",
        "warn",
        "fail"
      ]
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AuditItem"
      }
    },
    "checked_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "$defs": {
    "AuditItem": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "enum": [
            "pass",
            "warn",
            "fail",
            "info"
          ]
        },
        "detail": {
          "type": "string"
        },
        "fix": {
          "type": "string"
        }
      }
    }
  }
}