{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ruzora-com/json-schema/ruzora-com-recruiter-assessment-view-schema.json",
  "title": "RecruiterAssessmentView",
  "description": "GET /api/candidates/{id}/coding-assessment — recruiter detail panel.",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ruzora-com-openapi.json#/components/schemas/RecruiterAssessmentView",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "title": "Id"
    },
    "candidate_id": {
      "type": "string",
      "format": "uuid",
      "title": "Candidate Id"
    },
    "challenge_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Challenge Id"
    },
    "assessment_kind": {
      "type": "string",
      "enum": [
        "coding",
        "questions"
      ],
      "title": "Assessment Kind",
      "default": "coding"
    },
    "challenge_title": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Challenge Title"
    },
    "challenge_language": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Challenge Language"
    },
    "challenge_difficulty": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Challenge Difficulty"
    },
    "package_id": {
      "anyOf": [
        {
          "type": "string",
          "format": "uuid"
        },
        {
          "type": "null"
        }
      ],
      "title": "Package Id"
    },
    "package_name": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Package Name"
    },
    "package_slug": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Package Slug"
    },
    "status": {
      "type": "string",
      "title": "Status"
    },
    "submitted_code": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Submitted Code"
    },
    "test_results": {
      "anyOf": [
        {
          "items": {},
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "title": "Test Results"
    },
    "score": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Score"
    },
    "ai_reasoning": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Ai Reasoning"
    },
    "sent_at": {
      "type": "string",
      "format": "date-time",
      "title": "Sent At"
    },
    "submitted_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Submitted At"
    },
    "graded_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Graded At"
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "title": "Expires At"
    },
    "started_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Started At"
    },
    "working_seconds": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Working Seconds"
    },
    "wall_seconds": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Wall Seconds"
    },
    "time_self_reported": {
      "type": "boolean",
      "title": "Time Self Reported",
      "default": false
    },
    "time_plausible": {
      "anyOf": [
        {
          "type": "boolean"
        },
        {
          "type": "null"
        }
      ],
      "title": "Time Plausible"
    },
    "question_responses": {
      "items": {
        "$ref": "#/$defs/QuestionResponseView"
      },
      "type": "array",
      "title": "Question Responses",
      "default": []
    },
    "overall_score": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Overall Score"
    },
    "flow_version": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Flow Version"
    },
    "time_multiplier": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ],
      "title": "Time Multiplier"
    },
    "block1_started_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Block1 Started At"
    },
    "block2_started_at": {
      "anyOf": [
        {
          "type": "string",
          "format": "date-time"
        },
        {
          "type": "null"
        }
      ],
      "title": "Block2 Started At"
    },
    "flag_summary": {
      "anyOf": [
        {
          "additionalProperties": true,
          "type": "object"
        },
        {
          "type": "null"
        }
      ],
      "title": "Flag Summary"
    }
  },
  "type": "object",
  "required": [
    "id",
    "candidate_id",
    "status",
    "submitted_code",
    "test_results",
    "score",
    "ai_reasoning",
    "sent_at",
    "submitted_at",
    "graded_at",
    "expires_at"
  ],
  "$defs": {
    "QuestionResponseView": {
      "properties": {
        "slug": {
          "type": "string",
          "title": "Slug"
        },
        "prompt_md": {
          "type": "string",
          "title": "Prompt Md"
        },
        "category": {
          "type": "string",
          "title": "Category"
        },
        "expected_signal_md": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Expected Signal Md"
        },
        "order_index": {
          "type": "integer",
          "title": "Order Index"
        },
        "question_type": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Question Type"
        },
        "choices": {
          "anyOf": [
            {
              "items": {},
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Choices"
        },
        "answer_md": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Answer Md"
        },
        "selected_values": {
          "anyOf": [
            {
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            {
              "type": "null"
            }
          ],
          "title": "Selected Values"
        },
        "ai_score": {
          "anyOf": [
            {
              "type": "integer"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ai Score"
        },
        "ai_reasoning": {
          "anyOf": [
            {
              "additionalProperties": true,
              "type": "object"
            },
            {
              "type": "null"
            }
          ],
          "title": "Ai Reasoning"
        },
        "responded_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Responded At"
        },
        "graded_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time"
            },
            {
              "type": "null"
            }
          ],
          "title": "Graded At"
        }
      },
      "type": "object",
      "required": [
        "slug",
        "prompt_md",
        "category",
        "order_index"
      ],
      "title": "QuestionResponseView",
      "description": "One graded question response — full visibility, recruiter-only."
    }
  }
}