feat(api): add support case and manual assessment request contract
This commit is contained in:
1 parent
2db585fbff
commit
ad4bb94426
65 files changed
+14629
-23
No files matched your search
@@ -419,3 +419,50 @@ NeedVersionConflict:
|
||||
examples:
|
||||
version_conflict:
|
||||
$ref: ./examples.yml#/NeedStaleVersion
|
||||
SupportCaseValidationFailed:
|
||||
description: >-
|
||||
The body does not match the contract or violates a case rule: an empty
|
||||
or blank description, including one made only of Unicode spaces, an
|
||||
unknown case type, an object identifier that is not a UUID, an object
|
||||
type that the
|
||||
case type does not accept, a missing required field of the type, an
|
||||
unknown field such as status, decision, moderator, or priority, or a
|
||||
complaint reason that requires an invitation reference; code
|
||||
validation_failed with body pointers. When the decoder does not record
|
||||
the path of a nested field, the pointer is the whole body. Nothing was
|
||||
created, and the outcome is not stored under the Idempotency-Key.
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: ./schemas.yml#/Problem
|
||||
examples:
|
||||
blank_description:
|
||||
$ref: ./examples.yml#/SupportCaseBlankDescription
|
||||
unknown_type:
|
||||
$ref: ./examples.yml#/SupportCaseUnknownType
|
||||
decision_sent_by_client:
|
||||
$ref: ./examples.yml#/SupportCaseUnknownField
|
||||
malformed_object_id:
|
||||
$ref: ./examples.yml#/SupportCaseMalformedReference
|
||||
complaint_reason_needs_invitation:
|
||||
$ref: ./examples.yml#/SupportCaseComplaintNeedsInvitation
|
||||
SupportCaseCreateConflict:
|
||||
description: >-
|
||||
The referenced object does not allow this case now, code
|
||||
state_conflict: the attempt of a grade appeal has no result yet, the
|
||||
case referenced by a grade appeal is not a manual assessment resolved
|
||||
with the outcome assessed, the attempt of an anti-cheat appeal has no
|
||||
anti-cheat review decision, the attempt or the manual assessment
|
||||
already has an appeal of the same type, or an open case of the same
|
||||
type already exists for the category or the object. Or a request
|
||||
with the same Idempotency-Key is still running, code
|
||||
idempotency_in_progress. Nothing was created in either case.
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: ./schemas.yml#/Problem
|
||||
examples:
|
||||
state_conflict:
|
||||
$ref: ./examples.yml#/SupportCaseAppealExists
|
||||
idempotency_in_progress:
|
||||
$ref: ./examples.yml#/IdempotencyInProgress
|
||||
Reference in new issue
Block a user