Skip to content

INFO

Hakutest Result JSON schema is available at https://hakutest.org/standards/result.schema.json


Result

Title: Result

Typeobject
RequiredNo
Additional properties[Any type: allowed]

Description: Hakutest Result JSON file schema.

PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ studentNostringNo-The student who submitted the solution.
+ submitted_atNostringNo-Solution submission time
+ answersNoarray of objectNo-Answer given by the student for each task present in test.
+ pointsNointegerNo-Number of correct answers given by the student.
+ totalNointegerNo-Total number of tasks present in the test. Same as the total scorable points.
+ percentageNointegerNo-Percentage scored by student. Defined as (100 * points / total).

1. Property Result > student

Typestring
RequiredYes

Description: The student who submitted the solution.

2. Property Result > submitted_at

Typestring
RequiredYes
Formatdate-time

Description: Solution submission time

3. Property Result > answers

Typearray of object
RequiredYes

Description: Answer given by the student for each task present in test.

Array restrictions
Min itemsN/A
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
answers items-

3.1. Result > answers > answers items

Typeobject
RequiredNo
Additional properties[Any type: allowed]
PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ typeNoenum (of string)No-Type of the task.
+ valueNostringNo-The actual answer given by the student. For "single" - index of the chosen option (zero-indexed). For "multiple" - comma-separated indices of chosen options (zero-indexed, lexically ascending order). For "open" and "detailed" - answer string.
+ correctNobooleanNo-Whether the answer is correct.

3.1.1. Property Result > answers > answers items > type

Typeenum (of string)
RequiredYes

Description: Type of the task.

Must be one of:

  • "single"
  • "multiple"
  • "open"
  • "detailed"

3.1.2. Property Result > answers > answers items > value

Typestring
RequiredYes

Description: The actual answer given by the student. For "single" - index of the chosen option (zero-indexed). For "multiple" - comma-separated indices of chosen options (zero-indexed, lexically ascending order). For "open" and "detailed" - answer string.

3.1.3. Property Result > answers > answers items > correct

Typeboolean
RequiredYes

Description: Whether the answer is correct.

4. Property Result > points

Typeinteger
RequiredYes

Description: Number of correct answers given by the student.

5. Property Result > total

Typeinteger
RequiredYes

Description: Total number of tasks present in the test. Same as the total scorable points.

6. Property Result > percentage

Typeinteger
RequiredYes

Description: Percentage scored by student. Defined as (100 * points / total).


Generated using json-schema-for-humans on 2024-07-27 at 13:57:08 +0300

Hakutest is released under the MIT License.