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
@@ -0,0 +1,933 @@
|
||||
schemas:
|
||||
ProfileVersion:
|
||||
type: integer
|
||||
format: int64
|
||||
minimum: 0
|
||||
description: >-
|
||||
Version of the candidate profile. A candidate who has not saved the
|
||||
profile has version 0; every save that changes the profile advances it
|
||||
by one. The client sends the version it read as `expected_version`.
|
||||
examples:
|
||||
- 4
|
||||
ProfileItemStatus:
|
||||
type: string
|
||||
description: |-
|
||||
Confirmation state of a profile list item, and the decision that a request sends for a field or an item.
|
||||
|
||||
- confirmed: the candidate typed the value or confirmed a suggestion. Only confirmed values leave the profile, for example into a disclosure.
|
||||
- extracted: a suggestion that the server took from an imported document or source. Nobody has confirmed it yet, so it is a claim of trust level 0 that no other feature uses.
|
||||
|
||||
A request sends `confirmed` to confirm a suggestion or to set a manual value, and `extracted` only to keep a stored suggestion unconfirmed with exactly its stored value; a client that submits an unchanged form therefore confirms nothing by accident. An item is never `unknown`: a missing item is simply absent from the list.
|
||||
enum:
|
||||
- confirmed
|
||||
- extracted
|
||||
ProfileClaimStatus:
|
||||
type: string
|
||||
description: |-
|
||||
Confirmation state of a single profile field.
|
||||
|
||||
- confirmed: the candidate typed the value or confirmed a suggestion.
|
||||
- extracted: the server proposed the value from an imported document or source and the candidate has not confirmed it. It is a claim of trust level 0.
|
||||
- unknown: the field has no value. `value` and `source` are null. The server never fills an unknown field with a default or a guess, such as a zero salary or a relocation answer.
|
||||
enum:
|
||||
- confirmed
|
||||
- extracted
|
||||
- unknown
|
||||
ProfileClaimOrigin:
|
||||
type: string
|
||||
description: |-
|
||||
Where the value of a profile field or item came from. The server sets it; a request never sends it.
|
||||
|
||||
- manual: the candidate typed the value in the form. `quote` and `extraction_version` are null.
|
||||
- extracted_from_resume: planned; the server extracted the value from an uploaded resume with the deterministic rules or the ML service. No MVP operation produces it, and no profile requires a resume.
|
||||
- imported: planned; the value was copied from an external source such as the FSP account of the candidate. No MVP operation produces it, and no profile requires such a link.
|
||||
|
||||
Confirming an extracted value keeps its origin and quote; changing the value makes it `manual`. Adding a value is a contract change.
|
||||
enum:
|
||||
- manual
|
||||
- extracted_from_resume
|
||||
- imported
|
||||
ProfileClaimTrustLevel:
|
||||
type: integer
|
||||
format: int32
|
||||
minimum: 0
|
||||
maximum: 0
|
||||
description: >-
|
||||
Trust level of a profile claim. Every claim of the profile has trust
|
||||
level 0, whatever its origin: a manual value, an imported value, and
|
||||
a value that the candidate confirmed are all unverified statements.
|
||||
Confirming a suggestion changes its status, never its trust level.
|
||||
Higher levels belong to evidence, such as an assessment result or a
|
||||
confirmation by a third party, which are separate resources and never
|
||||
write a level into a profile claim.
|
||||
examples:
|
||||
- 0
|
||||
ProfileClaimQuote:
|
||||
type: string
|
||||
minLength: 1
|
||||
maxLength: 300
|
||||
description: >-
|
||||
Exact excerpt of the imported document that the value was extracted
|
||||
from, so the candidate can check it. It may contain personal data of
|
||||
the candidate. It may contain line breaks. Plain text; clients show it
|
||||
as text, never as HTML.
|
||||
ProfileClaimSource:
|
||||
type: object
|
||||
description: >-
|
||||
Provenance and confirmation of one profile value: its origin, the
|
||||
trust level, the excerpt it was extracted from, the extractor version,
|
||||
and the time the candidate confirmed it. Read-only; the server derives
|
||||
it and a request cannot set it. The imported document or source itself
|
||||
is not referenced: the profile never requires a file, the ML service,
|
||||
or an FSP account, and a later link to them is an additive field.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- origin
|
||||
- trust_level
|
||||
- quote
|
||||
- extraction_version
|
||||
- confirmed_at
|
||||
properties:
|
||||
origin:
|
||||
$ref: "#/schemas/ProfileClaimOrigin"
|
||||
trust_level:
|
||||
$ref: "#/schemas/ProfileClaimTrustLevel"
|
||||
quote:
|
||||
description: >-
|
||||
Excerpt of the imported document that supports the value, or null
|
||||
for a manual value and for an extracted value that the extractor
|
||||
did not tie to one excerpt.
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileClaimQuote"
|
||||
- type: "null"
|
||||
extraction_version:
|
||||
description: >-
|
||||
Extractor version for an extracted or imported value, or null for
|
||||
a manual value.
|
||||
oneOf:
|
||||
- $ref: "./need_schemas.yml#/schemas/NeedVersionLabel"
|
||||
- type: "null"
|
||||
confirmed_at:
|
||||
description: >-
|
||||
Time the candidate typed or confirmed the value, or null while the
|
||||
value is an unconfirmed suggestion.
|
||||
oneOf:
|
||||
- $ref: "./common_schemas.yml#/schemas/Timestamp"
|
||||
- type: "null"
|
||||
ProfileLocationName:
|
||||
type: string
|
||||
minLength: 1
|
||||
maxLength: 100
|
||||
pattern: '^\S(?:.*\S)?$'
|
||||
description: >-
|
||||
City or region where the candidate lives or wants to work, as free
|
||||
text. It is personal data of the candidate and never a street
|
||||
address. It has no leading or trailing whitespace and no line breaks.
|
||||
Plain text; clients show it as text, never as HTML.
|
||||
ProfileSalaryMinimum:
|
||||
type: object
|
||||
description: >-
|
||||
The lowest salary that the candidate accepts, in whole rubles with its
|
||||
base: the currency, the pay period, and the tax basis. It is private
|
||||
to the candidate: no organization reads it, and the invitation only
|
||||
shows a compatibility indicator that the server derives from it. It
|
||||
is personal data. The amount is a positive multiple of 1000.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- amount
|
||||
- currency
|
||||
- period
|
||||
- tax_basis
|
||||
properties:
|
||||
amount:
|
||||
$ref: "./need_schemas.yml#/schemas/RubAmount"
|
||||
currency:
|
||||
$ref: "./need_schemas.yml#/schemas/CurrencyCode"
|
||||
period:
|
||||
$ref: "./need_schemas.yml#/schemas/SalaryPeriod"
|
||||
tax_basis:
|
||||
$ref: "./need_schemas.yml#/schemas/SalaryTaxBasis"
|
||||
ProfileSoftSkill:
|
||||
type: string
|
||||
minLength: 1
|
||||
maxLength: 50
|
||||
pattern: '^\S(?:.*\S)?$'
|
||||
description: >-
|
||||
Soft skill as the candidate wrote it, for example "Mentoring" or
|
||||
"Negotiation". The platform has no soft skill taxonomy, so the text is
|
||||
free; it never changes a category or a grade. It has no leading or
|
||||
trailing whitespace and no line breaks. The server compares skills
|
||||
without regard to letter case. Plain text; clients show it as text,
|
||||
never as HTML.
|
||||
ProfileEmployerName:
|
||||
type: string
|
||||
minLength: 1
|
||||
maxLength: 200
|
||||
pattern: '^\S(?:.*\S)?$'
|
||||
description: >-
|
||||
Name of the employer in one experience entry, as the candidate wrote
|
||||
it. It is personal data of the candidate's career. It has no leading
|
||||
or trailing whitespace and no line breaks. Plain text; clients show
|
||||
it as text, never as HTML.
|
||||
ProfileExperienceSummary:
|
||||
type: string
|
||||
minLength: 1
|
||||
maxLength: 1000
|
||||
description: >-
|
||||
Tasks and results of the candidate in one experience entry. It
|
||||
describes the work rather than a job title. It may contain line
|
||||
breaks and personal data of the candidate; it must not contain
|
||||
personal data of other people. Plain text; clients show it as text,
|
||||
never as HTML.
|
||||
ProfileYearMonth:
|
||||
type: string
|
||||
minLength: 7
|
||||
maxLength: 7
|
||||
pattern: "^[0-9]{4}-(0[1-9]|1[0-2])$"
|
||||
description: >-
|
||||
Calendar month in the `YYYY-MM` format, for example 2024-03. An
|
||||
experience period has month precision only, so the contract holds no
|
||||
exact date of employment. The server rejects a month that lies in the
|
||||
future.
|
||||
examples:
|
||||
- "2024-03"
|
||||
ProfileFullNameClaim:
|
||||
type: object
|
||||
description: >-
|
||||
Full name of the candidate with its confirmation state and provenance.
|
||||
The value is personal data. It is disclosed to one organization only
|
||||
through the contact grant of the consent C4 and never appears in an
|
||||
organization-visible schema. `value` and `source` are null exactly
|
||||
when `status` is `unknown`.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- status
|
||||
- value
|
||||
- source
|
||||
properties:
|
||||
status:
|
||||
$ref: "#/schemas/ProfileClaimStatus"
|
||||
value:
|
||||
oneOf:
|
||||
- $ref: "./contact_grant_schemas.yml#/schemas/ContactFullName"
|
||||
- type: "null"
|
||||
source:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileClaimSource"
|
||||
- type: "null"
|
||||
ProfileEmailClaim:
|
||||
type: object
|
||||
description: >-
|
||||
Contact email of the candidate with its confirmation state and
|
||||
provenance. It is personal data. It is a contact channel that the
|
||||
candidate gives, not the login of the account: the two may differ, the
|
||||
server never sends mail to it and never verifies it. `value` and
|
||||
`source` are null exactly when `status` is `unknown`.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- status
|
||||
- value
|
||||
- source
|
||||
properties:
|
||||
status:
|
||||
$ref: "#/schemas/ProfileClaimStatus"
|
||||
value:
|
||||
oneOf:
|
||||
- $ref: "./identity_schemas.yml#/schemas/EmailAddress"
|
||||
- type: "null"
|
||||
source:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileClaimSource"
|
||||
- type: "null"
|
||||
ProfilePhoneClaim:
|
||||
type: object
|
||||
description: >-
|
||||
Contact phone number of the candidate with its confirmation state and
|
||||
provenance. It is personal data, stored in the E.164 format of the
|
||||
contact disclosure. `value` and `source` are null exactly when
|
||||
`status` is `unknown`.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- status
|
||||
- value
|
||||
- source
|
||||
properties:
|
||||
status:
|
||||
$ref: "#/schemas/ProfileClaimStatus"
|
||||
value:
|
||||
oneOf:
|
||||
- $ref: "./contact_grant_schemas.yml#/schemas/ContactPhoneNumber"
|
||||
- type: "null"
|
||||
source:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileClaimSource"
|
||||
- type: "null"
|
||||
ProfileTelegramClaim:
|
||||
type: object
|
||||
description: >-
|
||||
Telegram username of the candidate with its confirmation state and
|
||||
provenance. It is personal data, stored with the leading @ of the
|
||||
contact disclosure. `value` and `source` are null exactly when
|
||||
`status` is `unknown`.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- status
|
||||
- value
|
||||
- source
|
||||
properties:
|
||||
status:
|
||||
$ref: "#/schemas/ProfileClaimStatus"
|
||||
value:
|
||||
oneOf:
|
||||
- $ref: "./contact_grant_schemas.yml#/schemas/ContactTelegramUsername"
|
||||
- type: "null"
|
||||
source:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileClaimSource"
|
||||
- type: "null"
|
||||
ProfileLocationClaim:
|
||||
type: object
|
||||
description: >-
|
||||
Place of the candidate with its confirmation state and provenance. It
|
||||
is personal data. `value` and `source` are null exactly when `status`
|
||||
is `unknown`.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- status
|
||||
- value
|
||||
- source
|
||||
properties:
|
||||
status:
|
||||
$ref: "#/schemas/ProfileClaimStatus"
|
||||
value:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileLocationName"
|
||||
- type: "null"
|
||||
source:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileClaimSource"
|
||||
- type: "null"
|
||||
ProfileRelocationClaim:
|
||||
type: object
|
||||
description: >-
|
||||
Whether the candidate is ready to relocate, with its confirmation
|
||||
state and provenance. `value` and `source` are null exactly when
|
||||
`status` is `unknown`; the server never assumes an answer.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- status
|
||||
- value
|
||||
- source
|
||||
properties:
|
||||
status:
|
||||
$ref: "#/schemas/ProfileClaimStatus"
|
||||
value:
|
||||
type:
|
||||
- boolean
|
||||
- "null"
|
||||
source:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileClaimSource"
|
||||
- type: "null"
|
||||
ProfileSalaryMinimumClaim:
|
||||
type: object
|
||||
description: >-
|
||||
Lowest acceptable salary with its confirmation state and provenance.
|
||||
It is personal data that no organization reads. `value` and `source`
|
||||
are null exactly when `status` is `unknown`; the server never
|
||||
substitutes zero or a market estimate.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- status
|
||||
- value
|
||||
- source
|
||||
properties:
|
||||
status:
|
||||
$ref: "#/schemas/ProfileClaimStatus"
|
||||
value:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileSalaryMinimum"
|
||||
- type: "null"
|
||||
source:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileClaimSource"
|
||||
- type: "null"
|
||||
ProfileContacts:
|
||||
type: object
|
||||
description: >-
|
||||
Contact channels of the candidate. Each channel is a claim of its own,
|
||||
and the candidate fills in any subset. The kinds are the ones that
|
||||
the contact disclosure (consent C4) can pass on, with the same value
|
||||
formats, so a disclosure never has to convert or drop a stored value;
|
||||
adding a kind, such as a link to a code repository, is a contract
|
||||
change in both places. Contacts leave the profile only through a
|
||||
contact grant, never in a card or a search result. All values are
|
||||
personal data.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- email
|
||||
- phone
|
||||
- telegram
|
||||
properties:
|
||||
email:
|
||||
$ref: "#/schemas/ProfileEmailClaim"
|
||||
phone:
|
||||
$ref: "#/schemas/ProfilePhoneClaim"
|
||||
telegram:
|
||||
$ref: "#/schemas/ProfileTelegramClaim"
|
||||
ProfileTerms:
|
||||
type: object
|
||||
description: >-
|
||||
Conditions that the candidate wants: the place, readiness to relocate,
|
||||
and the lowest salary. Acceptable work formats are not repeated here;
|
||||
they are the `work_formats` of the questionnaire `WorkContext`, the
|
||||
only place that holds them. These are the candidate's wishes, never
|
||||
the terms of an invitation, which an organization offers and which
|
||||
the invitation contract describes.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- location
|
||||
- relocation
|
||||
- salary_minimum
|
||||
properties:
|
||||
location:
|
||||
$ref: "#/schemas/ProfileLocationClaim"
|
||||
relocation:
|
||||
$ref: "#/schemas/ProfileRelocationClaim"
|
||||
salary_minimum:
|
||||
$ref: "#/schemas/ProfileSalaryMinimumClaim"
|
||||
ProfileStackItem:
|
||||
type: object
|
||||
description: >-
|
||||
One technology tag of the candidate's stack with its confirmation state
|
||||
and provenance. The profile stack is one list for the whole profile;
|
||||
the questionnaire holds the tags of each chosen specialization with the
|
||||
same `StackTag` meaning, and the two lists are independent: the server
|
||||
never copies one into the other. A tag is a descriptive attribute and
|
||||
never forms a category.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- tag
|
||||
- status
|
||||
- source
|
||||
properties:
|
||||
tag:
|
||||
$ref: "./questionnaire_schemas.yml#/schemas/StackTag"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
source:
|
||||
$ref: "#/schemas/ProfileClaimSource"
|
||||
ProfileSoftSkillItem:
|
||||
type: object
|
||||
description: >-
|
||||
One soft skill of the candidate with its confirmation state and
|
||||
provenance. It is a claim; no assessment checks it.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- skill
|
||||
- status
|
||||
- source
|
||||
properties:
|
||||
skill:
|
||||
$ref: "#/schemas/ProfileSoftSkill"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
source:
|
||||
$ref: "#/schemas/ProfileClaimSource"
|
||||
ProfileRoleItem:
|
||||
type: object
|
||||
description: >-
|
||||
One role of the candidate: a specialization of the catalog with the
|
||||
grade that the candidate claims for it. `self_assessed_grade` is a
|
||||
claim, the same one that the questionnaire calls `self_assessed_grade`
|
||||
for its at most two chosen specializations: it influences nothing but
|
||||
the display and never becomes a confirmed grade or a category. The
|
||||
questionnaire value starts the assessment and the profile value is what
|
||||
the profile shows; the two are saved separately and the server never
|
||||
copies one into the other. A confirmed grade comes only from an
|
||||
assessment result and appears in `confirmed_categories` of the profile,
|
||||
never in a role; unknown fields such as `confirmed_grade` or `category`
|
||||
are rejected.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- specialization
|
||||
- self_assessed_grade
|
||||
- status
|
||||
- source
|
||||
properties:
|
||||
specialization:
|
||||
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
|
||||
self_assessed_grade:
|
||||
description: >-
|
||||
Grade that the candidate claims in the specialization, or null when
|
||||
the candidate names none.
|
||||
oneOf:
|
||||
- $ref: "./catalog_schemas.yml#/schemas/GradeCode"
|
||||
- type: "null"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
source:
|
||||
$ref: "#/schemas/ProfileClaimSource"
|
||||
ProfileExperienceItem:
|
||||
type: object
|
||||
description: >-
|
||||
One entry of the candidate's work history with its confirmation state
|
||||
and provenance. An entry describes the work by its specialization and
|
||||
tasks rather than by a job title, and it is a claim of trust level 0.
|
||||
It is different from the `CandidateExperience` of the questionnaire,
|
||||
which holds only the total months of commercial and academic
|
||||
experience of a chosen specialization as a hint for the assessment:
|
||||
the two are saved separately, and the server neither adds the entries
|
||||
up for the questionnaire nor fills the entries from it. An entry is
|
||||
personal data.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- employer_name
|
||||
- specialization
|
||||
- started_on
|
||||
- ended_on
|
||||
- summary
|
||||
- status
|
||||
- source
|
||||
properties:
|
||||
employer_name:
|
||||
description: Employer of the entry, or null when the candidate gives none.
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileEmployerName"
|
||||
- type: "null"
|
||||
specialization:
|
||||
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
|
||||
started_on:
|
||||
$ref: "#/schemas/ProfileYearMonth"
|
||||
ended_on:
|
||||
description: >-
|
||||
Last month of the work, or null when the candidate still works
|
||||
there. It is not earlier than `started_on`.
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileYearMonth"
|
||||
- type: "null"
|
||||
summary:
|
||||
description: Tasks and results of the entry, or null when the candidate gives none.
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileExperienceSummary"
|
||||
- type: "null"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
source:
|
||||
$ref: "#/schemas/ProfileClaimSource"
|
||||
ProfileConfirmedCategory:
|
||||
type: object
|
||||
description: >-
|
||||
A category that an assessment result confirmed: the specialization
|
||||
with the confirmed grade. It is read-only and derived by the server
|
||||
from the assessment results of the candidate; no request carries it
|
||||
and the profile storage holds no such column, so neither a form nor an
|
||||
import can write a confirmed grade. It is separate from the claims of
|
||||
the profile and from the self-assessed grades in `roles`.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- specialization
|
||||
- grade
|
||||
- confirmed_at
|
||||
- attempt_id
|
||||
properties:
|
||||
specialization:
|
||||
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
|
||||
grade:
|
||||
$ref: "./catalog_schemas.yml#/schemas/GradeCode"
|
||||
confirmed_at:
|
||||
$ref: "./common_schemas.yml#/schemas/Timestamp"
|
||||
attempt_id:
|
||||
type: string
|
||||
format: uuid
|
||||
description: >-
|
||||
Assessment attempt whose result confirmed the grade. The attempt
|
||||
belongs to the candidate.
|
||||
CandidateProfile:
|
||||
type: object
|
||||
description: >-
|
||||
The private profile of the current candidate: full name and contacts,
|
||||
stack, roles, work experience, soft skills, and desired terms, each
|
||||
value with its confirmation state and provenance. It is personal data
|
||||
that only the candidate reads. It is never an organization-visible
|
||||
schema: an organization sees a candidate only through the anonymous
|
||||
card and, after an accepted invitation, through the contact grant, and
|
||||
no organization schema refers to this one.
|
||||
|
||||
Every value is a claim of trust level 0. The `self_assessed_grade` of a
|
||||
role is what the candidate says; the `confirmed_categories` list is
|
||||
what assessment results established, and the two are never mixed. A
|
||||
candidate who has not saved the profile gets version 0, every single
|
||||
field `unknown`, empty lists, and null `updated_at`.
|
||||
|
||||
The profile is manual by nature and complete without a file: no field
|
||||
requires a resume, the ML service, or an FSP account, and a candidate
|
||||
with none of them has the same fields. Work formats live in the
|
||||
questionnaire; a candidate's assessment starts from the questionnaire,
|
||||
not from this profile.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- version
|
||||
- full_name
|
||||
- contacts
|
||||
- stack
|
||||
- roles
|
||||
- experience
|
||||
- soft_skills
|
||||
- terms
|
||||
- confirmed_categories
|
||||
- updated_at
|
||||
properties:
|
||||
version:
|
||||
$ref: "#/schemas/ProfileVersion"
|
||||
full_name:
|
||||
$ref: "#/schemas/ProfileFullNameClaim"
|
||||
contacts:
|
||||
$ref: "#/schemas/ProfileContacts"
|
||||
stack:
|
||||
type: array
|
||||
maxItems: 30
|
||||
description: >-
|
||||
Technology tags in the order the candidate gave them, each tag at
|
||||
most once without regard to letter case.
|
||||
items:
|
||||
$ref: "#/schemas/ProfileStackItem"
|
||||
roles:
|
||||
type: array
|
||||
maxItems: 9
|
||||
description: >-
|
||||
Roles in the order the candidate gave them, each specialization at
|
||||
most once.
|
||||
items:
|
||||
$ref: "#/schemas/ProfileRoleItem"
|
||||
experience:
|
||||
type: array
|
||||
maxItems: 20
|
||||
description: Work history entries in the order the candidate gave them.
|
||||
items:
|
||||
$ref: "#/schemas/ProfileExperienceItem"
|
||||
soft_skills:
|
||||
type: array
|
||||
maxItems: 10
|
||||
description: >-
|
||||
Soft skills in the order the candidate gave them, each skill at
|
||||
most once without regard to letter case.
|
||||
items:
|
||||
$ref: "#/schemas/ProfileSoftSkillItem"
|
||||
terms:
|
||||
$ref: "#/schemas/ProfileTerms"
|
||||
confirmed_categories:
|
||||
type: array
|
||||
maxItems: 9
|
||||
description: >-
|
||||
Categories that assessment results confirmed, at most one per
|
||||
specialization, in catalog order. Read-only and empty until an
|
||||
assessment confirms a grade.
|
||||
items:
|
||||
$ref: "#/schemas/ProfileConfirmedCategory"
|
||||
updated_at:
|
||||
description: Time of the last change, or null before the first save.
|
||||
oneOf:
|
||||
- $ref: "./common_schemas.yml#/schemas/Timestamp"
|
||||
- type: "null"
|
||||
ProfileFullNameInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about the full name in a request; see CandidateProfileUpdate
|
||||
for the rules of `status`. The value is personal data.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- value
|
||||
- status
|
||||
properties:
|
||||
value:
|
||||
$ref: "./contact_grant_schemas.yml#/schemas/ContactFullName"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
ProfileEmailInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about the contact email in a request; see
|
||||
CandidateProfileUpdate for the rules of `status`. The value is
|
||||
personal data.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- value
|
||||
- status
|
||||
properties:
|
||||
value:
|
||||
$ref: "./identity_schemas.yml#/schemas/EmailAddress"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
ProfilePhoneInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about the contact phone number in a request; see
|
||||
CandidateProfileUpdate for the rules of `status`. The value is
|
||||
personal data.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- value
|
||||
- status
|
||||
properties:
|
||||
value:
|
||||
$ref: "./contact_grant_schemas.yml#/schemas/ContactPhoneNumber"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
ProfileTelegramInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about the Telegram username in a request; see
|
||||
CandidateProfileUpdate for the rules of `status`. The value is
|
||||
personal data.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- value
|
||||
- status
|
||||
properties:
|
||||
value:
|
||||
$ref: "./contact_grant_schemas.yml#/schemas/ContactTelegramUsername"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
ProfileLocationInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about the place in a request; see CandidateProfileUpdate for
|
||||
the rules of `status`. The value is personal data.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- value
|
||||
- status
|
||||
properties:
|
||||
value:
|
||||
$ref: "#/schemas/ProfileLocationName"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
ProfileRelocationInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about readiness to relocate in a request; see
|
||||
CandidateProfileUpdate for the rules of `status`.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- value
|
||||
- status
|
||||
properties:
|
||||
value:
|
||||
type: boolean
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
ProfileSalaryMinimumInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about the lowest salary in a request; see
|
||||
CandidateProfileUpdate for the rules of `status`. The value is
|
||||
personal data.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- value
|
||||
- status
|
||||
properties:
|
||||
value:
|
||||
$ref: "#/schemas/ProfileSalaryMinimum"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
ProfileContactsInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decisions about the contact channels in a request. A channel sent as
|
||||
null is unknown: it is removed if it was set.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- email
|
||||
- phone
|
||||
- telegram
|
||||
properties:
|
||||
email:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileEmailInput"
|
||||
- type: "null"
|
||||
phone:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfilePhoneInput"
|
||||
- type: "null"
|
||||
telegram:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileTelegramInput"
|
||||
- type: "null"
|
||||
ProfileTermsInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decisions about the desired terms in a request. A field sent as null
|
||||
is unknown: it is removed if it was set.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- location
|
||||
- relocation
|
||||
- salary_minimum
|
||||
properties:
|
||||
location:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileLocationInput"
|
||||
- type: "null"
|
||||
relocation:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileRelocationInput"
|
||||
- type: "null"
|
||||
salary_minimum:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileSalaryMinimumInput"
|
||||
- type: "null"
|
||||
ProfileStackItemInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about one stack tag in a request; see CandidateProfileUpdate
|
||||
for the rules of `status`.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- tag
|
||||
- status
|
||||
properties:
|
||||
tag:
|
||||
$ref: "./questionnaire_schemas.yml#/schemas/StackTag"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
ProfileSoftSkillItemInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about one soft skill in a request; see
|
||||
CandidateProfileUpdate for the rules of `status`.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- skill
|
||||
- status
|
||||
properties:
|
||||
skill:
|
||||
$ref: "#/schemas/ProfileSoftSkill"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
ProfileRoleItemInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about one role in a request; see CandidateProfileUpdate for
|
||||
the rules of `status`. The object has no confirmed grade and no
|
||||
category: unknown fields are rejected.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- specialization
|
||||
- self_assessed_grade
|
||||
- status
|
||||
properties:
|
||||
specialization:
|
||||
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
|
||||
self_assessed_grade:
|
||||
description: Grade that the candidate claims, or null when the candidate names none.
|
||||
oneOf:
|
||||
- $ref: "./catalog_schemas.yml#/schemas/GradeCode"
|
||||
- type: "null"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
ProfileExperienceItemInput:
|
||||
type: object
|
||||
description: >-
|
||||
Decision about one work history entry in a request; see
|
||||
CandidateProfileUpdate for the rules of `status`. The server also
|
||||
requires `ended_on` not to precede `started_on` and no month to lie in
|
||||
the future, and answers 400 with the pointer of the month.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- employer_name
|
||||
- specialization
|
||||
- started_on
|
||||
- ended_on
|
||||
- summary
|
||||
- status
|
||||
properties:
|
||||
employer_name:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileEmployerName"
|
||||
- type: "null"
|
||||
specialization:
|
||||
$ref: "./catalog_schemas.yml#/schemas/SpecializationCode"
|
||||
started_on:
|
||||
$ref: "#/schemas/ProfileYearMonth"
|
||||
ended_on:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileYearMonth"
|
||||
- type: "null"
|
||||
summary:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileExperienceSummary"
|
||||
- type: "null"
|
||||
status:
|
||||
$ref: "#/schemas/ProfileItemStatus"
|
||||
CandidateProfileUpdate:
|
||||
type: object
|
||||
description: >-
|
||||
Complete new state of the candidate profile. It replaces every stored
|
||||
value as a whole: a single field sent as null is unknown and is removed,
|
||||
and a list replaces the stored list. The body is personal data.
|
||||
|
||||
Each value carries a decision `status`. `confirmed` sets a manual value
|
||||
or confirms a stored suggestion; confirming a suggestion with exactly
|
||||
its stored value keeps its origin and quote, and any other value makes
|
||||
the claim manual. `extracted` keeps a stored suggestion unconfirmed and
|
||||
is accepted only with exactly the stored value; any other use answers
|
||||
400 with the pointer of that status, for example `/stack/1/status`. The
|
||||
provenance, the trust level, and the confirmed categories are not part
|
||||
of the request, and unknown fields are rejected, so a request can
|
||||
neither mark a claim as verified nor write a confirmed grade or a
|
||||
category.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- expected_version
|
||||
- full_name
|
||||
- contacts
|
||||
- stack
|
||||
- roles
|
||||
- experience
|
||||
- soft_skills
|
||||
- terms
|
||||
properties:
|
||||
expected_version:
|
||||
$ref: "#/schemas/ProfileVersion"
|
||||
full_name:
|
||||
oneOf:
|
||||
- $ref: "#/schemas/ProfileFullNameInput"
|
||||
- type: "null"
|
||||
contacts:
|
||||
$ref: "#/schemas/ProfileContactsInput"
|
||||
stack:
|
||||
type: array
|
||||
maxItems: 30
|
||||
description: >-
|
||||
Technology tags. The schema limits the count; the server also
|
||||
answers 400 with the pointer of a tag that repeats an earlier one
|
||||
without regard to letter case, for example `/stack/2/tag`.
|
||||
items:
|
||||
$ref: "#/schemas/ProfileStackItemInput"
|
||||
roles:
|
||||
type: array
|
||||
maxItems: 9
|
||||
description: >-
|
||||
Roles. The server answers 400 with the pointer of a role whose
|
||||
specialization repeats an earlier one, for example
|
||||
`/roles/1/specialization`.
|
||||
items:
|
||||
$ref: "#/schemas/ProfileRoleItemInput"
|
||||
experience:
|
||||
type: array
|
||||
maxItems: 20
|
||||
description: Work history entries.
|
||||
items:
|
||||
$ref: "#/schemas/ProfileExperienceItemInput"
|
||||
soft_skills:
|
||||
type: array
|
||||
maxItems: 10
|
||||
description: >-
|
||||
Soft skills. The server answers 400 with the pointer of a skill
|
||||
that repeats an earlier one without regard to letter case.
|
||||
items:
|
||||
$ref: "#/schemas/ProfileSoftSkillItemInput"
|
||||
terms:
|
||||
$ref: "#/schemas/ProfileTermsInput"
|
||||
@@ -34,7 +34,9 @@ schemas:
|
||||
description: >-
|
||||
Working context of the candidate's search. It holds no personal data
|
||||
such as an address or a city; location, relocation, and salary
|
||||
expectations belong to the candidate profile.
|
||||
expectations belong to the candidate profile (`ProfileTerms`). The
|
||||
acceptable work formats live only here: the profile does not repeat
|
||||
them.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- work_formats
|
||||
@@ -52,7 +54,10 @@ schemas:
|
||||
description: >-
|
||||
Experience that the candidate states for one specialization, in whole
|
||||
months. It is self-reported context: it never adds assessment points
|
||||
and never confirms a grade.
|
||||
and never confirms a grade. The work history entries of the candidate
|
||||
profile (`ProfileExperienceItem`) are a different, detailed claim: the
|
||||
two are saved separately and the server neither adds the entries up
|
||||
nor fills them from these totals.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- commercial_months
|
||||
@@ -82,7 +87,12 @@ schemas:
|
||||
confirmed grade, and with it a category, comes only from an assessment
|
||||
result and is never part of the questionnaire; unknown fields such as
|
||||
`confirmed_grade` or `category` are rejected. Task languages and the
|
||||
stack are attributes of the chosen specialization, not categories.
|
||||
stack are attributes of the chosen specialization, not categories. The
|
||||
candidate profile states the same kind of claim in the `roles` of
|
||||
`CandidateProfile` (`ProfileRoleItem.self_assessed_grade`): the
|
||||
questionnaire value starts the assessment and the profile value is what
|
||||
the profile shows, the two are saved separately, and neither is ever a
|
||||
confirmed grade.
|
||||
additionalProperties: false
|
||||
required:
|
||||
- specialization
|
||||
|
||||
Reference in new issue
Block a user