{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/argus-enterprise/refs/heads/main/json-schema/argus-enterprise-lease-input-schema.json",
  "title": "LeaseInput",
  "description": "LeaseInput schema from ARGUS Enterprise API",
  "type": "object",
  "properties": {
    "tenantId": {
      "type": "string",
      "format": "uuid"
    },
    "unitNumber": {
      "type": "string"
    },
    "leaseType": {
      "type": "string",
      "enum": [
        "Gross",
        "Net",
        "DoubleNet",
        "TripleNet",
        "ModifiedGross",
        "PercentageRent"
      ]
    },
    "status": {
      "type": "string",
      "enum": [
        "Active",
        "Expired",
        "Pending"
      ],
      "default": "Active"
    },
    "startDate": {
      "type": "string",
      "format": "date"
    },
    "endDate": {
      "type": "string",
      "format": "date"
    },
    "leasedArea": {
      "type": "number",
      "format": "double"
    },
    "baseRent": {
      "type": "number",
      "format": "double"
    },
    "rentFrequency": {
      "type": "string",
      "enum": [
        "Monthly",
        "Quarterly",
        "Annual"
      ],
      "default": "Monthly"
    },
    "escalationRate": {
      "type": "number",
      "format": "double"
    },
    "escalationType": {
      "type": "string",
      "enum": [
        "Fixed",
        "CPI",
        "MarketReset",
        "StepUp"
      ]
    },
    "securityDeposit": {
      "type": "number",
      "format": "double"
    },
    "tenantImprovementAllowance": {
      "type": "number",
      "format": "double"
    },
    "currency": {
      "type": "string",
      "default": "USD"
    }
  },
  "required": [
    "tenantId",
    "leaseType",
    "startDate",
    "endDate",
    "baseRent"
  ]
}