feat(api): add employer need contract with requirement versions and recommendations
This commit is contained in:
1 parent
3adb0ef9e4
commit
a7d5781f2d
95 files changed
+25352
-26
No files matched your search
@@ -374,3 +374,48 @@ AssessmentVersionConflict:
|
||||
examples:
|
||||
version_conflict:
|
||||
$ref: ./examples.yml#/AssessmentStaleVersion
|
||||
NeedValidationFailed:
|
||||
description: >-
|
||||
The body does not match the contract or violates a need rule: an unknown
|
||||
field such as rec_score, members, or candidate_minimum, a field sent as a
|
||||
bare value instead of `{value, status}`, a list sent as null, an unknown
|
||||
specialization, grade, work format, currency, period, or tax basis, a
|
||||
salary bound that is not a positive multiple of 1000, a lower bound that
|
||||
is not below the upper one, a range width outside 10-40% of its midpoint,
|
||||
a repeated skill or task, status `extracted` with a value that is not the
|
||||
stored suggestion, a vacancy that is not a vacancy of the organization,
|
||||
or a missing or invalid expected_version; 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, and the
|
||||
outcome is not stored under an Idempotency-Key.
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: ./schemas.yml#/Problem
|
||||
examples:
|
||||
reversed_salary_range:
|
||||
$ref: ./examples.yml#/NeedSalaryRangeReversed
|
||||
equal_salary_bounds:
|
||||
$ref: ./examples.yml#/NeedSalaryEqualBounds
|
||||
salary_range_too_wide:
|
||||
$ref: ./examples.yml#/NeedSalaryRangeTooWide
|
||||
salary_without_tax_basis:
|
||||
$ref: ./examples.yml#/NeedSalaryWithoutTaxBasis
|
||||
extracted_value_mismatch:
|
||||
$ref: ./examples.yml#/NeedExtractedValueMismatch
|
||||
recommendation_score_sent_by_client:
|
||||
$ref: ./examples.yml#/NeedUnknownField
|
||||
missing_expected_version:
|
||||
$ref: ./examples.yml#/NeedMissingExpectedVersion
|
||||
NeedVersionConflict:
|
||||
description: >-
|
||||
`expected_version` is not the current need version; code
|
||||
version_conflict. Nothing was changed; read the need again before
|
||||
retrying.
|
||||
content:
|
||||
application/problem+json:
|
||||
schema:
|
||||
$ref: ./schemas.yml#/Problem
|
||||
examples:
|
||||
version_conflict:
|
||||
$ref: ./examples.yml#/NeedStaleVersion
|
||||
Reference in new issue
Block a user