{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api.reflektive.com/schemas/feedback-v2",
  "title": "Real-time Feedback (v2)",
  "description": "A real-time feedback record supporting Team Recognition — one sender and one or more recipients.",
  "type": "object",
  "properties": {
    "uuid": {
      "type": "string",
      "format": "uuid",
      "description": "A unique identifier associated with this feedback.",
      "example": "e8678ff9-3ae4-4b2b-b7af-f7240155f753"
    },
    "sender": {
      "$ref": "employee.json",
      "description": "The employee who gave the feedback."
    },
    "recipients": {
      "type": "array",
      "description": "An array of Employee objects representing all people who received this feedback (supports Team Recognition).",
      "items": {
        "$ref": "employee.json"
      },
      "minItems": 1
    },
    "content": {
      "type": "string",
      "description": "The publicly visible content of the feedback.",
      "example": "Most impressive."
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "description": "The ISO 8601 timestamp when the feedback was created and sent.",
      "example": "2016-10-31T23:43:20Z"
    }
  },
  "required": ["uuid", "sender", "recipients", "content", "created_at"]
}
