{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "$ref": "#/definitions/SprintVelocityResult",
  "definitions": {
    "SprintVelocityResult": {
      "type": "object",
      "properties": {
        "sprints": {
          "type": "array",
          "items": {
            "$ref": "#/definitions/SprintRecord"
          }
        },
        "file": {
          "type": "string"
        },
        "cwd": {
          "type": "string"
        }
      },
      "required": ["sprints", "file", "cwd"],
      "additionalProperties": false
    },
    "SprintRecord": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "sprintId": {
          "type": "string"
        },
        "event": {
          "type": "string",
          "enum": ["start", "close"]
        },
        "startDate": {
          "type": "string"
        },
        "endDate": {
          "type": "string"
        },
        "capacityDays": {
          "type": "number"
        },
        "committedPoints": {
          "type": "number"
        },
        "actualPoints": {
          "type": "number"
        },
        "velocityPct": {
          "type": "number"
        },
        "avgVsSoloPct": {
          "type": ["number", "null"]
        },
        "avgVsAiUnguidedPct": {
          "type": ["number", "null"]
        },
        "createdAt": {
          "type": "string"
        }
      },
      "required": ["id", "sprintId", "event", "createdAt"],
      "additionalProperties": false
    }
  }
}
