{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/declararfacil-com/json-schema/declararfacil-com-generate-input-schema.json",
  "title": "GenerateInput",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/declararfacil-com-openapi.json#/components/schemas/GenerateInput",
  "type": "object",
  "required": [
    "modelo"
  ],
  "properties": {
    "modelo": {
      "type": "string",
      "enum": [
        "303",
        "130"
      ]
    },
    "year": {
      "type": "integer"
    },
    "quarter": {
      "type": "integer",
      "minimum": 1,
      "maximum": 4
    },
    "preview": {
      "type": "boolean",
      "description": "true = compute and show boxes without saving"
    },
    "compensationBox78": {
      "type": "number",
      "description": "Modelo 303: amount to compensate from previous periods (box 78)"
    },
    "tipoDeclaracion": {
      "type": "string",
      "enum": [
        "C",
        "D"
      ],
      "description": "Modelo 303 Q4 negative result: C compensar, D devolución"
    },
    "iban": {
      "type": "string",
      "description": "Required with tipoDeclaracion D"
    },
    "manualCumulativeData": {
      "type": "object",
      "description": "Modelo 130 edge cases only"
    }
  }
}