{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "type": "object",
    "properties": {
        "comments_from_lms": {
            "comment": {
                "type": "string"
            },
            "location": {
                "type": "string"
            },
            "timestamp": {
                "type": "string",
                "format": "date-time"
            }
        },
        "credit": {
            "enum": [
                "credit",
                "no-credit"
            ]
        },
        "mode": {
            "enum": [
                "browse",
                "normal",
                "review"
            ]
        },
        "location": {
            "type": "string"
        },
        "preferences": {
            "audio_level": {
                "type": "number",
                "minimum": 0
            },
            "language": {
                "type": "string"
            },
            "delivery_speed": {
                "type": "number",
                "minimum": 0
            },
            "audio_captioning": {
                "enum": [
                    -1,
                    0,
                    1
                ]
            }
        },
        "total_time": {
            "type": "string"
        },
        "adl_data": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "activityId": {
                        "type": "string",
                        "format": "uri"
                    },
                    "agent": {
                        "objectType": {
                            "enum": [
                                "Agent"
                            ]
                        },
                        "name": {
                            "type": "string"
                        },
                        "mbox": {
                            "type": "string",
                            "format": "uri"
                        },
                        "mbox_sha1sum": {
                            "type": "string"
                        },
                        "openid": {
                            "type": "string",
                            "format": "uri"
                        },
                        "account": {
                            "type": "object",
                            "properties": {
                                "name": {
                                    "type": "string"
                                },
                                "homePage": {
                                    "type": "string",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "stateId": {
                        "type": "string"
                    },
                    "registration": {
                        "type": "string"
                    }
                }
            }
        }
    }
}