{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/runn/json-schema/runn-project-other-expense-schema.json",
  "title": "Project Other Expense",
  "description": "A non-labour expense for a project.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/runn-other-expenses-api-openapi.yml#/components/schemas/ProjectOtherExpense",
  "type": "object",
  "properties": {
    "id": {
      "description": "Unique identifier for the other expense.",
      "readOnly": true,
      "type": "integer"
    },
    "cost": {
      "minimum": 0,
      "description": "How much the item costs for your business (in your account's currency).",
      "type": "number"
    },
    "charge": {
      "minimum": 0,
      "description": "How much you are charging your clients for the item (in your account's currency).",
      "type": "number"
    },
    "name": {
      "minLength": 1,
      "description": "The item or service that was purchased.",
      "type": "string"
    },
    "date": {
      "type": "string",
      "format": "date",
      "description": "The date the expense was incurred."
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date the expense was last updated."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date the expense was created."
    },
    "projectId": {
      "description": "The project the expense is associated with.",
      "type": "integer"
    }
  },
  "required": [
    "id",
    "cost",
    "charge",
    "name",
    "date",
    "updatedAt",
    "createdAt",
    "projectId"
  ]
}