{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/moneyhub/main/json-schema/moneyhub-project-patch-schema.json",
  "title": "ProjectPatch",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/moneyhub-projects-api-openapi.yml#/components/schemas/ProjectPatch",
  "additionalProperties": false,
  "properties": {
    "name": {
      "description": "The name of the project",
      "type": "string"
    },
    "accountIds": {
      "description": "Account IDs that are associated with the project",
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "type": {
      "description": "The project type",
      "type": "string",
      "enum": [
        "PropertyProject",
        "RentalProject",
        "GenericProject"
      ]
    },
    "archived": {
      "description": "Flag to determine if project is archived or not",
      "type": "boolean"
    }
  },
  "type": "object"
}