{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-compliance-response-schema.json",
  "title": "ComplianceResponse",
  "description": "Response from a compliance check endpoint.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-compliance-api-openapi.yml#/components/schemas/ComplianceResponse",
  "properties": {
    "checks": {
      "items": {
        "$ref": "#/$defs/ComplianceCheckResult"
      },
      "title": "Checks",
      "type": "array"
    },
    "compliant": {
      "title": "Compliant",
      "type": "boolean"
    },
    "regulation": {
      "title": "Regulation",
      "type": "string"
    }
  },
  "required": [
    "compliant",
    "regulation",
    "checks"
  ],
  "type": "object",
  "$defs": {
    "ComplianceCheckResult": {
      "description": "Result of a single compliance check.",
      "properties": {
        "article": {
          "title": "Article",
          "type": "string"
        },
        "check_name": {
          "title": "Check Name",
          "type": "string"
        },
        "detail": {
          "title": "Detail",
          "type": "string"
        },
        "passed": {
          "title": "Passed",
          "type": "boolean"
        }
      },
      "required": [
        "check_name",
        "article",
        "passed",
        "detail"
      ],
      "title": "ComplianceCheckResult",
      "type": "object"
    }
  }
}