{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/eightfold-ai/json-schema/eightfold-ai-performance-feedback-provide-schema-schema.json",
  "title": "PerformanceFeedbackProvideSchema",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/eightfold-ai-performance-feedback-api-openapi.yml#/components/schemas/PerformanceFeedbackProvideSchema",
  "type": "object",
  "properties": {
    "answers": {
      "description": "List of answers, one per question",
      "type": "array",
      "items": {
        "$ref": "#/$defs/PerformanceFeedbackAnswerSchema"
      }
    },
    "profileEncId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Encoded profile ID of the candidate the feedback is about"
    },
    "templateId": {
      "type": "integer",
      "format": "int32",
      "description": "ID of the question template being answered"
    },
    "reviewRequestId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Encoded review request ID — supply when responding to a previously requested review"
    }
  },
  "required": [
    "answers",
    "templateId"
  ],
  "$defs": {
    "PerformanceFeedbackAnswerSchema": {
      "type": "object",
      "properties": {
        "answer": {
          "type": "string",
          "description": "Answer payload — type depends on question (string, number, list, or dict)"
        },
        "label": {
          "type": [
            "string",
            "null"
          ],
          "description": "Optional label (e.g. for choice/scale questions)"
        },
        "questionId": {
          "type": "integer",
          "format": "int32",
          "description": "ID of the question being answered"
        },
        "comment": {
          "type": [
            "string",
            "null"
          ],
          "description": "Optional free-text comment accompanying the answer"
        }
      },
      "required": [
        "answer",
        "questionId"
      ]
    }
  }
}