{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/remote-com/json-schema/remote-com-timesheet-list-schema.json",
  "title": "TimesheetList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/remote-com-timesheets-api-openapi.yml#/components/schemas/TimesheetList",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "timesheets": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Timesheet"
          }
        }
      }
    }
  },
  "$defs": {
    "Timesheet": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "employment_id": {
          "type": "string",
          "format": "uuid"
        },
        "period_start": {
          "type": "string",
          "format": "date"
        },
        "period_end": {
          "type": "string",
          "format": "date"
        },
        "status": {
          "type": "string",
          "enum": [
            "draft",
            "submitted",
            "approved",
            "sent_back"
          ]
        },
        "total_hours": {
          "type": "number"
        },
        "entries": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "date": {
                "type": "string",
                "format": "date"
              },
              "hours": {
                "type": "number"
              },
              "notes": {
                "type": "string"
              }
            }
          }
        }
      }
    }
  }
}