this.emitError(`dojo_assignment.json file schema is invalid.\nHere are the errors:\n${JSON5.stringify(validationResults.errors)}`,'dojo_assignment.json file is invalid',AssignmentCheckerError.ASSIGNMENT_FILE_SCHEMA_ERROR);
this.emitError(`dojo_assignment.json file schema is invalid.\nHere are the errors:\n${validationResults.error}`,'dojo_assignment.json file is invalid',AssignmentCheckerError.ASSIGNMENT_FILE_SCHEMA_ERROR);
return;
}
assignmentFile=validationResults.results!;
assignmentFile=validationResults.content!;
this.endSubStep('dojo_assignment.json file schema is valid',false);
// Immutable files validation (Check if exists and if the given type is correct)
this.events.emit('endStep','VALIDATE_RESULTS_FILE',`Results file is not valid. Here are the errors :\n${JSON.stringify(validationResults.errors)}`,true);
this.events.emit('endStep','VALIDATE_RESULTS_FILE',`Results file is not valid. Here are the errors :\n${validationResults.error}`,true);