feat(api): add specialization catalog and candidate questionnaire contract
This commit is contained in:
1 parent
c338c0c188
commit
faeeb5f157
64 files changed
+8339
-47
No files matched your search
@@ -213,3 +213,51 @@ CsrfCheckFailed:
|
||||
examples:
|
||||
csrf_check_failed:
|
||||
$ref: ./examples.yml#/CsrfCheckFailed
|
||||
CsrfCheckFailedOrForbidden:
|
||||
description: >-
|
||||
The request failed cross-site request protection, code
|
||||
csrf_check_failed: the X-CSRF-Token header is missing or does not belong
|
||||
to the session, or the Origin is not allowed. Or the account may not
|
||||
perform the operation, code forbidden. Nothing was changed in either
|
||||
case.
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: ./schemas.yml#/Problem
|
||||
examples:
|
||||
csrf_check_failed:
|
||||
$ref: ./examples.yml#/CsrfCheckFailed
|
||||
forbidden:
|
||||
$ref: ./examples.yml#/Forbidden
|
||||
QuestionnaireValidationFailed:
|
||||
description: >-
|
||||
The body does not match the contract or violates a questionnaire rule:
|
||||
more than two specializations, an unknown specialization, grade, or task
|
||||
language, an unknown field such as confirmed_grade, a repeated
|
||||
specialization, or a task language that the specialization's published
|
||||
bank does not offer; 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 changed.
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: ./schemas.yml#/Problem
|
||||
examples:
|
||||
too_many_specializations:
|
||||
$ref: ./examples.yml#/QuestionnaireTooManySpecializations
|
||||
unknown_grade:
|
||||
$ref: ./examples.yml#/QuestionnaireUnknownGrade
|
||||
repeated_specialization:
|
||||
$ref: ./examples.yml#/QuestionnaireRepeatedSpecialization
|
||||
QuestionnaireVersionConflict:
|
||||
description: >-
|
||||
`expected_version` is not the current questionnaire version; code
|
||||
version_conflict. Nothing was changed; read the questionnaire again
|
||||
before retrying.
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: ./schemas.yml#/Problem
|
||||
examples:
|
||||
version_conflict:
|
||||
$ref: ./examples.yml#/VersionConflict
|
||||
Reference in new issue
Block a user