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
@@ -1341,3 +1341,677 @@ AssessmentStaleVersion:
|
||||
code: version_conflict
|
||||
detail: The resource changed after it was read. Read it again before retrying.
|
||||
trace_id: 5f6a7b8c-9d0e-4f1a-8b2c-3d4e5f6a7b8c
|
||||
NeedCreateManual:
|
||||
summary: A manual need without a vacancy and without a text
|
||||
description: Every field comes from the form as a decision with status confirmed, so every value is a confirmed manual value. There is no vacancy_id and no source_text; the domain is not given and stays unknown.
|
||||
value:
|
||||
title: Junior Go-разработчик для сервиса уведомлений
|
||||
specialization:
|
||||
value: backend
|
||||
status: confirmed
|
||||
grade:
|
||||
value: junior
|
||||
status: confirmed
|
||||
required_skills:
|
||||
- name: Go
|
||||
status: confirmed
|
||||
- name: PostgreSQL
|
||||
status: confirmed
|
||||
desired_skills:
|
||||
- name: Docker
|
||||
status: confirmed
|
||||
tasks:
|
||||
- text: Поддерживать и развивать сервис уведомлений
|
||||
status: confirmed
|
||||
work_formats:
|
||||
value:
|
||||
- hybrid
|
||||
status: confirmed
|
||||
location:
|
||||
value: Москва
|
||||
status: confirmed
|
||||
salary:
|
||||
value:
|
||||
salary_from: 120000
|
||||
salary_to: 160000
|
||||
currency: RUB
|
||||
period: month
|
||||
tax_basis: net
|
||||
status: confirmed
|
||||
NeedCreateFromText:
|
||||
summary: A need created from a pasted description
|
||||
description: Only the title and the text are given. The server extracts suggestions from the text; nothing is confirmed until a member confirms it.
|
||||
value:
|
||||
title: Backend в команду платежей
|
||||
source_text: "Ищем бэкенд-разработчика в команду платежей. Обязательно: Go, PostgreSQL и Temporal. Желательно опыт с Kafka. Задачи: развивать сервис выплат и переводить его на событийную модель. Работа удаленно."
|
||||
NeedManualWithoutVacancy:
|
||||
summary: A complete manual need without a vacancy, with computed recommendations
|
||||
description: The need created by NeedCreateManual. Every value is confirmed and manual, so the quote, extracted_in_version, and extraction_version are null; the domain was not given and stays unknown with null value and source rather than a guessed one. The hybrid format makes the location critical, and it is confirmed. The range of 120000-160000 has a width of about 29%. The first category scores 0.75 with Overlap 1, a money share rounded down to 0.5, and Supply 0.5 for 15 available candidates. The other two have fewer than five candidates, so their score is null and Supply enters their ranking as 0. The recommendation values are illustrative and say nothing about a deployed policy or real candidates.
|
||||
value:
|
||||
id: 01928f7a-2b3c-7d4e-9f5a-6b7c8d9e0f12
|
||||
organization_id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
||||
vacancy_id: null
|
||||
title: Junior Go-разработчик для сервиса уведомлений
|
||||
source_text: null
|
||||
version: 1
|
||||
requirements_version: 1
|
||||
requirements:
|
||||
specialization:
|
||||
status: confirmed
|
||||
value: backend
|
||||
source:
|
||||
origin: manual
|
||||
quote: null
|
||||
extracted_in_version: null
|
||||
extraction_version: null
|
||||
grade:
|
||||
status: confirmed
|
||||
value: junior
|
||||
source:
|
||||
origin: manual
|
||||
quote: null
|
||||
extracted_in_version: null
|
||||
extraction_version: null
|
||||
required_skills:
|
||||
- name: Go
|
||||
taxonomy_code: go
|
||||
status: confirmed
|
||||
source:
|
||||
origin: manual
|
||||
quote: null
|
||||
extracted_in_version: null
|
||||
extraction_version: null
|
||||
- name: PostgreSQL
|
||||
taxonomy_code: postgresql
|
||||
status: confirmed
|
||||
source:
|
||||
origin: manual
|
||||
quote: null
|
||||
extracted_in_version: null
|
||||
extraction_version: null
|
||||
desired_skills:
|
||||
- name: Docker
|
||||
taxonomy_code: docker
|
||||
status: confirmed
|
||||
source:
|
||||
origin: manual
|
||||
quote: null
|
||||
extracted_in_version: null
|
||||
extraction_version: null
|
||||
tasks:
|
||||
- text: Поддерживать и развивать сервис уведомлений
|
||||
status: confirmed
|
||||
source:
|
||||
origin: manual
|
||||
quote: null
|
||||
extracted_in_version: null
|
||||
extraction_version: null
|
||||
domain:
|
||||
status: unknown
|
||||
value: null
|
||||
source: null
|
||||
work_formats:
|
||||
status: confirmed
|
||||
value:
|
||||
- hybrid
|
||||
source:
|
||||
origin: manual
|
||||
quote: null
|
||||
extracted_in_version: null
|
||||
extraction_version: null
|
||||
location:
|
||||
status: confirmed
|
||||
value: Москва
|
||||
source:
|
||||
origin: manual
|
||||
quote: null
|
||||
extracted_in_version: null
|
||||
extraction_version: null
|
||||
salary:
|
||||
status: confirmed
|
||||
value:
|
||||
salary_from: 120000
|
||||
salary_to: 160000
|
||||
currency: RUB
|
||||
period: month
|
||||
tax_basis: net
|
||||
source:
|
||||
origin: manual
|
||||
quote: null
|
||||
extracted_in_version: null
|
||||
extraction_version: null
|
||||
readiness:
|
||||
status: complete
|
||||
missing_fields: []
|
||||
recommendations:
|
||||
status: computed
|
||||
requirements_version: 1
|
||||
policy_version: 1
|
||||
algorithm_version: need-rec.2026-10.1
|
||||
computed_at: "2026-10-06T08:15:02Z"
|
||||
categories:
|
||||
- specialization: backend
|
||||
grade: junior
|
||||
score: 0.75
|
||||
skill_overlap:
|
||||
share: 1
|
||||
covered_skills:
|
||||
- Go
|
||||
- PostgreSQL
|
||||
- Docker
|
||||
uncovered_skills: []
|
||||
money:
|
||||
status: computed
|
||||
share: 0.5
|
||||
supply: from_5_to_29
|
||||
- specialization: backend
|
||||
grade: intern
|
||||
score: null
|
||||
skill_overlap:
|
||||
share: 0.8
|
||||
covered_skills:
|
||||
- Go
|
||||
- PostgreSQL
|
||||
uncovered_skills:
|
||||
- Docker
|
||||
money:
|
||||
status: insufficient_data
|
||||
share: null
|
||||
supply: fewer_than_5
|
||||
- specialization: devops_sre
|
||||
grade: junior
|
||||
score: null
|
||||
skill_overlap:
|
||||
share: 0.2
|
||||
covered_skills:
|
||||
- Docker
|
||||
uncovered_skills:
|
||||
- Go
|
||||
- PostgreSQL
|
||||
money:
|
||||
status: insufficient_data
|
||||
share: null
|
||||
supply: fewer_than_5
|
||||
created_at: "2026-10-06T08:15:00Z"
|
||||
updated_at: "2026-10-06T08:15:00Z"
|
||||
NeedExtractedWithUnknownSkill:
|
||||
summary: A need from text with suggestions, an unknown skill, and missing fields
|
||||
description: "The need created by NeedCreateFromText. Every value found in the text is extracted with its quote from the text of version 1 and the extractor version, and waits for confirmation. Temporal is not in the skill taxonomy, so its taxonomy_code is null instead of a guessed code. The text names no grade, place, or salary: they stay unknown with null value and source, and the critical ones are listed in missing_fields with a question. Without a confirmed skill there are no recommendations yet."
|
||||
value:
|
||||
id: 01928f7a-3c4d-7e5f-8a6b-7c8d9e0f1a23
|
||||
organization_id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
||||
vacancy_id: null
|
||||
title: Backend в команду платежей
|
||||
source_text: "Ищем бэкенд-разработчика в команду платежей. Обязательно: Go, PostgreSQL и Temporal. Желательно опыт с Kafka. Задачи: развивать сервис выплат и переводить его на событийную модель. Работа удаленно."
|
||||
version: 1
|
||||
requirements_version: 1
|
||||
requirements:
|
||||
specialization:
|
||||
status: extracted
|
||||
value: backend
|
||||
source:
|
||||
origin: extracted_from_text
|
||||
quote: Ищем бэкенд-разработчика
|
||||
extracted_in_version: 1
|
||||
extraction_version: need-rules.2026-10.1
|
||||
grade:
|
||||
status: unknown
|
||||
value: null
|
||||
source: null
|
||||
required_skills:
|
||||
- name: Go
|
||||
taxonomy_code: go
|
||||
status: extracted
|
||||
source:
|
||||
origin: extracted_from_text
|
||||
quote: "Обязательно: Go, PostgreSQL и Temporal"
|
||||
extracted_in_version: 1
|
||||
extraction_version: need-rules.2026-10.1
|
||||
- name: PostgreSQL
|
||||
taxonomy_code: postgresql
|
||||
status: extracted
|
||||
source:
|
||||
origin: extracted_from_text
|
||||
quote: "Обязательно: Go, PostgreSQL и Temporal"
|
||||
extracted_in_version: 1
|
||||
extraction_version: need-rules.2026-10.1
|
||||
- name: Temporal
|
||||
taxonomy_code: null
|
||||
status: extracted
|
||||
source:
|
||||
origin: extracted_from_text
|
||||
quote: "Обязательно: Go, PostgreSQL и Temporal"
|
||||
extracted_in_version: 1
|
||||
extraction_version: need-rules.2026-10.1
|
||||
desired_skills:
|
||||
- name: Kafka
|
||||
taxonomy_code: kafka
|
||||
status: extracted
|
||||
source:
|
||||
origin: extracted_from_text
|
||||
quote: Желательно опыт с Kafka
|
||||
extracted_in_version: 1
|
||||
extraction_version: need-rules.2026-10.1
|
||||
tasks:
|
||||
- text: Развивать сервис выплат и переводить его на событийную модель
|
||||
status: extracted
|
||||
source:
|
||||
origin: extracted_from_text
|
||||
quote: "Задачи: развивать сервис выплат и переводить его на событийную модель"
|
||||
extracted_in_version: 1
|
||||
extraction_version: need-rules.2026-10.1
|
||||
domain:
|
||||
status: extracted
|
||||
value: платежи
|
||||
source:
|
||||
origin: extracted_from_text
|
||||
quote: в команду платежей
|
||||
extracted_in_version: 1
|
||||
extraction_version: need-rules.2026-10.1
|
||||
work_formats:
|
||||
status: extracted
|
||||
value:
|
||||
- remote
|
||||
source:
|
||||
origin: extracted_from_text
|
||||
quote: Работа удаленно
|
||||
extracted_in_version: 1
|
||||
extraction_version: need-rules.2026-10.1
|
||||
location:
|
||||
status: unknown
|
||||
value: null
|
||||
source: null
|
||||
salary:
|
||||
status: unknown
|
||||
value: null
|
||||
source: null
|
||||
readiness:
|
||||
status: incomplete
|
||||
missing_fields:
|
||||
- field: specialization
|
||||
reason: unconfirmed
|
||||
question: Подтвердите специализацию, найденную в описании.
|
||||
- field: grade
|
||||
reason: unknown
|
||||
question: "Какой грейд нужен: Intern, Junior, Middle или Senior?"
|
||||
- field: required_skills
|
||||
reason: unconfirmed
|
||||
question: Подтвердите обязательные навыки, найденные в описании.
|
||||
- field: work_formats
|
||||
reason: unconfirmed
|
||||
question: Подтвердите формат работы, найденный в описании.
|
||||
- field: salary
|
||||
reason: unknown
|
||||
question: "Какую вилку в рублях вы предлагаете и в какой базе: на руки или до вычета НДФЛ?"
|
||||
recommendations:
|
||||
status: not_available
|
||||
requirements_version: 1
|
||||
policy_version: null
|
||||
algorithm_version: null
|
||||
computed_at: null
|
||||
categories: []
|
||||
created_at: "2026-10-06T09:00:00Z"
|
||||
updated_at: "2026-10-06T09:00:00Z"
|
||||
NeedUpdateConfirmSuggestions:
|
||||
summary: Confirm suggestions, answer the missing fields, and keep two suggestions open
|
||||
description: Sent over version 1 of NeedExtractedWithUnknownSkill. The specialization, the required skills, and the work format are sent with their stored values and status confirmed, so they are confirmed and keep their quotes. The grade and the salary are new manual values. Kafka and the domain are sent with status extracted and their stored values, so they stay open suggestions. The tasks are absent and stay unchanged.
|
||||
value:
|
||||
expected_version: 1
|
||||
specialization:
|
||||
value: backend
|
||||
status: confirmed
|
||||
grade:
|
||||
value: middle
|
||||
status: confirmed
|
||||
required_skills:
|
||||
- name: Go
|
||||
status: confirmed
|
||||
- name: PostgreSQL
|
||||
status: confirmed
|
||||
- name: Temporal
|
||||
status: confirmed
|
||||
desired_skills:
|
||||
- name: Kafka
|
||||
status: extracted
|
||||
domain:
|
||||
value: платежи
|
||||
status: extracted
|
||||
work_formats:
|
||||
value:
|
||||
- remote
|
||||
status: confirmed
|
||||
salary:
|
||||
value:
|
||||
salary_from: 250000
|
||||
salary_to: 320000
|
||||
currency: RUB
|
||||
period: month
|
||||
tax_basis: gross
|
||||
status: confirmed
|
||||
NeedConfirmedAfterUpdate:
|
||||
summary: The need after the confirmation, as version 2
|
||||
description: Confirmed suggestions keep the origin extracted_from_text, their quotes, and extracted_in_version 1; the grade and the salary are manual. A confirmed requirement changed, so requirements_version is 2 as well. Kafka and the domain are still open suggestions; Kafka does not count in the recommendations, and Temporal stays without a taxonomy code, so no category covers it. The place is unknown but not critical, because the only format is remote. The range of 250000-320000 has a width of about 25%. Scores use the overlap 4/6, the money share rounded down to a quarter or the neutral 0.5, and the exact Supply of groups of five or more. The recommendation values are illustrative.
|
||||
value:
|
||||
id: 01928f7a-3c4d-7e5f-8a6b-7c8d9e0f1a23
|
||||
organization_id: 01928f7a-1a2b-7c3d-8e4f-5a6b7c8d9e01
|
||||
vacancy_id: null
|
||||
title: Backend в команду платежей
|
||||
source_text: "Ищем бэкенд-разработчика в команду платежей. Обязательно: Go, PostgreSQL и Temporal. Желательно опыт с Kafka. Задачи: развивать сервис выплат и переводить его на событийную модель. Работа удаленно."
|
||||
version: 2
|
||||
requirements_version: 2
|
||||
requirements:
|
||||
specialization:
|
||||
status: confirmed
|
||||
value: backend
|
||||
source:
|
||||
origin: extracted_from_text
|
||||
quote: Ищем бэкенд-разработчика
|
||||
extracted_in_version: 1
|
||||
extraction_version: need-rules.2026-10.1
|
||||
grade:
|
||||
status: confirmed
|
||||
value: middle
|
||||
source:
|
||||
origin: manual
|
||||
quote: null
|
||||
extracted_in_version: null
|
||||
extraction_version: null
|
||||
required_skills:
|
||||
- name: Go
|
||||
taxonomy_code: go
|
||||
status: confirmed
|
||||
source:
|
||||
origin: extracted_from_text
|
||||
quote: "Обязательно: Go, PostgreSQL и Temporal"
|
||||
extracted_in_version: 1
|
||||
extraction_version: need-rules.2026-10.1
|
||||
- name: PostgreSQL
|
||||
taxonomy_code: postgresql
|
||||
status: confirmed
|
||||
source:
|
||||
origin: extracted_from_text
|
||||
quote: "Обязательно: Go, PostgreSQL и Temporal"
|
||||
extracted_in_version: 1
|
||||
extraction_version: need-rules.2026-10.1
|
||||
- name: Temporal
|
||||
taxonomy_code: null
|
||||
status: confirmed
|
||||
source:
|
||||
origin: extracted_from_text
|
||||
quote: "Обязательно: Go, PostgreSQL и Temporal"
|
||||
extracted_in_version: 1
|
||||
extraction_version: need-rules.2026-10.1
|
||||
desired_skills:
|
||||
- name: Kafka
|
||||
taxonomy_code: kafka
|
||||
status: extracted
|
||||
source:
|
||||
origin: extracted_from_text
|
||||
quote: Желательно опыт с Kafka
|
||||
extracted_in_version: 1
|
||||
extraction_version: need-rules.2026-10.1
|
||||
tasks:
|
||||
- text: Развивать сервис выплат и переводить его на событийную модель
|
||||
status: extracted
|
||||
source:
|
||||
origin: extracted_from_text
|
||||
quote: "Задачи: развивать сервис выплат и переводить его на событийную модель"
|
||||
extracted_in_version: 1
|
||||
extraction_version: need-rules.2026-10.1
|
||||
domain:
|
||||
status: extracted
|
||||
value: платежи
|
||||
source:
|
||||
origin: extracted_from_text
|
||||
quote: в команду платежей
|
||||
extracted_in_version: 1
|
||||
extraction_version: need-rules.2026-10.1
|
||||
work_formats:
|
||||
status: confirmed
|
||||
value:
|
||||
- remote
|
||||
source:
|
||||
origin: extracted_from_text
|
||||
quote: Работа удаленно
|
||||
extracted_in_version: 1
|
||||
extraction_version: need-rules.2026-10.1
|
||||
location:
|
||||
status: unknown
|
||||
value: null
|
||||
source: null
|
||||
salary:
|
||||
status: confirmed
|
||||
value:
|
||||
salary_from: 250000
|
||||
salary_to: 320000
|
||||
currency: RUB
|
||||
period: month
|
||||
tax_basis: gross
|
||||
source:
|
||||
origin: manual
|
||||
quote: null
|
||||
extracted_in_version: null
|
||||
extraction_version: null
|
||||
readiness:
|
||||
status: complete
|
||||
missing_fields: []
|
||||
recommendations:
|
||||
status: computed
|
||||
requirements_version: 2
|
||||
policy_version: 1
|
||||
algorithm_version: need-rec.2026-10.1
|
||||
computed_at: "2026-10-06T09:20:01Z"
|
||||
categories:
|
||||
- specialization: backend
|
||||
grade: middle
|
||||
score: 0.61
|
||||
skill_overlap:
|
||||
share: 0.67
|
||||
covered_skills:
|
||||
- Go
|
||||
- PostgreSQL
|
||||
uncovered_skills:
|
||||
- Temporal
|
||||
money:
|
||||
status: computed
|
||||
share: 0.25
|
||||
supply: 30_or_more
|
||||
- specialization: devops_sre
|
||||
grade: middle
|
||||
score: 0.45
|
||||
skill_overlap:
|
||||
share: 0.33
|
||||
covered_skills:
|
||||
- PostgreSQL
|
||||
uncovered_skills:
|
||||
- Go
|
||||
- Temporal
|
||||
money:
|
||||
status: insufficient_data
|
||||
share: null
|
||||
supply: from_5_to_29
|
||||
- specialization: backend
|
||||
grade: senior
|
||||
score: 0.41
|
||||
skill_overlap:
|
||||
share: 0.67
|
||||
covered_skills:
|
||||
- Go
|
||||
- PostgreSQL
|
||||
uncovered_skills:
|
||||
- Temporal
|
||||
money:
|
||||
status: computed
|
||||
share: 0
|
||||
supply: from_5_to_29
|
||||
created_at: "2026-10-06T09:00:00Z"
|
||||
updated_at: "2026-10-06T09:20:00Z"
|
||||
NeedListPage:
|
||||
summary: The last page of the needs of an organization
|
||||
value:
|
||||
items:
|
||||
- id: 01928f7a-3c4d-7e5f-8a6b-7c8d9e0f1a23
|
||||
vacancy_id: null
|
||||
title: Backend в команду платежей
|
||||
version: 2
|
||||
specialization:
|
||||
status: confirmed
|
||||
value: backend
|
||||
source:
|
||||
origin: extracted_from_text
|
||||
quote: Ищем бэкенд-разработчика
|
||||
extracted_in_version: 1
|
||||
extraction_version: need-rules.2026-10.1
|
||||
grade:
|
||||
status: confirmed
|
||||
value: middle
|
||||
source:
|
||||
origin: manual
|
||||
quote: null
|
||||
extracted_in_version: null
|
||||
extraction_version: null
|
||||
readiness:
|
||||
status: complete
|
||||
missing_fields: []
|
||||
created_at: "2026-10-06T09:00:00Z"
|
||||
updated_at: "2026-10-06T09:20:00Z"
|
||||
- id: 01928f7a-2b3c-7d4e-9f5a-6b7c8d9e0f12
|
||||
vacancy_id: null
|
||||
title: Junior Go-разработчик для сервиса уведомлений
|
||||
version: 1
|
||||
specialization:
|
||||
status: confirmed
|
||||
value: backend
|
||||
source:
|
||||
origin: manual
|
||||
quote: null
|
||||
extracted_in_version: null
|
||||
extraction_version: null
|
||||
grade:
|
||||
status: confirmed
|
||||
value: junior
|
||||
source:
|
||||
origin: manual
|
||||
quote: null
|
||||
extracted_in_version: null
|
||||
extraction_version: null
|
||||
readiness:
|
||||
status: complete
|
||||
missing_fields: []
|
||||
created_at: "2026-10-06T08:15:00Z"
|
||||
updated_at: "2026-10-06T08:15:00Z"
|
||||
page:
|
||||
has_more: false
|
||||
next_cursor: null
|
||||
NeedSalaryRangeReversed:
|
||||
summary: The lower salary bound is above the upper one
|
||||
value:
|
||||
type: urn:lincodex:problem:validation_failed
|
||||
title: Request validation failed
|
||||
status: 400
|
||||
code: validation_failed
|
||||
detail: One or more request fields are invalid.
|
||||
trace_id: 6b7c8d9e-0f1a-4b2c-8d3e-4f5a6b7c8d9f
|
||||
errors:
|
||||
- in: body
|
||||
pointer: /salary/value/salary_to
|
||||
code: invalid
|
||||
message: The value does not match the contract.
|
||||
NeedSalaryEqualBounds:
|
||||
summary: Equal salary bounds; PRD FR13 requires salary_from < salary_to
|
||||
value:
|
||||
type: urn:lincodex:problem:validation_failed
|
||||
title: Request validation failed
|
||||
status: 400
|
||||
code: validation_failed
|
||||
detail: One or more request fields are invalid.
|
||||
trace_id: 1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d
|
||||
errors:
|
||||
- in: body
|
||||
pointer: /salary/value/salary_to
|
||||
code: invalid
|
||||
message: The value does not match the contract.
|
||||
NeedSalaryRangeTooWide:
|
||||
summary: A salary range wider than 40% of its midpoint, such as 100000-200000
|
||||
description: The width (200000 - 100000) / 150000 is about 67%. A range narrower than 10%, such as 100000-105000, gets the same answer.
|
||||
value:
|
||||
type: urn:lincodex:problem:validation_failed
|
||||
title: Request validation failed
|
||||
status: 400
|
||||
code: validation_failed
|
||||
detail: One or more request fields are invalid.
|
||||
trace_id: 2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e
|
||||
errors:
|
||||
- in: body
|
||||
pointer: /salary/value/salary_to
|
||||
code: invalid
|
||||
message: The value does not match the contract.
|
||||
NeedSalaryWithoutTaxBasis:
|
||||
summary: A salary range without its tax basis
|
||||
description: The decoder does not record the path of a missing field in a nested object, so the pointer is the whole body.
|
||||
value:
|
||||
type: urn:lincodex:problem:validation_failed
|
||||
title: Request validation failed
|
||||
status: 400
|
||||
code: validation_failed
|
||||
detail: One or more request fields are invalid.
|
||||
trace_id: 7c8d9e0f-1a2b-4c3d-9e4f-5a6b7c8d9e0a
|
||||
errors:
|
||||
- in: body
|
||||
pointer: ""
|
||||
code: invalid
|
||||
message: The value does not match the contract.
|
||||
NeedExtractedValueMismatch:
|
||||
summary: Status extracted with a value that is not the stored suggestion
|
||||
description: A request may keep only the stored suggestion unconfirmed. To set another value, it sends status confirmed.
|
||||
value:
|
||||
type: urn:lincodex:problem:validation_failed
|
||||
title: Request validation failed
|
||||
status: 400
|
||||
code: validation_failed
|
||||
detail: One or more request fields are invalid.
|
||||
trace_id: 3c4d5e6f-7a8b-4c9d-8e0f-2a3b4c5d6e7f
|
||||
errors:
|
||||
- in: body
|
||||
pointer: /grade/status
|
||||
code: invalid
|
||||
message: The value does not match the contract.
|
||||
NeedUnknownField:
|
||||
summary: The client sent its own recommendation score
|
||||
description: Recommendations, membership, and candidate minimums are never request fields; any unknown field fails validation.
|
||||
value:
|
||||
type: urn:lincodex:problem:validation_failed
|
||||
title: Request validation failed
|
||||
status: 400
|
||||
code: validation_failed
|
||||
detail: One or more request fields are invalid.
|
||||
trace_id: 8d9e0f1a-2b3c-4d4e-8f5a-6b7c8d9e0f1b
|
||||
errors:
|
||||
- in: body
|
||||
pointer: ""
|
||||
code: invalid
|
||||
message: The value does not match the contract.
|
||||
NeedMissingExpectedVersion:
|
||||
summary: A change without expected_version
|
||||
value:
|
||||
type: urn:lincodex:problem:validation_failed
|
||||
title: Request validation failed
|
||||
status: 400
|
||||
code: validation_failed
|
||||
detail: One or more request fields are invalid.
|
||||
trace_id: 9e0f1a2b-3c4d-4e5f-9a6b-7c8d9e0f1a2c
|
||||
errors:
|
||||
- in: body
|
||||
pointer: /expected_version
|
||||
code: required
|
||||
message: The value is required.
|
||||
NeedStaleVersion:
|
||||
summary: The change carried a stale expected_version
|
||||
description: Another member or a server-side extraction changed the need after the client read it. Nothing was changed; the client reads the need again and reapplies its unsaved edits.
|
||||
value:
|
||||
type: urn:lincodex:problem:version_conflict
|
||||
title: Resource version conflict
|
||||
status: 412
|
||||
code: version_conflict
|
||||
detail: The resource changed after it was read. Read it again before retrying.
|
||||
trace_id: 0f1a2b3c-4d5e-4f6a-8b7c-8d9e0f1a2b3d
|
||||
Reference in new issue
Block a user