Skip to content

Exercise Configuration

Haeri edited this page Sep 14, 2019 · 7 revisions

Inside the the Exercise, we expect a config.json file that provides important information about the exercise.

Here are the possible json values;

Values

Name Type Default Required Breaking Description
type String true true What type of exercise should this be
language String only for type "code" & "codeSnippet" true If type is "code" oder "codeSnippet", we need to cpecify what coding language it is
isGraded bool True false false Should exercise get graded or is it a bonus exericise
maxScore int 1 false false What are the maximum amount of points that can be get in this exercise
maxSubmits int 1 false false Maximum amount of submits possible
options String[] only for type "multipleChoice" & "singleChoice" true A list of options
solutions String[] / regex if 'text' only for type "multipleChoice" & "singleChoice" & "Text" true A list of solutions
hints String[] false false A list of hints that will get displayd for if max score is not reached
executionLimits.memory int 64 MebiBytes false true Max ram usage in MebiBytes
executionLimits.cpuCores int 1 false true Max core usage
executionLimits.timeout int 5000 false true Max execution time in milliseconds
executionLimits.networking bool false false true Is networking enabled inside the container
executionLimits.testing bool false false true If testing is enabled, memory and cpu restrictions are lifted. Can be used for testing and debugging.