diff --git a/src/shared-module/bindings.guard.ts b/src/shared-module/bindings.guard.ts index f9a9069..4d7d933 100644 --- a/src/shared-module/bindings.guard.ts +++ b/src/shared-module/bindings.guard.ts @@ -934,7 +934,10 @@ export function isExerciseServiceInfoApi(obj: unknown): obj is ExerciseServiceIn typeof typedObj["user_interface_iframe_path"] === "string" && typeof typedObj["grade_endpoint_path"] === "string" && typeof typedObj["public_spec_endpoint_path"] === "string" && - typeof typedObj["model_solution_spec_endpoint_path"] === "string" + typeof typedObj["model_solution_spec_endpoint_path"] === "string" && + (typeof typedObj["has_custom_view"] === "undefined" || + typedObj["has_custom_view"] === false || + typedObj["has_custom_view"] === true) ) } diff --git a/src/shared-module/bindings.ts b/src/shared-module/bindings.ts index 63e3349..d3905c4 100644 --- a/src/shared-module/bindings.ts +++ b/src/shared-module/bindings.ts @@ -455,6 +455,7 @@ export interface ExerciseServiceInfoApi { grade_endpoint_path: string public_spec_endpoint_path: string model_solution_spec_endpoint_path: string + has_custom_view?: boolean } export interface ExerciseService {