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

+18 -3
View File
@@ -1682,6 +1682,7 @@ AssessmentSpecializationAvailability:
required:
- specialization
- confirmed_grade
- confirmed_basis
- active_attempt_id
- grades
properties:
@@ -1692,6 +1693,11 @@ AssessmentSpecializationAvailability:
oneOf:
- $ref: '#/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: '#/EvidenceBasis'
- type: 'null'
active_attempt_id:
type:
- string
@@ -2325,11 +2331,12 @@ ProfileParallelPeriodConfirmation:
$ref: '#/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:
@@ -2337,6 +2344,8 @@ ProfileConfirmedCategory:
$ref: '#/SpecializationCode'
grade:
$ref: '#/GradeCode'
basis:
$ref: '#/EvidenceBasis'
confirmed_at:
$ref: '#/Timestamp'
attempt_id:
@@ -4808,16 +4817,19 @@ MatchStrength:
- strong
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: '#/SpecializationCode'
grade:
$ref: '#/GradeCode'
basis:
$ref: '#/EvidenceBasis'
MatchScore:
type: number
format: double
@@ -6783,12 +6795,13 @@ PrivacySettings:
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: '#/SpecializationCode'
@@ -6800,6 +6813,8 @@ CardCategory:
- standard
- strong
description: Coarse strength of the authoritative confirmation.
basis:
$ref: '#/EvidenceBasis'
CardSelfAssessment:
type: object
description: Candidate-declared specialization and optional grade. This is never an assessment result.