

{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"AddPhoto",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v2 .. AddPhoto object",
	"properties":{
		"log_context":{
			"$ref":"/resources/schema/analytics/client/v2/LogContext.json",
			"description":"Required Log Context Reference"
		},
		"event_name":{
			"type": "string",
			"enum": ["ADD_PHOTO"]		
		},
		"schema_definition":{
			"type": "string",
			"enum": ["AddPhoto"]
		},
		"action":{
			"type": "string",
			"description": "Log DISPLAY when the screen is displayed; otherwise log the corresponding button name (SKIP, BACK, NEXT, DONE, etc)"
		},
		"trigger":{
			"type":"string",
			"description":"Whether photo was added during FTUE or imported later from SETTINGS"
		},
		"status":{
			"type":"string",
			"description":"whether photo addition was SUCCESS or FAILURE"
		},
		"caused_by":{
			"type":"string",
			"description":"if status=FAILURE, reason for failure"
		},
		"credential_type":{
			"type":"string",
			"description":"Whether photo is added from gallery, FB, G+ or camera: GALLERY,TAKE_PHOTO,FB_ACCESS_TOKEN,G+_ACCESS_TOKEN"
		}
	},
	"required":[
		"log_context",
		"event_name",
        	"schema_definition",
		"action",
		"trigger"
	]
}