{
  "id": "https://schemaregistry.analysis.ext.hp.com/cdm/id/sw/originatorDetail.schema.json", 
  "version": "1.0.12", 
  "gun": "com.hp.cdm.platform.software.domain.eventing.resource.originatorDetail.type.software.version.1", 
  "description": "Schema for CDM originator detail used by the CDM software SDK", 
  "required": [
    "id", 
    "version", 
    "sysUuid", 
    "modelNumber", 
    "appId", 
    "appDeployedId", 
    "appDeployedUuid", 
    "appSessionUuid", 
    "sequenceNumber", 
    "activity"
  ], 
  "additionalProperties": false, 
  "$schema": "http://json-schema.org/draft-04/schema#", 
  "type": "object", 
  "properties": {
    "id": {
      "type": "string", 
      "format": "uri"
    }, 
    "version": {
      "pattern": "^\\d+\\.\\d+\\.\\d+$", 
      "type": "string", 
      "description": "Version of originator detail schema", 
      "example": "2.3.4"
    }, 
    "sysUuid": {
      "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", 
      "type": "string", 
      "description": "System UUID", 
      "minLength": 36, 
      "maxLength": 36, 
      "example": "55984523-4063-47cc-b69d-65625404fca8"
    }, 
    "modelNumber": {
      "default": "unknown", 
      "type": "string", 
      "minLength": 1, 
      "example": "Moto G (5) Plus", 
      "description": "device model number string"
    }, 
    "appId": {
      "pattern": "[a-zA-Z]+(\\._[a-zA-Z]+)?/\\d+\\.\\d+[\\.]?[debug\\d]+$", 
      "type": "string", 
      "description": "Application Identifier in the form of {AppName}/{AppVersion-2dot} .debug is optional", 
      "maxLength": 128, 
      "example": "com.hpi.cdm.testapp/1.1.debug"
    }, 
    "appDeployedId": {
      "pattern": "[a-zA-Z]+(?:_ [a-zA-Z])?/[0-9]+[.]+[0-9]+$", 
      "type": "string", 
      "description": "Application Deployment Identifier in the form of {AppDeploy}_{AppDeployCustom}/{AppDeployVersion-1dot}", 
      "maxLength": 36, 
      "example": "Android CDM.Test App/1.34"
    }, 
    "appDeployedUuid": {
      "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", 
      "type": "string", 
      "description": "Unique to each installation", 
      "minLength": 36, 
      "maxLength": 36, 
      "example": "eda79ea3-c415-5683-1109-a2e4175575b4"
    }, 
    "appSessionUuid": {
      "pattern": "[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}", 
      "type": "string", 
      "description": "Unique to each session", 
      "minLength": 36, 
      "maxLength": 36, 
      "example": "eda79ea3-c415-5683-1109-a2e4175575b5"
    }, 
    "sequenceNumber": {
      "type": "integer", 
      "minimum": 0, 
      "maximum": 2147483647
    }, 
    "activity": {
      "type": "object", 
      "properties": {
        "currentDateTime": {
          "pattern": "\\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[1-2]\\d|3[0-1])T(?:[0-1]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.[0-9]+)?Z", 
          "type": "string", 
          "description": "UTC date time", 
          "example": "2018-09-11T18:42:18.983Z"
        }
      }, 
      "required": [
        "currentDateTime"
      ], 
      "additionalProperties": false
    }
  }, 
  "jsonSchemaGun": "com.hp.cdm.platform.software.domain.eventing.resource.originatorDetail.type.software.version.1.schema.json"
}
