Open jplomas opened 1 month ago
probably best to include this at schema level, as in:
{
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"required": ["results"],
"additionalProperties": false,
"properties": {
"results": {
"type": "object",
"properties": {
"result": {
"type": "string",
"enum": ["1", "2", "3", "4"]
}
}
}
}
}
We need error checking (and tests) for text elements which do not match correct format, e.g. nodal/Nodal