You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/README.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -124,6 +124,7 @@ The grading route returns the following fields:
124
124
- a map from the PRT names to floats `scoreweights`, containing the weighting for each part. `scoreweights['total']` contains the default total mark for the question. The mark for a question part is its `score[prt] * scoreweights[prt] * scoreweights['total']`.
125
125
- a string field `specificfeedback` containing the rendered specific feedback text
126
126
- a map from the PRT names to strings `prts`, containing the rendered PRT feedback
127
+
- a map from the PRT names to objects `prtresults`, containing structured PRT grading data. Each entry includes `score`, `penalty`, `answernotes` (the full answer-note path as an array), `prtanswernotes` (the PRT-node answer notes only), `errors`, and `fverrors`.
127
128
- a string map `gradingassets`, containing a list of assets used in the grading response, see [Plots/Assets](#plotsassets)
128
129
- a string field `responsesummary` containing a summary of response. (See [Reporting](../doc/en/Authoring/../STACK_question_admin/Reporting.md).)
129
130
- an array of arrays `iframes` of arguments to create iframes to hold JS panels e.g. JSXGraph, GeoGebra
@@ -177,7 +178,7 @@ In the outcomes object, each test will key an object:
177
178
- boolean: `passed`: Did the test pass?
178
179
- string: `reason`: Reason for failure. A test empty message or the part of the output (e.g. score) which doesn't match the expected result.
179
180
- object: `inputs`: Keyed by input name. Details of the inputs and their values.
180
-
- object: `outcomes`: Keyed by PRT name. Details of the outcomes and expected outcomes for each PRT.
181
+
- object: `outcomes`: Keyed by PRT name. Details of the outcomes and expected outcomes for each PRT. Each PRT outcome includes the legacy delimiter-separated `answernote` string, plus structured `answernotes` and `prtanswernotes` arrays.
0 commit comments