Skip to content

Commit 72ac57a

Browse files
authored
Merge pull request #221 from jleckie/task-develop/SA-22780
Document rubrics array on Assessment API, deprecate rubric [SA-22780]
2 parents 4b0750e + 31728f7 commit 72ac57a

4 files changed

Lines changed: 59 additions & 2 deletions

File tree

openapi/components/schemas/assessment-item.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,15 @@ properties:
9494
The due date of the assessment as a RFC3339 string. This can be null for assessments in a course.
9595
example: 2022-01-30T21:00:00.000Z
9696
rubric:
97-
$ref: ./assessment-rubric.yaml
97+
allOf:
98+
- $ref: ./assessment-rubric.yaml
99+
- deprecated: true
100+
description: |
101+
A single Assessment Rubric item.
102+
(Deprecated: use `rubrics`. This carries only the first rubric and will be removed
103+
after a 6-month migration window.)
104+
rubrics:
105+
$ref: ./assessment-rubrics.yaml
98106
project:
99107
type: object
100108
nullable: true

openapi/components/schemas/assessment-participation-item.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,15 @@ properties:
6363
example: 36
6464
description: The mark in numeric form.
6565
rubric:
66-
$ref: ./assessment-rubric-feedback.yaml
66+
allOf:
67+
- $ref: ./assessment-rubric-feedback.yaml
68+
- deprecated: true
69+
description: |
70+
A single marked Assessment Rubric item.
71+
(Deprecated: use `rubrics`. This carries only the first rubric and will be removed
72+
after a 6-month migration window.)
73+
rubrics:
74+
$ref: ./assessment-rubrics-feedback.yaml
6775
instructor:
6876
allOf:
6977
- $ref: ./assessment-user.yaml
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
title: A set of marked Assessment Rubrics
2+
description: The marked rubrics for a feedback item. Empty when the feedback has no rubric marks.
3+
readOnly: true
4+
type: array
5+
items:
6+
type: object
7+
properties:
8+
id:
9+
type: integer
10+
example: 1
11+
description: The rubric instance ID.
12+
title:
13+
type: string
14+
nullable: true
15+
example: Written
16+
description: The title of this rubric.
17+
capabilities:
18+
$ref: ./assessment-rubric-feedback.yaml#/properties/capabilities
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
title: A set of Assessment Rubrics
2+
description: The rubrics attached to an assessment. Empty when the assessment has no rubrics.
3+
readOnly: true
4+
type: array
5+
items:
6+
type: object
7+
properties:
8+
id:
9+
type: integer
10+
example: 1
11+
description: The rubric instance ID.
12+
title:
13+
type: string
14+
nullable: true
15+
example: Written
16+
description: The title of this rubric.
17+
weight:
18+
type: number
19+
nullable: true
20+
example: 60
21+
description: How much this rubric contributes to the assessment's overall mark.
22+
capabilities:
23+
$ref: ./assessment-rubric.yaml#/properties/capabilities

0 commit comments

Comments
 (0)