{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/onplana-com/json-schema/onplana-com-project-schema.json",
  "title": "Project",
  "x-generated": "2026-11-20",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/onplana-com-openapi.json#/components/schemas/Project",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "type": "string",
      "enum": [
        "PLANNING",
        "ACTIVE",
        "ON_HOLD",
        "COMPLETED",
        "CANCELLED"
      ]
    },
    "progress": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "budget": {
      "type": [
        "number",
        "null"
      ]
    },
    "startDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "endDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "statusDate": {
      "type": [
        "string",
        "null"
      ],
      "format": "date",
      "description": "The \"as of\" date for progress reporting; null means today"
    },
    "autoSchedule": {
      "type": "boolean",
      "description": "Automatic scheduling. False: editing a date or adding a link moves no other task; only Recalculate writes the dates the scheduler works out. Set with PUT /scheduling/projects/{id}/auto-schedule."
    },
    "parentDatesFromSubtasks": {
      "type": "boolean",
      "description": "The default for a task with subtasks: true takes its start and due dates from them, unless the task's own isManual says otherwise. Read only while the server switch parent_date_rollup_enabled is on. Set with PUT /scheduling/projects/{id}/parent-dates."
    },
    "retainedLogic": {
      "type": "boolean",
      "description": "How a started task meets its links. false (the default, progress override): it holds at its actual start and its links stop moving it. true (retained logic, MS Project split in-progress tasks): its remaining work waits on its incoming links, so a late predecessor pushes it. Read only while the server switch retained_logic_enabled is on. Set with PUT /projects/{id}."
    },
    "organizationId": {
      "type": "string",
      "format": "uuid"
    }
  },
  "required": [
    "id",
    "name",
    "status",
    "progress",
    "organizationId"
  ]
}