{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-leave-batch-entries-with-keys-schema.json",
  "title": "data_leave_batch_entries_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-pr-openapi.yml#/components/schemas/data_leave_batch_entries_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_leave_batch_entries"
    }
  ],
  "$defs": {
    "data_leave_batch_entries": {
      "required": [
        "KeyID",
        "Co",
        "Mth",
        "BatchId",
        "BatchSeq"
      ],
      "type": "object",
      "properties": {
        "KeyID": {
          "type": "integer",
          "description": ""
        },
        "Co": {
          "type": "integer",
          "description": ""
        },
        "Mth": {
          "type": "string",
          "description": "Format: YYYY-MM-01.",
          "format": "datetime"
        },
        "BatchId": {
          "type": "integer",
          "description": ""
        },
        "BatchSeq": {
          "type": "integer",
          "description": ""
        },
        "BatchTransType": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "Trans": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Employee": {
          "type": "integer",
          "description": ""
        },
        "LeaveCode": {
          "maxLength": 10,
          "type": "string",
          "description": ""
        },
        "ActDate": {
          "type": "string",
          "description": "Format: YYYY-MM-DD",
          "format": "datetime"
        },
        "Type": {
          "maxLength": 1,
          "type": "string",
          "description": ""
        },
        "Amt": {
          "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
          "type": "string",
          "description": ""
        },
        "Accum1Adj": {
          "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Accum2Adj": {
          "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "AvailBalAdj": {
          "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Description": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PRGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "PREndDate": {
          "type": [
            "string",
            "null"
          ],
          "description": "Format: YYYY-MM-DD",
          "format": "datetime"
        },
        "PaySeq": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "OldEmployee": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "OldLeaveCode": {
          "maxLength": 10,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldActDate": {
          "type": [
            "string",
            "null"
          ],
          "description": "Format: YYYY-MM-DD",
          "format": "datetime"
        },
        "OldType": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldAmt": {
          "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldAccum1Adj": {
          "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldAccum2Adj": {
          "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldAvailBalAdj": {
          "pattern": "^[-+]?[0-9]{1,11}(?:.[0-9]{0,5})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldDesc": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "OldPRGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "OldPREndDate": {
          "type": [
            "string",
            "null"
          ],
          "description": "Format: YYYY-MM-DD",
          "format": "datetime"
        },
        "OldPaySeq": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "UniqueAttchID": {
          "maxLength": 36,
          "minLength": 36,
          "pattern": "[0-9a-fA-F]{8}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{4}\\-[0-9a-fA-F]{12}",
          "type": [
            "string",
            "null"
          ],
          "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."
        }
      }
    }
  }
}