{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/assetlab-ca/json-schema/assetlab-ca-compliance-item-schema.json",
  "title": "ComplianceItem",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/assetlab-ca-compliance-api-openapi.yml#/components/schemas/ComplianceItem",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "regulation_reference": {
      "type": [
        "string",
        "null"
      ]
    },
    "compliance_period_months": {
      "type": [
        "integer",
        "null"
      ]
    },
    "status": {
      "type": [
        "string",
        "null"
      ]
    },
    "system_id": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "compliance_pm_schedules": {
      "type": [
        "array",
        "null"
      ],
      "description": "Only in detail response",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "pm_schedule_id": {
            "type": "string",
            "format": "uuid"
          },
          "required_frequency_days": {
            "type": [
              "integer",
              "null"
            ]
          },
          "weight": {
            "type": [
              "number",
              "null"
            ]
          }
        }
      }
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    }
  }
}