{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/klokin-io/json-schema/klokin-io-violation-schema.json",
  "title": "Violation",
  "description": "A Darbo kodeksas (DK) scheduling-rule finding.",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/klokin-io-openapi.yml#/components/schemas/Violation",
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "enum": [
        "MAX_SHIFT_HOURS",
        "OVERLAPPING_SHIFTS",
        "MIN_DAILY_REST",
        "MAX_WEEKLY_HOURS",
        "MIN_WEEKLY_REST",
        "PUBLISH_NOTICE"
      ]
    },
    "severity": {
      "type": "string",
      "enum": [
        "error",
        "warning"
      ]
    },
    "message": {
      "type": "string",
      "description": "Human-readable (Lithuanian)"
    },
    "employeeId": {
      "type": [
        "string",
        "null"
      ],
      "format": "uuid"
    },
    "shiftIds": {
      "type": "array",
      "items": {
        "type": "string",
        "format": "uuid"
      }
    }
  }
}