Cloze question
Schema
-
A cloze question:
-
must satisfy the base-question schema
-
must have a text property
-
may have a holes property
-
may have a solutions property
-
-
The text property:
- must be a string
-
The holes property:
-
must be an array
-
must contain at least one hole
-
Each hole:
-
must be an object
-
must be unique
-
must have an id property
-
may have a size property
-
may have a placeholder property
-
may have a choices property
-
The id property:
- must be a string
-
The size property:
-
must be an integer
-
must be greater than zero
-
-
The placeholder property:
- must be a string
-
The choices property:
-
must be an array
-
must contain at least one choice
-
Each choice:
- must be a string
-
-
-
-
The solutions property:
-
must be an array
-
must contain at least one solution
-
must have a holeId property
-
must have an answers property
-
Each solution:
-
must be an object
-
must be unique
-
-
The holeId property:
- must be a string
-
The answers property:
-
must be an array
-
must contain at least one item
-
Each answer:
- must satisfy the keyword schema
-
-