{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "additionalProperties": false,
    "description": "Version v6",
    "properties": {
        "trip_id": {
            "type": "string"
        },
        "distance_traveled_in_meters": {
            "type": "integer"
        },
        "start_utc_timestamp": {
            "type": "integer"
        },
        "dest_entity_id": {
            "type": "string"
        },
        "origin_entity_id": {
            "type": "string"
        },
        "type": {
            "$ref": "/resources/schema/user/v6/TripType.json"
        },
        "notes": {
            "type": "string"
        },
        "end_utc_timestamp": {
            "type": "integer"
        },
        "mileage_rate": {
            "$ref": "/resources/schema/common/v1/Currency.json"
        },
        "expenses": {
            "items": {
                "$ref": "/resources/schema/user/v6/TripExpense.json"
            },
            "type": "array"
        }
    },
    "required": [
        "trip_id",
        "start_utc_timestamp",
        "end_utc_timestamp",
        "dest_entity_id",
        "origin_entity_id",
        "type"
    ],
    "title": "Trip",
    "type": "object"
}
