{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "TripAttributeSelection",
    "type": "object",
    "additionalProperties": false,
    "description": "To log trip attributes manually selected by user during an active trip. Only takes effect before the trip_summary is finalized; cannot modify finalized historical trips.",
    "properties": {
        "log_context": {
            "$ref": "/resources/schema/analytics/client/v4/LogContext.json",
            "description": "Required Log Context Reference"
        },
        "event_name": {
            "type": "string",
            "enum": [
                "TRIP_ATTRIBUTE_SELECTION"
            ]
        },
        "schema_definition": {
            "type": "string",
            "enum": [
                "TripAttributeSelection"
            ]
        },
        "driver_passenger_selection": {
            "type": "string",
            "description": "Driver or passenger selection manually made by user for the current trip",
            "enum": [
                "DRIVER",
                "PASSENGER"
            ]
        }
    },
    "required": [
        "log_context",
        "event_name",
        "schema_definition"
    ]
}
