{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "title": "EntityFeedback",
    "type": "object",
    "additionalProperties": false,
    "description": "Entity Feedback",
    "properties": {
        "log_context": {
            "$ref": "/resources/schema/analytics/client/v4/LogContext.json",
            "description": "Required Log Context Reference"
        },
        "event_name": {
            "type": "string",
            "enum": [
                "ENTITY_FEEDBACK"
            ]
        },
        "schema_definition": {
            "type": "string",
            "enum": [
                "EntityFeedback"
            ]
        },
        "entity_id": {
            "type": "string",
            "description": "Entity ID of the result that was taken action"
        },
        "feedback": {
            "$ref": "/resources/schema/analytics/client/v4/type/EntityFeedbackType.json",
            "description": "Entity Feedback Type"
        },
        "description": {
            "type": "string",
            "description": "description of entity feedback"
        },
        "user_nickname": {
            "type": "string",
            "description": "Available friendly name (nickname) of user"
        },
        "overall_rating": {
            "type": "integer",
            "description": "User overall rating. Range 1-5",
            "minimum": 1,
            "maximum": 5
        },
        "safety_rating": {
            "type": "integer",
            "description": "User rating indicating overall safety. Range 1-5",
            "minimum": 1,
            "maximum": 5
        },
        "amenity_rating": {
            "type": "integer",
            "description": "User rating regarding the richness and diversity of amenities so user has things to do while visiting entity. Range 1-5",
            "minimum": 1,
            "maximum": 5
        }
    },
    "required": [
        "log_context",
        "event_name",
        "schema_definition",
        "entity_id",
        "feedback"
    ]
}