feat(profile): add the manual candidate profile contract and storage
This commit is contained in:
1 parent
d21fd49a42
commit
e52ffe7bcb
97 files changed
+20442
-63
No files matched your search
@@ -590,3 +590,37 @@ OrganizationVersionConflict:
|
||||
examples:
|
||||
version_conflict:
|
||||
$ref: ./examples.yml#/OrganizationStaleVersion
|
||||
ProfileValidationFailed:
|
||||
description: >-
|
||||
The body does not match the contract or violates a profile rule: an
|
||||
unknown field such as confirmed_grade, category, trust_level, or source,
|
||||
a phone number outside E.164, a Telegram username without the leading @,
|
||||
an email that is not an address, a month outside the YYYY-MM format, a
|
||||
salary that is not a positive multiple of 1000, more items than a list
|
||||
allows, a repeated tag, skill, or role specialization, a period that
|
||||
ends before it starts or lies in the future, a decision extracted for a
|
||||
value that is not a stored suggestion, or a missing or invalid
|
||||
expected_version; code validation_failed with body pointers. A missing nested field has its own pointer with the code required; an unknown field points at the object that contains it, a failure inside an array element points at the array, and only a malformed document, an unknown top-level field, or an unknown top-level variant points at the whole body. Nothing was changed. The problem never repeats a submitted value, because the body is personal data.
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: ./schemas.yml#/Problem
|
||||
examples:
|
||||
phone_not_e164:
|
||||
$ref: ./examples.yml#/ProfilePhoneNotE164
|
||||
extracted_value_changed:
|
||||
$ref: ./examples.yml#/ProfileExtractedValueChanged
|
||||
repeated_role:
|
||||
$ref: ./examples.yml#/ProfileRepeatedRole
|
||||
ProfileVersionConflict:
|
||||
description: >-
|
||||
`expected_version` is not the current profile version; code
|
||||
version_conflict. Nothing was changed; read the profile again before
|
||||
retrying.
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: ./schemas.yml#/Problem
|
||||
examples:
|
||||
version_conflict:
|
||||
$ref: ./examples.yml#/ProfileStaleVersion
|
||||
Reference in new issue
Block a user