{
  "openapi": "3.1.1",
  "info": {
    "title": "Rising Kingpin Save Checker API",
    "version": "1.0.0",
    "summary": "Check a Rising Kingpin save file: valid, which version, and the standings inside.",
    "description": "Every endpoint performs the same calculation as the human page and returns inputs, result, units, assumptions, sources, warnings and computedAt. MCP endpoint: /mcp."
  },
  "servers": [
    {
      "url": "https://risingkingpinsavecheck.usefulweb.app"
    }
  ],
  "paths": {
    "/api/v1/calculate": {
      "post": {
        "operationId": "calculate",
        "summary": "Check a Rising Kingpin save file: valid, which version, and the standings inside.",
        "description": "Validates a .risingkingpin.json save game with the game’s own loader — format, version, every field’s type and range, places, weapons and cars, gang members and cross references — and lists every problem with its path. Valid saves get a summary: week, victory condition, whose turn it is and the standings.\n\nMethodology:\n- The save must be a JSON object { format: \"risingkingpin\", version, savedAt?, state }. Saves from a newer version are refused instead of guessed; older versions are migrated by the same code the game uses.\n- Every field of the game state is checked: whole numbers in their ranges (cash ≥ 0, heat 0–100, stats 1–99 …), known places, weapons, cars, goods, events and messages, one boss per gang, unique member ids, at most 4 players with distinct colours, and player numbers in rackets and businesses.\n- One error refuses the whole file — the game never loads half a save. Up to 100 problems are listed with their JSON path.",
        "tags": [
          "apps"
        ],
        "x-mcp-tool": "rising_kingpin_save_check",
        "x-owner-app": "risingkingpin",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RisingKingpinSaveCheckInput"
              },
              "examples": {
                "example1": {
                  "summary": "A fresh two-player game",
                  "value": {
                    "save": "{\"format\":\"risingkingpin\",\"version\":2,\"state\":{\"format\":\"risingkingpin-state\",\"v\":2,\"seed\":20261122,\"rng\":2092439123,\"round\":1,\"turn\":0,\"over\":false,\"winner\":null,\"endReason\":null,\"settings\":{\"victory\":{\"mode\":\"boss\",\"target\":100},\"maxRounds\":40,\"repScale\":100},\"players\":[{\"id\":0,\"name\":\"Vic\",\"gang\":\"The Alley Cats\",\"color\":\"red\",\"control\":\"human\",\"archetype\":\"brains\",\"portrait\":\"boss-01\",\"cash\":1750,\"counterfeit\":0,\"loc\":\"police\",\"steps\":24,\"rep\":0,\"heat\":0,\"members\":[{\"id\":0,\"name\":\"Vic\",\"portrait\":\"boss-01\",\"boss\":true,\"strength\":67,\"intelligence\":45,\"brutality\":25,\"stealth\":47,\"escape\":27,\"energy\":41,\"weapon\":\"fists\",\"wage\":0}],\"nextMemberId\":1,\"car\":null,\"carHot\":0,\"goods\":{\"radios\":0,\"electronics\":0,\"jewels\":0,\"cargo\":0},\"roomWeeks\":0,\"fakeId\":false,\"loan\":null,\"dirt\":null,\"job\":null,\"jail\":0,\"hospital\":0,\"away\":0,\"awayKind\":null,\"awayDest\":null,\"immunity\":0,\"tip\":false,\"breakdown\":false,\"triedEscape\":false,\"checked\":false,\"collected\":false,\"convictions\":0,\"out\":false,\"outReason\":null,\"stats\":{\"crimes\":0,\"failed\":0,\"arrests\":0,\"loot\":0,\"fightsWon\":0,\"fightsLost\":0,\"heists\":0,\"bestLoot\":0,\"escapes\":0,\"bribes\":0,\"blackmails\":0}},{\"id\":1,\"name\":\"Big Sal\",\"gang\":\"Harbor Rats\",\"color\":\"blue\",\"control\":\"normal\",\"archetype\":\"balanced\",\"portrait\":\"boss-02\",\"cash\":2100,\"counterfeit\":0,\"loc\":\"police\",\"steps\":0,\"rep\":0,\"heat\":0,\"members\":[{\"id\":0,\"name\":\"Big Sal\",\"portrait\":\"boss-02\",\"boss\":true,\"strength\":55,\"intelligence\":77,\"brutality\":41,\"stealth\":44,\"escape\":35,\"energy\":38,\"weapon\":\"fists\",\"wage\":0}],\"nextMemberId\":1,\"car\":null,\"carHot\":0,\"goods\":{\"radios\":0,\"electronics\":0,\"jewels\":0,\"cargo\":0},\"roomWeeks\":0,\"fakeId\":false,\"loan\":null,\"dirt\":null,\"job\":null,\"jail\":0,\"hospital\":0,\"away\":0,\"awayKind\":null,\"awayDest\":null,\"immunity\":0,\"tip\":false,\"breakdown\":false,\"triedEscape\":false,\"checked\":false,\"collected\":false,\"convictions\":0,\"out\":false,\"outReason\":null,\"stats\":{\"crimes\":0,\"failed\":0,\"arrests\":0,\"loot\":0,\"fightsWon\":0,\"fightsLost\":0,\"heists\":0,\"bestLoot\":0,\"escapes\":0,\"bribes\":0,\"blackmails\":0}}],\"pending\":null,\"cityEvents\":[],\"stock\":{\"weapons\":{\"arms-west\":[\"bat\",\"knife\",\"revolver\",\"shotgun\",\"grenades\"],\"arms-east\":[\"bat\",\"knife\",\"pistol\",\"shotgun\",\"rifle\"]},\"cars\":{\"car-south\":[\"rustbucket\",\"hatchback\",\"van\"],\"car-hill\":[\"hatchback\",\"sedan\",\"muscle\"]}},\"lots\":{\"car-south\":[\"rustbucket\",\"hatchback\",\"van\"],\"car-hill\":[\"hatchback\",\"sedan\",\"muscle\",\"limo\"],\"villa-a\":[\"limo\"],\"villa-b\":[\"muscle\"]},\"candidates\":{\"station\":[{\"name\":\"Iris the Mole\",\"portrait\":\"crew-03\",\"strength\":49,\"intelligence\":44,\"brutality\":52,\"stealth\":32,\"escape\":22,\"fee\":2788,\"wage\":279},{\"name\":\"Gina the Ghost\",\"portrait\":\"crew-04\",\"strength\":58,\"intelligence\":50,\"brutality\":31,\"stealth\":36,\"escape\":25,\"fee\":2800,\"wage\":280}],\"docks\":[{\"name\":\"Olga the Owl\",\"portrait\":\"crew-14\",\"strength\":34,\"intelligence\":27,\"brutality\":57,\"stealth\":32,\"escape\":10,\"fee\":2320,\"wage\":232},{\"name\":\"Iris Knuckles\",\"portrait\":\"crew-13\",\"strength\":65,\"intelligence\":74,\"brutality\":60,\"stealth\":36,\"escape\":32,\"fee\":3604,\"wage\":360}],\"pub-old\":[{\"name\":\"Xena Velvet\",\"portrait\":\"crew-02\",\"strength\":60,\"intelligence\":44,\"brutality\":61,\"stealth\":28,\"escape\":10,\"fee\":2836,\"wage\":284},{\"name\":\"Moe Boom-Boom\",\"portrait\":\"crew-11\",\"strength\":67,\"intelligence\":68,\"brutality\":31,\"stealth\":15,\"escape\":10,\"fee\":2692,\"wage\":269}]},\"prices\":{\"station\":{\"radios\":137,\"electronics\":276,\"jewels\":761,\"cargo\":881},\"docks\":{\"radios\":98,\"electronics\":309,\"jewels\":1001,\"cargo\":1339},\"pub-old\":{\"radios\":148,\"electronics\":292,\"jewels\":970,\"cargo\":959}},\"dirtOffers\":{\"station\":{\"loc\":\"car-south\",\"price\":3100},\"docks\":{\"loc\":\"bank-hill\",\"price\":2300},\"pub-old\":{\"loc\":\"police\",\"price\":2400}},\"rackets\":{\"shop-docks\":null,\"shop-south\":null,\"shop-old\":null},\"businesses\":{\"laundromat\":{\"owner\":null,\"closed\":0},\"chopshop\":{\"owner\":null,\"closed\":0},\"nightclub\":{\"owner\":null,\"closed\":0},\"loanshark\":{\"owner\":null,\"closed\":0}},\"log\":[{\"k\":\"round.start\",\"p\":[1]},{\"k\":\"turn.start\",\"p\":[{\"raw\":\"Vic\"},1],\"player\":0}],\"history\":[{\"week\":0,\"score\":[3,4],\"netWorth\":[1750,2100],\"rep\":[0,0],\"cash\":[1750,2100]}]}}"
                  }
                },
                "example2": {
                  "summary": "A damaged save (negative cash, unknown place)",
                  "value": {
                    "save": "{\"format\":\"risingkingpin\",\"version\":2,\"state\":{\"format\":\"risingkingpin-state\",\"v\":2,\"seed\":20261122,\"rng\":2092439123,\"round\":1,\"turn\":0,\"over\":false,\"winner\":null,\"endReason\":null,\"settings\":{\"victory\":{\"mode\":\"boss\",\"target\":100},\"maxRounds\":40,\"repScale\":100},\"players\":[{\"id\":0,\"name\":\"Vic\",\"gang\":\"The Alley Cats\",\"color\":\"red\",\"control\":\"human\",\"archetype\":\"brains\",\"portrait\":\"boss-01\",\"cash\":-50,\"counterfeit\":0,\"loc\":\"moon-base\",\"steps\":24,\"rep\":0,\"heat\":0,\"members\":[{\"id\":0,\"name\":\"Vic\",\"portrait\":\"boss-01\",\"boss\":true,\"strength\":67,\"intelligence\":45,\"brutality\":25,\"stealth\":47,\"escape\":27,\"energy\":41,\"weapon\":\"fists\",\"wage\":0}],\"nextMemberId\":1,\"car\":null,\"carHot\":0,\"goods\":{\"radios\":0,\"electronics\":0,\"jewels\":0,\"cargo\":0},\"roomWeeks\":0,\"fakeId\":false,\"loan\":null,\"dirt\":null,\"job\":null,\"jail\":0,\"hospital\":0,\"away\":0,\"awayKind\":null,\"awayDest\":null,\"immunity\":0,\"tip\":false,\"breakdown\":false,\"triedEscape\":false,\"checked\":false,\"collected\":false,\"convictions\":0,\"out\":false,\"outReason\":null,\"stats\":{\"crimes\":0,\"failed\":0,\"arrests\":0,\"loot\":0,\"fightsWon\":0,\"fightsLost\":0,\"heists\":0,\"bestLoot\":0,\"escapes\":0,\"bribes\":0,\"blackmails\":0}},{\"id\":1,\"name\":\"Big Sal\",\"gang\":\"Harbor Rats\",\"color\":\"blue\",\"control\":\"normal\",\"archetype\":\"balanced\",\"portrait\":\"boss-02\",\"cash\":2100,\"counterfeit\":0,\"loc\":\"police\",\"steps\":0,\"rep\":0,\"heat\":0,\"members\":[{\"id\":0,\"name\":\"Big Sal\",\"portrait\":\"boss-02\",\"boss\":true,\"strength\":55,\"intelligence\":77,\"brutality\":41,\"stealth\":44,\"escape\":35,\"energy\":38,\"weapon\":\"fists\",\"wage\":0}],\"nextMemberId\":1,\"car\":null,\"carHot\":0,\"goods\":{\"radios\":0,\"electronics\":0,\"jewels\":0,\"cargo\":0},\"roomWeeks\":0,\"fakeId\":false,\"loan\":null,\"dirt\":null,\"job\":null,\"jail\":0,\"hospital\":0,\"away\":0,\"awayKind\":null,\"awayDest\":null,\"immunity\":0,\"tip\":false,\"breakdown\":false,\"triedEscape\":false,\"checked\":false,\"collected\":false,\"convictions\":0,\"out\":false,\"outReason\":null,\"stats\":{\"crimes\":0,\"failed\":0,\"arrests\":0,\"loot\":0,\"fightsWon\":0,\"fightsLost\":0,\"heists\":0,\"bestLoot\":0,\"escapes\":0,\"bribes\":0,\"blackmails\":0}}],\"pending\":null,\"cityEvents\":[],\"stock\":{\"weapons\":{\"arms-west\":[\"bat\",\"knife\",\"revolver\",\"shotgun\",\"grenades\"],\"arms-east\":[\"bat\",\"knife\",\"pistol\",\"shotgun\",\"rifle\"]},\"cars\":{\"car-south\":[\"rustbucket\",\"hatchback\",\"van\"],\"car-hill\":[\"hatchback\",\"sedan\",\"muscle\"]}},\"lots\":{\"car-south\":[\"rustbucket\",\"hatchback\",\"van\"],\"car-hill\":[\"hatchback\",\"sedan\",\"muscle\",\"limo\"],\"villa-a\":[\"limo\"],\"villa-b\":[\"muscle\"]},\"candidates\":{\"station\":[{\"name\":\"Iris the Mole\",\"portrait\":\"crew-03\",\"strength\":49,\"intelligence\":44,\"brutality\":52,\"stealth\":32,\"escape\":22,\"fee\":2788,\"wage\":279},{\"name\":\"Gina the Ghost\",\"portrait\":\"crew-04\",\"strength\":58,\"intelligence\":50,\"brutality\":31,\"stealth\":36,\"escape\":25,\"fee\":2800,\"wage\":280}],\"docks\":[{\"name\":\"Olga the Owl\",\"portrait\":\"crew-14\",\"strength\":34,\"intelligence\":27,\"brutality\":57,\"stealth\":32,\"escape\":10,\"fee\":2320,\"wage\":232},{\"name\":\"Iris Knuckles\",\"portrait\":\"crew-13\",\"strength\":65,\"intelligence\":74,\"brutality\":60,\"stealth\":36,\"escape\":32,\"fee\":3604,\"wage\":360}],\"pub-old\":[{\"name\":\"Xena Velvet\",\"portrait\":\"crew-02\",\"strength\":60,\"intelligence\":44,\"brutality\":61,\"stealth\":28,\"escape\":10,\"fee\":2836,\"wage\":284},{\"name\":\"Moe Boom-Boom\",\"portrait\":\"crew-11\",\"strength\":67,\"intelligence\":68,\"brutality\":31,\"stealth\":15,\"escape\":10,\"fee\":2692,\"wage\":269}]},\"prices\":{\"station\":{\"radios\":137,\"electronics\":276,\"jewels\":761,\"cargo\":881},\"docks\":{\"radios\":98,\"electronics\":309,\"jewels\":1001,\"cargo\":1339},\"pub-old\":{\"radios\":148,\"electronics\":292,\"jewels\":970,\"cargo\":959}},\"dirtOffers\":{\"station\":{\"loc\":\"car-south\",\"price\":3100},\"docks\":{\"loc\":\"bank-hill\",\"price\":2300},\"pub-old\":{\"loc\":\"police\",\"price\":2400}},\"rackets\":{\"shop-docks\":null,\"shop-south\":null,\"shop-old\":null},\"businesses\":{\"laundromat\":{\"owner\":null,\"closed\":0},\"chopshop\":{\"owner\":null,\"closed\":0},\"nightclub\":{\"owner\":null,\"closed\":0},\"loanshark\":{\"owner\":null,\"closed\":0}},\"log\":[{\"k\":\"round.start\",\"p\":[1]},{\"k\":\"turn.start\",\"p\":[{\"raw\":\"Vic\"},1],\"player\":0}],\"history\":[{\"week\":0,\"score\":[3,4],\"netWorth\":[1750,2100],\"rep\":[0,0],\"cash\":[1750,2100]}]}}"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Calculation result envelope.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RisingKingpinSaveCheckResult"
                }
              }
            }
          },
          "400": {
            "description": "Malformed JSON body.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "Invalid input (see errors[]).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded (see Retry-After).",
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/api/v1/tool": {
      "get": {
        "operationId": "getToolDefinition",
        "summary": "Inputs, output schema and examples for this tool",
        "responses": {
          "200": {
            "description": "Tool definition.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Problem": {
        "type": "object",
        "description": "RFC 9457 problem details. 422 responses include per-field `errors`.",
        "required": [
          "type",
          "title",
          "status",
          "detail"
        ],
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "errors": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "field",
                "message"
              ],
              "properties": {
                "field": {
                  "type": "string"
                },
                "message": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "RisingKingpinSaveCheckInput": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "save": {
            "title": "Save file (.risingkingpin.json content)",
            "type": "string",
            "maxLength": 2000000,
            "default": "{\"format\":\"risingkingpin\",\"version\":2,\"state\":{\"format\":\"risingkingpin-state\",\"v\":2,\"seed\":20261122,\"rng\":2092439123,\"round\":1,\"turn\":0,\"over\":false,\"winner\":null,\"endReason\":null,\"settings\":{\"victory\":{\"mode\":\"boss\",\"target\":100},\"maxRounds\":40,\"repScale\":100},\"players\":[{\"id\":0,\"name\":\"Vic\",\"gang\":\"The Alley Cats\",\"color\":\"red\",\"control\":\"human\",\"archetype\":\"brains\",\"portrait\":\"boss-01\",\"cash\":1750,\"counterfeit\":0,\"loc\":\"police\",\"steps\":24,\"rep\":0,\"heat\":0,\"members\":[{\"id\":0,\"name\":\"Vic\",\"portrait\":\"boss-01\",\"boss\":true,\"strength\":67,\"intelligence\":45,\"brutality\":25,\"stealth\":47,\"escape\":27,\"energy\":41,\"weapon\":\"fists\",\"wage\":0}],\"nextMemberId\":1,\"car\":null,\"carHot\":0,\"goods\":{\"radios\":0,\"electronics\":0,\"jewels\":0,\"cargo\":0},\"roomWeeks\":0,\"fakeId\":false,\"loan\":null,\"dirt\":null,\"job\":null,\"jail\":0,\"hospital\":0,\"away\":0,\"awayKind\":null,\"awayDest\":null,\"immunity\":0,\"tip\":false,\"breakdown\":false,\"triedEscape\":false,\"checked\":false,\"collected\":false,\"convictions\":0,\"out\":false,\"outReason\":null,\"stats\":{\"crimes\":0,\"failed\":0,\"arrests\":0,\"loot\":0,\"fightsWon\":0,\"fightsLost\":0,\"heists\":0,\"bestLoot\":0,\"escapes\":0,\"bribes\":0,\"blackmails\":0}},{\"id\":1,\"name\":\"Big Sal\",\"gang\":\"Harbor Rats\",\"color\":\"blue\",\"control\":\"normal\",\"archetype\":\"balanced\",\"portrait\":\"boss-02\",\"cash\":2100,\"counterfeit\":0,\"loc\":\"police\",\"steps\":0,\"rep\":0,\"heat\":0,\"members\":[{\"id\":0,\"name\":\"Big Sal\",\"portrait\":\"boss-02\",\"boss\":true,\"strength\":55,\"intelligence\":77,\"brutality\":41,\"stealth\":44,\"escape\":35,\"energy\":38,\"weapon\":\"fists\",\"wage\":0}],\"nextMemberId\":1,\"car\":null,\"carHot\":0,\"goods\":{\"radios\":0,\"electronics\":0,\"jewels\":0,\"cargo\":0},\"roomWeeks\":0,\"fakeId\":false,\"loan\":null,\"dirt\":null,\"job\":null,\"jail\":0,\"hospital\":0,\"away\":0,\"awayKind\":null,\"awayDest\":null,\"immunity\":0,\"tip\":false,\"breakdown\":false,\"triedEscape\":false,\"checked\":false,\"collected\":false,\"convictions\":0,\"out\":false,\"outReason\":null,\"stats\":{\"crimes\":0,\"failed\":0,\"arrests\":0,\"loot\":0,\"fightsWon\":0,\"fightsLost\":0,\"heists\":0,\"bestLoot\":0,\"escapes\":0,\"bribes\":0,\"blackmails\":0}}],\"pending\":null,\"cityEvents\":[],\"stock\":{\"weapons\":{\"arms-west\":[\"bat\",\"knife\",\"revolver\",\"shotgun\",\"grenades\"],\"arms-east\":[\"bat\",\"knife\",\"pistol\",\"shotgun\",\"rifle\"]},\"cars\":{\"car-south\":[\"rustbucket\",\"hatchback\",\"van\"],\"car-hill\":[\"hatchback\",\"sedan\",\"muscle\"]}},\"lots\":{\"car-south\":[\"rustbucket\",\"hatchback\",\"van\"],\"car-hill\":[\"hatchback\",\"sedan\",\"muscle\",\"limo\"],\"villa-a\":[\"limo\"],\"villa-b\":[\"muscle\"]},\"candidates\":{\"station\":[{\"name\":\"Iris the Mole\",\"portrait\":\"crew-03\",\"strength\":49,\"intelligence\":44,\"brutality\":52,\"stealth\":32,\"escape\":22,\"fee\":2788,\"wage\":279},{\"name\":\"Gina the Ghost\",\"portrait\":\"crew-04\",\"strength\":58,\"intelligence\":50,\"brutality\":31,\"stealth\":36,\"escape\":25,\"fee\":2800,\"wage\":280}],\"docks\":[{\"name\":\"Olga the Owl\",\"portrait\":\"crew-14\",\"strength\":34,\"intelligence\":27,\"brutality\":57,\"stealth\":32,\"escape\":10,\"fee\":2320,\"wage\":232},{\"name\":\"Iris Knuckles\",\"portrait\":\"crew-13\",\"strength\":65,\"intelligence\":74,\"brutality\":60,\"stealth\":36,\"escape\":32,\"fee\":3604,\"wage\":360}],\"pub-old\":[{\"name\":\"Xena Velvet\",\"portrait\":\"crew-02\",\"strength\":60,\"intelligence\":44,\"brutality\":61,\"stealth\":28,\"escape\":10,\"fee\":2836,\"wage\":284},{\"name\":\"Moe Boom-Boom\",\"portrait\":\"crew-11\",\"strength\":67,\"intelligence\":68,\"brutality\":31,\"stealth\":15,\"escape\":10,\"fee\":2692,\"wage\":269}]},\"prices\":{\"station\":{\"radios\":137,\"electronics\":276,\"jewels\":761,\"cargo\":881},\"docks\":{\"radios\":98,\"electronics\":309,\"jewels\":1001,\"cargo\":1339},\"pub-old\":{\"radios\":148,\"electronics\":292,\"jewels\":970,\"cargo\":959}},\"dirtOffers\":{\"station\":{\"loc\":\"car-south\",\"price\":3100},\"docks\":{\"loc\":\"bank-hill\",\"price\":2300},\"pub-old\":{\"loc\":\"police\",\"price\":2400}},\"rackets\":{\"shop-docks\":null,\"shop-south\":null,\"shop-old\":null},\"businesses\":{\"laundromat\":{\"owner\":null,\"closed\":0},\"chopshop\":{\"owner\":null,\"closed\":0},\"nightclub\":{\"owner\":null,\"closed\":0},\"loanshark\":{\"owner\":null,\"closed\":0}},\"log\":[{\"k\":\"round.start\",\"p\":[1]},{\"k\":\"turn.start\",\"p\":[{\"raw\":\"Vic\"},1],\"player\":0}],\"history\":[{\"week\":0,\"score\":[3,4],\"netWorth\":[1750,2100],\"rep\":[0,0],\"cash\":[1750,2100]}]}}"
          }
        },
        "required": []
      },
      "RisingKingpinSaveCheckResult": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "schemaVersion",
          "tool",
          "computedAt",
          "inputs",
          "summary",
          "result",
          "units",
          "assumptions",
          "sources",
          "warnings",
          "presentation",
          "links"
        ],
        "properties": {
          "schemaVersion": {
            "type": "string",
            "const": "1.0"
          },
          "tool": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "id",
              "name",
              "version"
            ],
            "properties": {
              "id": {
                "type": "string"
              },
              "name": {
                "type": "string"
              },
              "version": {
                "type": "string"
              }
            }
          },
          "computedAt": {
            "type": "string",
            "format": "date-time"
          },
          "inputs": {
            "type": "object",
            "description": "Normalised inputs actually used, including applied defaults."
          },
          "summary": {
            "type": "string"
          },
          "result": {
            "type": "object",
            "required": [
              "valid",
              "version",
              "migrated",
              "errors",
              "summary"
            ],
            "properties": {
              "valid": {
                "type": "boolean"
              },
              "version": {
                "type": [
                  "integer",
                  "null"
                ]
              },
              "migrated": {
                "type": "boolean"
              },
              "errors": {
                "type": "array",
                "items": {
                  "type": "object",
                  "required": [
                    "path",
                    "message"
                  ],
                  "properties": {
                    "path": {
                      "type": "string"
                    },
                    "message": {
                      "type": "string"
                    }
                  }
                }
              },
              "summary": {
                "type": [
                  "object",
                  "null"
                ]
              }
            }
          },
          "units": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "assumptions": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "sources": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "title"
              ],
              "properties": {
                "title": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                },
                "publisher": {
                  "type": "string"
                },
                "retrievedAt": {
                  "type": "string"
                },
                "note": {
                  "type": "string"
                }
              }
            }
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "presentation": {
            "type": "array",
            "items": {
              "type": "object"
            },
            "description": "Display blocks used by the human page (same data)."
          },
          "links": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "human",
              "api",
              "openapi",
              "methodology"
            ],
            "properties": {
              "human": {
                "type": "string",
                "format": "uri"
              },
              "api": {
                "type": "string",
                "format": "uri"
              },
              "openapi": {
                "type": "string",
                "format": "uri"
              },
              "methodology": {
                "type": "string",
                "format": "uri"
              }
            }
          }
        }
      }
    }
  }
}