{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/when-i-work/json-schema/when-i-work-scheduled-break-schema.json",
  "title": "ScheduledBreak",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/when-i-work-shift-breaks-api-openapi.yml#/components/schemas/ScheduledBreak",
  "type": "object",
  "required": [
    "shiftId",
    "type",
    "length"
  ],
  "properties": {
    "shiftId": {
      "description": "The id of the associated shift",
      "type": "integer"
    },
    "type": {
      "description": "The type of break (1=paid, 2=unpaid)",
      "type": "integer"
    },
    "length": {
      "description": "The break time rounded to the nearest minute",
      "type": "integer"
    }
  }
}