

{
	"$schema":"http://json-schema.org/draft-04/schema#",
	"title":"CreateMeetUp",
	"type":"object",
	"additionalProperties":false,
	"description":"Analytics-v2 .. CreateMeetUp object",
	"properties":{
		"log_context":{
			"$ref":"/resources/schema/analytics/client/v2/LogContext.json",
			"description":"Required Log Context Reference"
		},
		"event_name":{
			"type": "string",
			"enum": ["CREATE_MEETUP"]		
		},
		"schema_definition":{
			"type": "string",
			"enum": ["CreateMeetUp"]
		},
		"action":{
			"type": "string",
			"description": "Log CLICK when the arrow sign is clicked to get to the create meet up page;Log SAVE when the meet up is created;Log CANCEL when the meet up is cancelled"
		},
		"trigger":{
			"type":"string",
			"description":"Possible values are CHAT, MEETUP_ICON, MEETUP_START, DASHBOARD, SRP_MORE, SRP_DETAILS, RECENTS_MORE, RECENTS_DETAILS, LIKES_MORE, LIKES_DETAILS, NAVIGATION:  Depending on where the user got to the create meet up screen from"
		},
		"user_type":{
			"type":"string",
			"description":"whether organizer or participant.  This would be organizer when a meet up is saved"
		},
		"group_id":{
			"type":"string",
			"description":"Unique group Id"
		},
		"group_members_list" : {
            "type" : "array",
            "items" : {
                "$ref" : "/resources/schema/analytics/client/v2/GroupMembersListItem.json"
            },
            "minItems" : 2,
            "uniqueItems" : true,
            "description" : "List of user IDs invited and flags for whether the user is an existing one or a new one"
        },
		"meetup_id":{
			"type":"string",
			"description":"Unique meetup Id"
		},
		"meetup_theme":{
			"type":"string",
			"description":"This is the sticker type selected.  Non Null in case action=SAVE"
		},
		"number_of_people":{
			"type":"number",
			"description":"Number of people in the meet up.  Non NULL for action=SAVE"
		},
		"entity_id":{
			"type":"string",
			"description":"Entity ID of the meet up"
		},
		"entity_address":{
			"type":"string",
			"description":"Address for the entity where meet up is created"
		},
		"category_id":{
			"type":"string",
			"description":"Category ID of the meet up location"
		},
		"category":{
			"type":"string",
			"description":"POI category like Coffee, Restaurants, Gas, ATM, etc."
		},
		"dest_lat":{
			"type":"number",
			"description":"Latitude of destination.  Sometimes entity ID lat long can be different from destination lat-long , ex: road located on opposite side of the edge"
		},
		"dest_lon":{
			"type":"number",
			"description":"Longitude of destination.  Sometimes entity ID lat long can be different from destination lat-long , ex: road located on opposite side of the edge"
		},
		"group_name":{
			"type":"string",
			"description":"Additional details added to the meet up, ex: name"
		},
		"meetup_time":{
			"type":"string",
			"description":"Time at which the meet up is scheduled"
		},
		"search_id":{
			"type":"string",
			"description":"Search ID from which the destination was chosen"
		},
		"nav_id":{
			"type":"number",
			"description":"nav ID for the route, when the meeting at route destination OR when trigger=NAVIGATION"
		}
	},
	"required":[
	 	"log_context",
	        "event_name",
        	"schema_definition",	
		"action",
		"trigger"
	]
}