From b4bfa3e716bc385600bbeb385cddf2fe0e073f4f Mon Sep 17 00:00:00 2001 From: Sol Dubock <94075844+sjd210@users.noreply.github.com> Date: Fri, 7 Nov 2025 14:39:47 +0000 Subject: [PATCH] Replace "marksAwarded" with "marks" field in DTOs --- src/IsaacApiTypes.tsx | 2 +- src/app/components/elements/LLMFreeTextQuestionFeedbackView.tsx | 2 +- src/mocks/data.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/IsaacApiTypes.tsx b/src/IsaacApiTypes.tsx index da235d0d86..fe64c57f69 100644 --- a/src/IsaacApiTypes.tsx +++ b/src/IsaacApiTypes.tsx @@ -360,6 +360,7 @@ export interface QuestionValidationResponseDTO { questionId?: string; answer?: ChoiceDTO; correct?: boolean; + marks?: number; explanation?: ContentDTO; dateAttempted?: Date; } @@ -374,7 +375,6 @@ export interface InlineRegionValidationResponseDTO extends QuestionValidationRes } export interface LLMFreeTextQuestionValidationResponseDTO extends QuestionValidationResponseDTO { - marksAwarded?: number; markBreakdown?: LLMFreeTextMarkSchemeEntryDTO[]; } diff --git a/src/app/components/elements/LLMFreeTextQuestionFeedbackView.tsx b/src/app/components/elements/LLMFreeTextQuestionFeedbackView.tsx index 4707dcb48f..da578dc7f9 100644 --- a/src/app/components/elements/LLMFreeTextQuestionFeedbackView.tsx +++ b/src/app/components/elements/LLMFreeTextQuestionFeedbackView.tsx @@ -39,7 +39,7 @@ export default function LLMFreeTextQuestionFeedbackView({validationResponse, max