Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions paths/evaluate/evaluate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@
- criterionId: "crit-1"
name: "Correctness"
context: "The explanation of polymorphism is conceptually correct."
maxPoints: 10

Check warning on line 105 in paths/evaluate/evaluate.yml

View workflow job for this annotation

GitHub Actions / Lint / Lint

no-invalid-media-type-examples

Example value must conform to the schema: `0` property must NOT have unevaluated properties `maxPoints`.
- criterionId: "crit-2"
name: "Clarity"
context: "The explanation is clear, well-structured, and easy to understand."
maxPoints: 5

Check warning on line 109 in paths/evaluate/evaluate.yml

View workflow job for this annotation

GitHub Actions / Lint / Lint

no-invalid-media-type-examples

Example value must conform to the schema: `1` property must NOT have unevaluated properties `maxPoints`.
preSubmissionFeedback:
enabled: false
configuration:
Expand Down Expand Up @@ -372,6 +372,8 @@
$ref: "./responses/400-BadRequest.yml"
"403":
$ref: "./responses/403-Forbidden.yml"
"422":
$ref: "./responses/422-UnprocessableSubmission.yml"
"500":
$ref: "./responses/500-InternalError.yml"
"406":
Expand Down
23 changes: 23 additions & 0 deletions paths/evaluate/responses/422-UnprocessableSubmission.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
description: The request is valid, but the evaluation function cannot process the submission content (e.g. an unparseable expression).
headers:
X-Request-Id:
description: Request id for tracing this request across services.
schema:
type: string
X-Api-Version:
description: The API version that was used to serve this response.
schema:
type: string
content:
application/json:
schema:
$ref: "../../shared/schemas/ErrorResponse.yml"
examples:
unprocessableSubmission:
summary: Example unprocessable submission error
value:
title: "Unprocessable submission"
message: "Failed to parse SymPy expression: A/(w*"
code: "VALIDATION_ERROR"
trace: null
details: null
Loading