{
    "$schema" : "http://json-schema.org/draft-04/schema#",
    "title" : "EntityFeedback",
    "type" : "object",
    "additionalProperties" : false,
    "description" : "Analytics-v2 .. Entity Feedback object",
    "properties" : {
        "log_context" : {
            "$ref" : "/resources/schema/analytics/client/v2/LogContext.json",
            "description" : "Required Log Context Reference"
        },
        "event_name" : {
            "type" : "string",
            "enum" : [
                "ENTITY_FEEDBACK"
            ]
        },
        "schema_definition" : {
            "type" : "string",
            "enum" : [
                "EntityFeedback"
            ]
        },
        "action" : {
            "$ref" : "/resources/schema/analytics/client/v2/ReportActionType.json",
            "description" : "Required .. Log Click when user clicks on feedback button. Log Submit or Back depending on user choice the following screen displayed"
        },
        "description" : {
            "$ref" : "/resources/schema/analytics/client/v2/EntityFeedbackType.json",
            "description" : "Issue being reported."
        },
        "notes" : {
            "type" : "string",
            "description" : "Details typed in by user if any."
        },
        "entity_id" : {
            "type" : "string",
            "description" : "Required Entity ID of the address or POI if is_sponsored is false."
        },
        "merchant_id" : {
            "type" : "string",
            "description" : "Merchant ID offering the coupon."
        },
        "distance" : {
            "type" : "number",
            "description" : "Calculated distance."
        },
        "category_id" : {
            "type" : "string",
            "description" : "Category ID of the place"
        },
        "category" : {
            "type" : "string",
            "description" : "POI category like Coffee, Gas, ATM, etc.."
        },
        "is_sponsored" : {
            "type" : "boolean",
            "description" : "Whether advertised or organic if resulted from a search"
        },
        "search_id" : {
            "type" : "string",
            "description" : "LogID of Search that led to the detail page if from search result"
        },
        "coupon_detail_id" : {
            "type" : "string",
            "description" : "LogID of CouponDetails that led to the detail page if from coupons page"
        },
        "status" : {
            "$ref" : "/resources/schema/analytics/client/v2/StatusType.json",
            "description" : "Successfully submitted or not if action was Submit."
        },
        "coupon_flag" : {
            "type" : "boolean",
            "description" : "Whether a coupon is associated with the POI or not"
        },
        "reffering_experience" : {
            "type" : "string",
            "description" : "values of SRP_List SRP_Map Place_Details Recents Favorite Other"
        },
        "is_active" : {
            "type" : "boolean",
            "description" : "Whether a coupon is active/redeemable or not. If grayed out due to maxed out redeems, status should reflect inactive."
        },
        "interaction_method": {
            "$ref": "/resources/schema/analytics/client/v2/InteractionMethodValues.json",
            "description": "for each user interaction log the interation method"
        }
    },
    "required" : [
        "log_context",
        "event_name",
        "schema_definition",
        "action",
        "is_sponsored"
    ]
}