{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/retirementlab-app/json-schema/retirementlab-app-config-summary-schema.json",
  "title": "ConfigSummary",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/retirementlab-app-openapi.json#/components/schemas/ConfigSummary",
  "properties": {
    "name": {
      "type": "string",
      "title": "Name"
    },
    "label": {
      "type": "string",
      "title": "Label"
    },
    "auto_label": {
      "type": "string",
      "title": "Auto Label"
    },
    "baseline_id": {
      "type": "integer",
      "title": "Baseline Id"
    },
    "country": {
      "type": "string",
      "title": "Country"
    },
    "initial_year": {
      "type": "integer",
      "title": "Initial Year"
    },
    "avg_return": {
      "type": "number",
      "title": "Avg Return"
    },
    "volatility": {
      "type": "number",
      "title": "Volatility"
    },
    "initial_net_worth": {
      "type": "number",
      "title": "Initial Net Worth"
    },
    "baseline_annual_expenses": {
      "type": "number",
      "title": "Baseline Annual Expenses"
    },
    "retirement_year": {
      "type": "integer",
      "title": "Retirement Year"
    },
    "age": {
      "type": "integer",
      "title": "Age"
    },
    "portfolio_preset": {
      "type": "string",
      "title": "Portfolio Preset"
    },
    "has_custom_portfolio": {
      "type": "boolean",
      "title": "Has Custom Portfolio",
      "default": false
    },
    "last_failure_probability": {
      "type": "number",
      "title": "Last Failure Probability"
    },
    "display_order": {
      "type": "integer",
      "title": "Display Order"
    },
    "explorations": {
      "items": {
        "$ref": "#/$defs/ExplorationSummary"
      },
      "type": "array",
      "title": "Explorations"
    }
  },
  "type": "object",
  "required": [
    "name",
    "country",
    "initial_net_worth",
    "baseline_annual_expenses",
    "display_order"
  ],
  "$defs": {
    "ExplorationSummary": {
      "properties": {
        "name": {
          "type": "string",
          "title": "Name"
        },
        "label": {
          "type": "string",
          "title": "Label"
        },
        "auto_label": {
          "type": "string",
          "title": "Auto Label"
        },
        "baseline_id": {
          "type": "integer",
          "title": "Baseline Id"
        },
        "country": {
          "type": "string",
          "title": "Country"
        },
        "initial_year": {
          "type": "integer",
          "title": "Initial Year"
        },
        "avg_return": {
          "type": "number",
          "title": "Avg Return"
        },
        "volatility": {
          "type": "number",
          "title": "Volatility"
        },
        "initial_net_worth": {
          "type": "number",
          "title": "Initial Net Worth"
        },
        "baseline_annual_expenses": {
          "type": "number",
          "title": "Baseline Annual Expenses"
        },
        "retirement_year": {
          "type": "integer",
          "title": "Retirement Year"
        },
        "age": {
          "type": "integer",
          "title": "Age"
        },
        "portfolio_preset": {
          "type": "string",
          "title": "Portfolio Preset"
        },
        "has_custom_portfolio": {
          "type": "boolean",
          "title": "Has Custom Portfolio",
          "default": false
        },
        "last_failure_probability": {
          "type": "number",
          "title": "Last Failure Probability"
        },
        "display_order": {
          "type": "integer",
          "title": "Display Order"
        }
      },
      "type": "object",
      "required": [
        "name",
        "country",
        "initial_net_worth",
        "baseline_annual_expenses",
        "display_order"
      ],
      "title": "ExplorationSummary"
    }
  }
}