Paper
Schema
-
A paper:
-
must be an object
-
must have an id property
-
must have a startDate property
-
must have a structure property
-
may have a user property
-
may have a score property
-
may have an endDate property
-
may have a finished property
-
may have an answers property
-
-
The id property:
- must be a string
-
The user property:
-
must be an object
-
must have a name property
-
The name property:
- must be a string
-
-
The startDate property:
- must be a string
-
The endDate property:
- must be a string
-
The finished property:
- must be a boolean
-
The score property:
- must be a number
-
The structure property:
-
must be an array
-
must contain at least one step
-
Each item:
-
must be an object
-
must be unique
-
must have an id property
-
must have an items property
-
The id property:
- must be a string
-
The items property:
-
must be an array
-
Each item:
-
must be unique
-
must be a string
-
-
-
-
-
The answers property:
-
must be an array
-
Each item:
-
must be unique
-
must contain at least one answer
-
must satisfy the answer schema
-
-