{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/100hires-com/json-schema/100hires-com-evaluation-detail-schema.json",
  "title": "EvaluationDetail",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/100hires-com-evaluations-api-openapi.yml#/components/schemas/EvaluationDetail",
  "allOf": [
    {
      "$ref": "#/$defs/EvaluationSummary"
    },
    {
      "type": "object",
      "required": [
        "answers"
      ],
      "properties": {
        "answers": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/EvaluationAnswer"
          }
        }
      }
    }
  ],
  "$defs": {
    "EvaluationAnswer": {
      "type": "object",
      "required": [
        "question_id",
        "question_text",
        "value"
      ],
      "properties": {
        "question_id": {
          "type": "integer",
          "description": "Question ID."
        },
        "question_text": {
          "type": "string",
          "description": "Question text."
        },
        "value": {
          "type": [
            "string",
            "null"
          ],
          "description": "Answer value. Null if unanswered."
        }
      }
    },
    "EvaluationSummary": {
      "type": "object",
      "required": [
        "id",
        "application_id",
        "form_id",
        "form_name",
        "user",
        "summary_score",
        "created_at",
        "updated_at"
      ],
      "properties": {
        "id": {
          "type": "integer",
          "description": "Evaluation form ID."
        },
        "application_id": {
          "type": "integer",
          "description": "Application ID."
        },
        "form_id": {
          "type": "integer",
          "description": "Source form template ID."
        },
        "form_name": {
          "type": "string",
          "description": "Form name."
        },
        "url_backoffice": {
          "type": "string",
          "format": "uri",
          "description": "Absolute backoffice URL of the candidate's evaluations tab in the 100Hires recruiter app where this evaluation appears. Use to render deep-links in agent UIs."
        },
        "form_url_backoffice": {
          "type": "string",
          "format": "uri",
          "description": "Absolute backoffice URL to edit the source evaluation form template in the 100Hires recruiter app."
        },
        "user": {
          "type": "object",
          "description": "Evaluator details.",
          "properties": {
            "id": {
              "type": "integer"
            },
            "full_name": {
              "type": "string"
            }
          }
        },
        "summary_score": {
          "type": "string",
          "description": "Average score.",
          "enum": [
            "strong-yes",
            "probably-yes",
            "neutral",
            "probably-no",
            "strong-no"
          ]
        },
        "summary_text": {
          "type": [
            "string",
            "null"
          ],
          "description": "Evaluator summary. Present only when `view=full` (default); replaced with `summary_text_preview` when `view=summary`."
        },
        "summary_text_preview": {
          "type": [
            "string",
            "null"
          ],
          "description": "First 200 UTF-8 characters of the evaluator summary with a `...` suffix when truncated. Present only when `view=summary`; replaces `summary_text` to keep list responses inside the agent context budget."
        },
        "created_at": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64",
          "description": "Unix timestamp (seconds)"
        },
        "updated_at": {
          "type": [
            "integer",
            "null"
          ],
          "format": "int64",
          "description": "Unix timestamp (seconds)"
        }
      }
    }
  }
}