{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/scadenzario-app/json-schema/scadenzario-app-deadline-schema.json",
  "title": "Deadline",
  "x-generated": "2026-11-23",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/scadenzario-app-openapi.json#/components/schemas/Deadline",
  "type": "object",
  "required": [
    "id",
    "title",
    "due_at",
    "recurrence",
    "is_done"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "due_at": {
      "type": "string",
      "format": "date-time"
    },
    "notes": {
      "type": [
        "string",
        "null"
      ]
    },
    "emoji": {
      "type": [
        "string",
        "null"
      ]
    },
    "recurrence": {
      "type": "string",
      "enum": [
        "none",
        "daily",
        "weekly",
        "monthly",
        "yearly",
        "multiple_daily",
        "interval",
        "specific_dates",
        "yearly_dates",
        "quarterly",
        "bimonthly",
        "biennial",
        "semiannual"
      ]
    },
    "custom_interval": {
      "type": "integer"
    },
    "reminder_days": {
      "type": "array",
      "items": {
        "type": "integer"
      }
    },
    "notification_times": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "amount": {
      "type": [
        "number",
        "null"
      ]
    },
    "transaction_type": {
      "type": "string",
      "enum": [
        "none",
        "expense",
        "income"
      ]
    },
    "is_paid": {
      "type": "boolean"
    },
    "paid_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "paid_amount": {
      "type": [
        "number",
        "null"
      ],
      "description": "Amount actually paid, when it differs from amount."
    },
    "is_done": {
      "type": "boolean"
    },
    "label_id": {
      "type": [
        "string",
        "null"
      ]
    },
    "label_ids": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "has_attachment": {
      "type": "boolean"
    },
    "created_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "updated_at": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}