{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-data-serviceable-items-with-keys-schema.json",
  "title": "data_serviceable_items_withKeys",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-vista-sm-openapi.yml#/components/schemas/data_serviceable_items_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_serviceable_items"
    }
  ],
  "$defs": {
    "data_serviceable_items": {
      "required": [
        "SMCo",
        "ServiceSite",
        "ServiceItem",
        "SMServiceItemID",
        "Class",
        "Type",
        "LaborWarranty",
        "MaterialWarranty",
        "Active"
      ],
      "type": "object",
      "properties": {
        "SMCo": {
          "type": "integer",
          "description": ""
        },
        "ServiceSite": {
          "maxLength": 20,
          "type": "string",
          "description": ""
        },
        "ServiceItem": {
          "maxLength": 20,
          "type": "string",
          "description": ""
        },
        "Description": {
          "maxLength": 120,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "ServiceItemSummary": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Manufacturer": {
          "maxLength": 20,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Model": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "YearManufactured": {
          "type": [
            "integer",
            "null"
          ],
          "description": ""
        },
        "Location": {
          "maxLength": 60,
          "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": ""
        },
        "SMServiceItemID": {
          "type": "integer",
          "description": ""
        },
        "Notes": {
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "Class": {
          "maxLength": 15,
          "type": "string",
          "description": ""
        },
        "Type": {
          "maxLength": 15,
          "type": "string",
          "description": ""
        },
        "SerialNumber": {
          "maxLength": 60,
          "type": [
            "string",
            "null"
          ],
          "description": ""
        },
        "LaborWarranty": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "description": ""
        },
        "LaborWarrantyExpDate": {
          "type": [
            "string",
            "null"
          ],
          "description": "Format: YYYY-MM-DD"
        },
        "MaterialWarranty": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "description": ""
        },
        "MaterialWarrantyExpDate": {
          "type": [
            "string",
            "null"
          ],
          "description": "Format: YYYY-MM-DD"
        },
        "Active": {
          "enum": [
            "Y",
            "N"
          ],
          "type": "string",
          "description": ""
        },
        "QRCodeID": {
          "maxLength": 60,
          "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."
        }
      }
    }
  }
}