fix(assessment): return confirmed categories with their basis and label demonstration categories

This commit is contained in:
shira committed 2026-10-09 21:24:24 +03:00
1 parent 623d41b969
commit d4903a3796
77 files changed
+1441 -288

No files matched your search

+28 -3
View File
@@ -4672,11 +4672,12 @@ components:
$ref: '#/components/schemas/ProfileExperiencePeriod'
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`.'
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`. `basis` says what the grade rests on; `synthetic_demo` marks a demonstration category that is not a validated measurement.'
additionalProperties: false
required:
- specialization
- grade
- basis
- confirmed_at
- attempt_id
properties:
@@ -4684,6 +4685,8 @@ components:
$ref: '#/components/schemas/SpecializationCode'
grade:
$ref: '#/components/schemas/GradeCode'
basis:
$ref: '#/components/schemas/EvidenceBasis'
confirmed_at:
$ref: '#/components/schemas/Timestamp'
attempt_id:
@@ -6163,6 +6166,7 @@ components:
required:
- specialization
- confirmed_grade
- confirmed_basis
- active_attempt_id
- grades
properties:
@@ -6173,6 +6177,11 @@ components:
oneOf:
- $ref: '#/components/schemas/GradeCode'
- type: 'null'
confirmed_basis:
description: What the confirmed grade rests on, or null exactly when `confirmed_grade` is null. `synthetic_demo` marks a demonstration category, which is not a validated measurement and must not be shown as a real confirmation.
oneOf:
- $ref: '#/components/schemas/EvidenceBasis'
- type: 'null'
active_attempt_id:
type:
- string
@@ -9436,12 +9445,13 @@ components:
description: Number of organizations that the candidate hides the profile from. The list is read with `ListMyHiddenOrganizations`.
CardCategory:
type: object
description: A category confirmed by assessment results, as the card shows it.
description: A category confirmed by assessment results, as the card shows it. `basis` says what the grade rests on; `synthetic_demo` marks a demonstration category, which is never a standard confirmation.
additionalProperties: false
required:
- specialization
- grade
- strength
- basis
properties:
specialization:
$ref: '#/components/schemas/SpecializationCode'
@@ -9453,6 +9463,8 @@ components:
- standard
- strong
description: Coarse strength of the authoritative confirmation.
basis:
$ref: '#/components/schemas/EvidenceBasis'
AnonymousCardContent:
type: object
description: The anonymous candidate card as an organization reads it. Only explicitly published values reach it; unconfirmed stack suggestions and unknown values never do. Stack output uses a closed taxonomy. It carries no name, contact, resume text, employer, salary figure, account or profile identifier, and no schema of the private profile or of a contact disclosure is reachable from it; a contact reaches an organization only through the contact grant of an accepted invitation. Each property is null when its field is not published or the candidate has no value for it, so the card does not tell the two apart. The set of properties is closed, and an organization-visible card must never gain a property that identifies the candidate. The search ranking and the full card of an organization's search result are defined by the search contract, which reuses this content.
@@ -10835,16 +10847,19 @@ components:
description: Search basis echoed with the response so the displayed result remains tied to its need requirements version or bank filters.
MatchCategory:
type: object
description: A confirmed category. Its specialization must equal the enclosing match entry's specialization.
description: A confirmed category. Its specialization must equal the enclosing match entry's specialization. `basis` says what the grade rests on; `synthetic_demo` marks a demonstration category, which an organization must read as one and never as a standard confirmation.
additionalProperties: false
required:
- specialization
- grade
- basis
properties:
specialization:
$ref: '#/components/schemas/SpecializationCode'
grade:
$ref: '#/components/schemas/GradeCode'
basis:
$ref: '#/components/schemas/EvidenceBasis'
MatchStrength:
type: string
description: Coarse strength of a confirmed assessment for this specialization.
@@ -12441,6 +12456,7 @@ components:
confirmed_categories:
- specialization: backend
grade: junior
basis: synthetic_demo
confirmed_at: '2026-10-04T18:10:00Z'
attempt_id: 0192b3c4-d5e6-7f80-9a1b-2c3d4e5f6a7b
updated_at: '2026-10-05T09:30:00Z'
@@ -12554,6 +12570,7 @@ components:
specializations:
- specialization: backend
confirmed_grade: null
confirmed_basis: null
active_attempt_id: null
grades:
- grade: intern
@@ -12590,6 +12607,7 @@ components:
practice_required: null
- specialization: network_engineer
confirmed_grade: null
confirmed_basis: null
active_attempt_id: null
grades:
- grade: intern
@@ -14552,6 +14570,7 @@ components:
category:
specialization: backend
grade: middle
basis: synthetic_demo
strength: standard
public_context:
stack:
@@ -14587,6 +14606,7 @@ components:
category:
specialization: frontend
grade: junior
basis: synthetic_demo
strength: standard
public_context:
stack:
@@ -14681,6 +14701,7 @@ components:
category:
specialization: backend
grade: middle
basis: synthetic_demo
strength: strong
public_context:
stack:
@@ -14731,6 +14752,7 @@ components:
category:
specialization: backend
grade: middle
basis: synthetic_demo
strength: standard
public_context:
stack:
@@ -14781,6 +14803,7 @@ components:
category:
specialization: backend
grade: junior
basis: synthetic_demo
strength: standard
public_context:
stack: null
@@ -14817,6 +14840,7 @@ components:
- specialization: backend
grade: middle
strength: standard
basis: synthetic_demo
stack:
- postgresql
- kafka
@@ -16265,6 +16289,7 @@ components:
- specialization: backend
grade: middle
strength: standard
basis: synthetic_demo
stack:
- postgresql
- kafka