{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/hybriqx-com/json-schema/hybriqx-com-score-input-schema.json",
  "title": "ScoreInput",
  "description": "A whiteboard score. Fill in what the workout is scored by: time (or reps when capped), rounds and reps, load or reps.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/hybriqx-com-openapi.json#/components/schemas/ScoreInput",
  "properties": {
    "division": {
      "type": "string",
      "enum": [
        "rx",
        "scaled"
      ],
      "title": "Division"
    },
    "time_seconds": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 86400.0,
          "minimum": 1.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Time Seconds"
    },
    "capped": {
      "type": "boolean",
      "title": "Capped",
      "default": false
    },
    "rounds": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 999.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Rounds"
    },
    "reps": {
      "anyOf": [
        {
          "type": "integer",
          "maximum": 99999.0,
          "minimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Reps"
    },
    "load_kg": {
      "anyOf": [
        {
          "type": "number",
          "maximum": 1000.0,
          "exclusiveMinimum": 0.0
        },
        {
          "type": "null"
        }
      ],
      "title": "Load Kg"
    },
    "performed_on": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 10,
          "minLength": 10,
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        {
          "type": "null"
        }
      ],
      "title": "Performed On"
    },
    "class_slot_id": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 64,
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "title": "Class Slot Id"
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "division"
  ]
}