{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "equipment": {
      "type": "string",
      "enum": ["barbell_upper", "barbell_lower", "dumbbell", "machine", "cable", "bodyweight_added"]
    },
    "sets": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "reps": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "min": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "max": {
      "type": "integer",
      "minimum": 1,
      "maximum": 9007199254740991
    },
    "step": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "pattern": "^(?:0|[1-9]\\d*)(?:\\.\\d+)?$"
        },
        "unit": {
          "type": "string",
          "enum": ["kg", "lb"]
        }
      },
      "required": ["value", "unit"],
      "additionalProperties": false
    },
    "cadence": {
      "type": "string",
      "enum": ["session", "week"]
    },
    "target_rir": {
      "type": "number",
      "minimum": 0,
      "maximum": 10
    },
    "target_rpe": {
      "type": "number",
      "minimum": 0,
      "maximum": 10
    }
  },
  "required": ["equipment"],
  "additionalProperties": false,
  "$id": "https://docs.sendtopigeon.com/schemas/wn-double-params@1.schema.json",
  "title": "Pigeon Open Data: wn-double-params@1",
  "$comment": "Apache-2.0. Structural schema; use Zod/parseRecord for semantic invariants. This published schema URL is immutable.",
  "examples": [
    {
      "equipment": "barbell_upper",
      "sets": 3,
      "reps": 5,
      "min": 5,
      "max": 8,
      "step": {
        "value": "2.5",
        "unit": "kg"
      },
      "cadence": "session"
    }
  ]
}
