{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/chaletiste-fr/json-schema/chaletiste-fr-budget-response-schema.json",
  "title": "BudgetResponse",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/chaletiste-fr-openapi.json#/components/schemas/BudgetResponse",
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "total_eur": {
      "type": "number"
    },
    "range_eur": {
      "type": "object",
      "properties": {
        "low": {
          "type": "number"
        },
        "high": {
          "type": "number"
        }
      }
    },
    "lines": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "item": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "amount_eur": {
            "type": "number"
          },
          "low_eur": {
            "type": "number"
          },
          "high_eur": {
            "type": "number"
          },
          "source": {
            "type": "string"
          }
        }
      }
    },
    "assumptions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "explanation": {
      "type": "string"
    },
    "sources": {
      "type": "array"
    }
  }
}