{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle-primavera/json-schema/oracle-primavera-resource-schema.json",
  "title": "Resource",
  "description": "A P6 resource (labor, non-labor, or material)",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-primavera-resources-api-openapi.yml#/components/schemas/Resource",
  "type": "object",
  "properties": {
    "ObjectId": {
      "type": "integer"
    },
    "Id": {
      "type": "string"
    },
    "Name": {
      "type": "string"
    },
    "ResourceType": {
      "type": "string",
      "enum": [
        "Labor",
        "Nonlabor",
        "Material"
      ]
    },
    "UnitOfMeasure": {
      "type": "string"
    },
    "DefaultUnitsPerTime": {
      "type": "number",
      "format": "double"
    },
    "PricePerUnit": {
      "type": "number",
      "format": "double"
    },
    "CalendarObjectId": {
      "type": "integer"
    },
    "EmailAddress": {
      "type": "string"
    },
    "OfficePhone": {
      "type": "string"
    },
    "ParentObjectId": {
      "type": [
        "integer",
        "null"
      ]
    }
  }
}