{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scadenzario-app/json-schema/scadenzario-app-create-deadline-input-schema.json",
  "title": "CreateDeadlineInput",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scadenzario-app-openapi.json#/components/schemas/CreateDeadlineInput",
  "type": "object",
  "required": [
    "title",
    "due_at"
  ],
  "properties": {
    "title": {
      "type": "string"
    },
    "due_at": {
      "type": "string",
      "description": "ISO date (treated as that morning) or full ISO date-time."
    },
    "notes": {
      "type": "string"
    },
    "emoji": {
      "type": "string"
    },
    "recurrence": {
      "type": "string",
      "enum": [
        "none",
        "daily",
        "weekly",
        "monthly",
        "yearly",
        "multiple_daily",
        "interval",
        "quarterly",
        "bimonthly",
        "biennial",
        "semiannual"
      ]
    },
    "custom_interval": {
      "type": "integer",
      "minimum": 1
    },
    "reminder_days": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 365
      }
    },
    "notification_times": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "amount": {
      "type": "number"
    },
    "transaction_type": {
      "type": "string",
      "enum": [
        "none",
        "expense",
        "income"
      ]
    },
    "label_id": {
      "type": "string"
    },
    "label_ids": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "maxItems": 100
    },
    "time_zone": {
      "type": "string",
      "description": "IANA zone for the civil due date. Defaults to the digest preference, else Europe/Rome."
    },
    "client_request_id": {
      "type": "string",
      "description": "Stable key making retries idempotent. The Idempotency-Key header fills this automatically."
    }
  }
}