{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-equipment-warranties-with-keys-schema.json",
  "title": "data_equipment_warranties_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-em-openapi.yml#/components/schemas/data_equipment_warranties_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_equipment_warranties"
    }
  ],
  "$defs": {
    "data_equipment_warranties": {
      "required": [
        "EMCo",
        "Equipment",
        "Sequence",
        "KeyID"
      ],
      "type": "object",
      "properties": {
        "EMCo": {
          "type": "integer",
          "description": ""
        },
        "Equipment": {
          "maxLength": 10,
          "type": "string",
          "description": ""
        },
        "Sequence": {
          "type": "integer",
          "description": ""
        },
        "Manufacturer": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PartNo": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "SerialNo": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "PartDescription": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "WarrantyDesc": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "APCo": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "VendorGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "APVendor": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "APRef": {
          "maxLength": 30,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "MatlGroup": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "HQMaterial": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "DatePurchased": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "DateInstalled": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "MilesAtInstall": {
          "pattern": "^[-+]?[0-9]{1,18}(?:.[0-9]{0,0})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "HoursAtInstall": {
          "pattern": "^[-+]?[0-9]{1,18}(?:.[0-9]{0,0})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "InstalledBy": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Status": {
          "maxLength": 1,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "InactiveDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "WarrantyHours": {
          "pattern": "^[-+]?[0-9]{1,18}(?:.[0-9]{0,0})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "WarrantyMiles": {
          "pattern": "^[-+]?[0-9]{1,18}(?:.[0-9]{0,0})?$",
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "WarrantyDays": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "WarrantyMonths": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "WarrantyYears": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Notes": {
          "type": [
            "string",
            "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": ""
        },
        "KeyID": {
          "type": "integer",
          "description": ""
        },
        "WarrantyStartDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "WarrantyExpirationDate": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "WarrantyUM": {
          "maxLength": 10,
          "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."
        }
      }
    }
  }
}