

{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"RecognitionScreen",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v2 .. RecognitionScreen object",
	"properties":{
		"log_context":{
			"$ref":"/resources/schema/analytics/client/v2/LogContext.json",
			"description":"Required Log Context Reference"
		},
		"event_name":{
			"type": "string",
			"enum": ["RECOGNITION_SCREEN"]		
		},
		"schema_definition":{
			"type": "string",
			"enum": ["RecognitionScreen"]
		},
		"action":{
			"type": "string",
			"description": "Log BACK when the button is clicked; DISPLAY when the screen is displayed; NEXT or DONE when the corresponding button is clicked (CLICK,NEXT,BACK,CONFIRM,DISPLAY)"
		},
		"trigger":{
			"type":"string",
			"description":"Whether the recognition screen was displayed during FTUE or user got there from SETTINGS page "
		},
		"first_name":{
			"type":"string",
			"description":"When action=DISPLAY, this field would imply the first name detected; when action = NEXT or CONFIRM, this field would mean what the user input"
		},
		"last_name":{
			"type":"string",
			"description":"When action=DISPLAY, this field would imply the last name detected; when action = NEXT or CONFIRM, this field would mean what the user input"
		},
		"photo_detected":{
			"type":"string",
			"description":"Whether the photo was detected or not (YES/NO)"
		},
		"credential_type":{
			"type":"string",
			"description":"Log PTN when credential type is PTN.  In future releases if the login type is not PTN, other enums would apply"
		},
		"credential_key":{
			"type":"string",
			"description":"Email or FB email or G+Email for the user or PTN: Ex: 408-123-4567"
		}
	},
	"required":[
	 	"log_context",
	        "event_name",
        	"schema_definition",	
		"action",
		"trigger"
	]
}