{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wakatime/json-schema/wakatime-duration-schema.json",
  "title": "Duration",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wakatime-durations-api-openapi.yml#/components/schemas/Duration",
  "type": "object",
  "properties": {
    "time": {
      "type": "number",
      "format": "float",
      "description": "Unix epoch seconds when the duration started."
    },
    "duration": {
      "type": "number",
      "format": "float",
      "description": "Duration in seconds."
    },
    "project": {
      "type": [
        "string",
        "null"
      ]
    },
    "branch": {
      "type": [
        "string",
        "null"
      ]
    },
    "language": {
      "type": [
        "string",
        "null"
      ]
    },
    "category": {
      "type": [
        "string",
        "null"
      ]
    },
    "editor": {
      "type": [
        "string",
        "null"
      ]
    },
    "operating_system": {
      "type": [
        "string",
        "null"
      ]
    },
    "machine": {
      "type": [
        "string",
        "null"
      ]
    },
    "color": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}