{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "FeatureFeedback",
  "type": "object",
  "additionalProperties": false,
  "description": "Feature Feedback",
  "properties": {
    "log_context": {
      "$ref": "/resources/schema/analytics/client/v4/LogContext.json",
      "description": "Required Log Context Reference"
    },
    "event_name": {
      "type": "string",
      "enum": [
        "FEATURE_FEEDBACK"
      ]
    },
    "schema_definition": {
      "type": "string",
      "enum": [
        "FeatureFeedback"
      ]
    },
    "feature": {
      "type": "string",
      "description": "The feature/functionality for which feedback is being logged. This can be services like Search, Prediction, Route and others."
    },
    "feature_id": {
      "type": "string",
      "description": "The id of the feature for which feedback is being logged. This is the representative transaction id of the service like search_id, prediction_id"
    },
    "feedback": {
      "type": "array",
      "items": {
        "$ref": "/resources/schema/analytics/client/v4/item/FeatureFeedbackItem.json"
      },
      "description": "List of feedback category and feedback text"
    },
    "overall_rating": {
      "type": "integer",
      "description": "User overall rating. Range 1-5",
      "minimum": 1,
      "maximum": 5
    }
  },
  "required": [
    "log_context",
    "event_name",
    "schema_definition",
    "feature",
    "feature_id",
    "overall_rating"
  ]
}