{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/assetlab-ca/json-schema/assetlab-ca-compliance-pm-schedule-schema.json",
  "title": "CompliancePmSchedule",
  "description": "A PM schedule counted toward a compliance item. Completing the schedule within required_frequency_days keeps the item compliant.",
  "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/CompliancePmSchedule",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "compliance_item_id": {
      "type": "string",
      "format": "uuid"
    },
    "pm_schedule_id": {
      "type": "string",
      "format": "uuid"
    },
    "required_frequency_days": {
      "type": "integer",
      "minimum": 1,
      "description": "How often, in days, the schedule must be completed"
    },
    "weight": {
      "type": "number",
      "description": "Relative weight in the item score. Default 1."
    },
    "created_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}