CCALI / a2jviewer

This is the repo for the A2J Viewer
https://www.a2jauthor.org
Other
5 stars 8 forks source link

guide can generate answersets that generate strange errors in DAT #258

Open tobiasnteireho opened 10 months ago

tobiasnteireho commented 10 months ago

It has been observed that in some conditions the viewer can generate answersets that will cause strange errors in the DAT such as

{
    "ok": false,
    "error": "patcher is not a function"
}

and

{
  "ok": false,
  "error": "child \"patches\" fails because [\"patches\" at position 22 fails because [child \"content\" fails because [\"content\" must be a string], child \"type\" fails because [\"type\" must be one of [multiline-text]], child \"type\" fails because [\"type\" must be one of [table-text]], child \"type\" fails because [\"type\" must be one of [checkmark]]]]"
}

This is the viewer counterpart to this issue https://github.com/CCALI/a2jdat/issues/139. Viewer should not be able to generate bad DAT answersets and DAT should not crash on seemingly bad answersets.