{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-cost-detail-period-with-keys-schema.json",
  "title": "data_cost_detail_period_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-jc-openapi.yml#/components/schemas/data_cost_detail_period_withKeys",
  "allOf": [
    {
      "type": "object",
      "properties": {
        "__ryvitKeys": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Array of key paths that can be used to retrieve this object."
        },
        "__modifiedUTC": {
          "type": "string",
          "description": "UTC timestamp of when this object was last modified in the cache."
        }
      }
    },
    {
      "$ref": "#/$defs/data_cost_detail_period"
    }
  ],
  "$defs": {
    "data_cost_detail_period": {
      "required": [
        "JCCo",
        "Job",
        "PhaseGroup",
        "Phase",
        "CostType",
        "Mth",
        "ActualHours",
        "ActualUnits",
        "ActualCost",
        "OrigEstHours",
        "OrigEstUnits",
        "OrigEstCost",
        "CurrEstHours",
        "CurrEstUnits",
        "CurrEstCost",
        "ProjHours",
        "ProjUnits",
        "ProjCost",
        "ForecastHours",
        "ForecastUnits",
        "ForecastCost",
        "TotalCmtdUnits",
        "TotalCmtdCost",
        "RemainCmtdUnits",
        "RemainCmtdCost",
        "RecvdNotInvcdUnits",
        "RecvdNotInvcdCost",
        "ProjPlug",
        "KeyID"
      ],
      "type": "object",
      "properties": {
        "JCCo": {
          "type": "integer",
          "description": ""
        },
        "Job": {
          "maxLength": 10,
          "type": "string",
          "description": ""
        },
        "PhaseGroup": {
          "type": "integer",
          "description": ""
        },
        "Phase": {
          "maxLength": 20,
          "type": "string",
          "description": ""
        },
        "CostType": {
          "type": "integer",
          "description": ""
        },
        "Mth": {
          "type": "string",
          "description": ""
        },
        "ActualHours": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "ActualUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": "string",
          "description": ""
        },
        "ActualCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "OrigEstHours": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "OrigEstUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": "string",
          "description": ""
        },
        "OrigEstCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "CurrEstHours": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "CurrEstUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": "string",
          "description": ""
        },
        "CurrEstCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "ProjHours": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "ProjUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": "string",
          "description": ""
        },
        "ProjCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "ForecastHours": {
          "pattern": "^[-+]?[0-9]{1,8}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "ForecastUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": "string",
          "description": ""
        },
        "ForecastCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "TotalCmtdUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": "string",
          "description": ""
        },
        "TotalCmtdCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "RemainCmtdUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": "string",
          "description": ""
        },
        "RemainCmtdCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "RecvdNotInvcdUnits": {
          "pattern": "^[-+]?[0-9]{1,9}(?:.[0-9]{0,3})?$",
          "type": "string",
          "description": ""
        },
        "RecvdNotInvcdCost": {
          "pattern": "^[-+]?[0-9]{1,10}(?:.[0-9]{0,2})?$",
          "type": "string",
          "description": ""
        },
        "ProjPlug": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "description": ""
        },
        "KeyID": {
          "type": "integer",
          "description": ""
        },
        "__custom_fields": {
          "type": "object",
          "description": "This property will be added if there are any custom fields defined for this object in Vista.  Each custom field will be a property of this object."
        }
      }
    }
  }
}