{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://askcalculators.com/calculator/whip-calculator/schema.json",
  "title": "WHIP Calculator inputs",
  "description": "Calculate baseball walks plus hits per inning pitched.",
  "type": "object",
  "properties": {
    "walks": {
      "title": "Walks allowed",
      "type": "number",
      "default": 3,
      "minimum": 0,
      "x-step": 1,
      "multipleOf": 1
    },
    "hits": {
      "title": "Hits allowed",
      "type": "number",
      "default": 6,
      "minimum": 0,
      "x-step": 1,
      "multipleOf": 1
    },
    "wholeInnings": {
      "title": "Whole innings pitched",
      "type": "number",
      "default": 7,
      "minimum": 0,
      "x-step": 1,
      "multipleOf": 1
    },
    "outs": {
      "title": "Additional outs",
      "type": "string",
      "default": "2",
      "enum": [
        "0",
        "1",
        "2"
      ],
      "x-optionLabels": {
        "0": "0 outs",
        "1": "1 out",
        "2": "2 outs"
      }
    }
  },
  "required": [
    "walks",
    "hits",
    "wholeInnings",
    "outs"
  ],
  "additionalProperties": false,
  "x-askcalculators": {
    "version": "1.0.0",
    "calculatorUrl": "https://askcalculators.com/calculator/whip-calculator/",
    "queryExample": "https://askcalculators.com/calculator/whip-calculator/?walks=3&hits=6&wholeInnings=7&outs=2",
    "migrationStatus": "new",
    "reviewStatus": "pending",
    "pageStatus": "live",
    "workStatus": "pending",
    "formula": {
      "expression": "WHIP = (walks + hits) ÷ innings pitched"
    },
    "quality": {
      "availability": "live",
      "technicalReviewRecord": "/reviews/whip-calculator.json",
      "qualifiedReview": "pending",
      "qualifiedReviewer": null,
      "qualifiedReviewDate": null,
      "formulaVersion": "1.0.0",
      "referenceCoverage": "references-pending",
      "releaseTestScope": "Catalog and regression checks are not a professional formula audit; consult release evidence.",
      "historicalMetadataDate": "2026-09-01",
      "historicalMetadataNotice": "The imported date is not evidence of a completed human review."
    },
    "outputs": {
      "whip": {
        "title": "WHIP",
        "type": "number",
        "x-format": "number",
        "x-digits": 3,
        "x-primary": true
      },
      "baserunners": {
        "title": "Walks + hits",
        "type": "number",
        "x-format": "integer"
      },
      "innings": {
        "title": "Decimal innings used",
        "type": "number",
        "x-format": "number",
        "x-digits": 6
      }
    }
  }
}
