Skip to content

INFO

Hakutest Test JSON schema is available at https://hakutest.org/standards/test.schema.json


Test

Title: Test

Typeobject
RequiredNo
Additional properties[Any type: allowed]

Description: Hakutest Test JSON file schema.

PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ titleNostringNo-Title of the test.
- descriptionNostringNo-Description of the test.
- subjectNostringNo-Subject or topic of the test.
- authorNostringNo-Author (creator) of the test.
- targetNostringNo-Target audience of the test.
- institutionNostringNo-Educational institution where the test is conducted.
- createdAtNostringNo-Test creation time.
- expiresAtNostringNo-Test expiration time.
+ tasksNoarray of objectNo-Tasks of the test.

1. Property Test > title

Typestring
RequiredYes

Description: Title of the test.

2. Property Test > description

Typestring
RequiredNo

Description: Description of the test.

3. Property Test > subject

Typestring
RequiredNo

Description: Subject or topic of the test.

4. Property Test > author

Typestring
RequiredNo

Description: Author (creator) of the test.

5. Property Test > target

Typestring
RequiredNo

Description: Target audience of the test.

6. Property Test > institution

Typestring
RequiredNo

Description: Educational institution where the test is conducted.

7. Property Test > createdAt

Typestring
RequiredNo
Formatdate-time

Description: Test creation time.

8. Property Test > expiresAt

Typestring
RequiredNo
Formatdate-time

Description: Test expiration time.

9. Property Test > tasks

Typearray of object
RequiredYes

Description: Tasks of the test.

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

9.1. Test > tasks > tasks items

Typeobject
RequiredNo
Additional properties[Any type: allowed]
PropertyPatternTypeDeprecatedDefinitionTitle/Description
+ typeNoenum (of string)No-Type of the task.
+ textNostringNo-Text of the task. Can be multi-line. Markdown is supported.
- optionsNoarray of string or nullNo-Answer options of the task. null for "open" and "detailed" task.
+ answerNostringNo-Correct answer of the task. For "single" - index of correct option (zero-indexed). For "multiple" - comma-separated indices of correct answer options (zero-indexed, lexically ascending order). For "open" - correct answer string. For "detailed" - empty string.

9.1.1. Property Test > tasks > tasks items > type

Typeenum (of string)
RequiredYes

Description: Type of the task.

Must be one of:

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

9.1.2. Property Test > tasks > tasks items > text

Typestring
RequiredYes

Description: Text of the task. Can be multi-line. Markdown is supported.

9.1.3. Property Test > tasks > tasks items > options

Typearray of string or null
RequiredNo

Description: Answer options of the task. null for "open" and "detailed" task.

Array restrictions
Min itemsN/A
Max itemsN/A
Items unicityFalse
Additional itemsFalse
Tuple validationSee below
Each item of this array must beDescription
options items-
9.1.3.1. Test > tasks > tasks items > options > options items
Typestring
RequiredNo

9.1.4. Property Test > tasks > tasks items > answer

Typestring
RequiredYes

Description: Correct answer of the task. For "single" - index of correct option (zero-indexed). For "multiple" - comma-separated indices of correct answer options (zero-indexed, lexically ascending order). For "open" - correct answer string. For "detailed" - empty string.


Generated using json-schema-for-humans on 2024-07-27 at 03:02:54 +0300

Hakutest is released under the MIT License.