Files
lincodex/api/core/components/examples.yml
T

428 lines
14 KiB
YAML

ValidationFailed:
summary: Request parameters do not match the contract
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: 0b6f6f0e-7c55-4c8f-a8d1-6f3f3b8f2a10
errors:
- in: query
pointer: /limit
code: invalid
message: The value does not match the contract.
- in: header
pointer: /Idempotency-Key
code: required
message: The value is required.
Unauthenticated:
summary: No valid session
value:
type: urn:lincodex:problem:unauthenticated
title: Authentication required
status: 401
code: unauthenticated
detail: Sign in and repeat the request.
trace_id: 4f2d1c3b-6a5e-4d7f-8b9a-0c1d2e3f4a5b
Forbidden:
summary: The caller may not access the object
value:
type: urn:lincodex:problem:forbidden
title: Access denied
status: 403
code: forbidden
detail: You do not have permission to perform this operation.
trace_id: 7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d
NotFound:
summary: Unknown route or invisible object
value:
type: urn:lincodex:problem:not_found
title: Resource not found
status: 404
code: not_found
detail: The requested resource does not exist.
trace_id: 1c2d3e4f-5a6b-4c7d-8e9f-0a1b2c3d4e5f
IdempotencyInProgress:
summary: The first request with this key is still running
value:
type: urn:lincodex:problem:idempotency_in_progress
title: Request with this idempotency key is in progress
status: 409
code: idempotency_in_progress
detail: Retry after the original request completes.
trace_id: 2d3e4f5a-6b7c-4d8e-9f0a-1b2c3d4e5f6a
StateConflict:
summary: The resource state does not allow the operation
value:
type: urn:lincodex:problem:state_conflict
title: Resource state conflict
status: 409
code: state_conflict
detail: The resource is in a state that does not allow this operation.
trace_id: 1e2f3a4b-5c6d-4e7f-8a9b-0c1d2e3f4a5b
DomainValidationFailed:
summary: The body violates a domain rule
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: 2f3a4b5c-6d7e-4f8a-9b0c-1d2e3f4a5b6c
errors:
- in: body
pointer: /salary_from
code: invalid
message: The value does not match the contract.
VersionConflict:
summary: If-Match does not match the current version
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: 3e4f5a6b-7c8d-4e9f-8a0b-2c3d4e5f6a7b
PayloadTooLarge:
summary: The request body exceeds the limit
value:
type: urn:lincodex:problem:payload_too_large
title: Request body too large
status: 413
code: payload_too_large
detail: Reduce the request body size and retry.
trace_id: 8b9c0d1e-2f3a-4b4c-9d5e-6f7a8b9c0d1e
IdempotencyKeyReused:
summary: The same Idempotency-Key was sent with a different body
value:
type: urn:lincodex:problem:idempotency_key_reused
title: Idempotency key reused with a different request
status: 422
code: idempotency_key_reused
detail: Use a new Idempotency-Key for a different request.
trace_id: 4f5a6b7c-8d9e-4f0a-9b1c-3d4e5f6a7b8c
PreconditionRequired:
summary: The operation requires If-Match
value:
type: urn:lincodex:problem:precondition_required
title: Precondition required
status: 428
code: precondition_required
detail: Send If-Match with the ETag of the version you read.
trace_id: 5a6b7c8d-9e0f-4a1b-8c2d-4e5f6a7b8c9d
RateLimited:
summary: Too many requests
value:
type: urn:lincodex:problem:rate_limited
title: Too many requests
status: 429
code: rate_limited
detail: Wait for the Retry-After interval and retry.
trace_id: 6b7c8d9e-0f1a-4b2c-9d3e-5f6a7b8c9d0e
Internal:
summary: Unexpected server error
value:
type: urn:lincodex:problem:internal
title: Internal server error
status: 500
code: internal
detail: The server could not complete the request.
trace_id: 9c0d1e2f-3a4b-4c5d-8e6f-7a8b9c0d1e2f
NotImplemented:
summary: Operation declared in the contract without an implementation
value:
type: urn:lincodex:problem:not_implemented
title: Operation not implemented
status: 501
code: not_implemented
detail: This operation is not available yet.
trace_id: 0d1e2f3a-4b5c-4d6e-9f7a-8b9c0d1e2f3a
VerificationTokenInvalid:
summary: The verification token is unknown, used, or replaced
value:
type: urn:lincodex:problem:verification_token_invalid
title: Verification link is not valid
status: 400
code: verification_token_invalid
detail: Request a new verification link, or sign in if the address is already verified.
trace_id: 3b4c5d6e-7f8a-4b9c-8d0e-1f2a3b4c5d6e
VerificationTokenExpired:
summary: The verification token is past its lifetime
value:
type: urn:lincodex:problem:verification_token_expired
title: Verification link expired
status: 400
code: verification_token_expired
detail: Request a new verification link.
trace_id: 4c5d6e7f-8a9b-4c0d-9e1f-2a3b4c5d6e7f
VerificationTokenMalformed:
summary: The token from the link is malformed
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: 5d6e7f8a-9b0c-4d1e-8f2a-3b4c5d6e7f8a
errors:
- in: body
pointer: /token
code: invalid
message: The value does not match the contract.
InvalidCredentials:
summary: Unknown email or wrong password
value:
type: urn:lincodex:problem:invalid_credentials
title: Invalid email or password
status: 401
code: invalid_credentials
detail: Check the email and password and try again.
trace_id: 6e7f8a9b-0c1d-4e2f-9a3b-4c5d6e7f8a9b
EmailNotVerified:
summary: Correct credentials for an unverified email
value:
type: urn:lincodex:problem:email_not_verified
title: Email not verified
status: 403
code: email_not_verified
detail: Confirm the email address with the link from the verification message.
trace_id: 7f8a9b0c-1d2e-4f3a-8b4c-5d6e7f8a9b0c
CsrfCheckFailed:
summary: Missing or wrong CSRF token, or a disallowed Origin
value:
type: urn:lincodex:problem:csrf_check_failed
title: Cross-site request check failed
status: 403
code: csrf_check_failed
detail: Read the current session to get a new CSRF token and repeat the request.
trace_id: 8a9b0c1d-2e3f-4a4b-9c5d-6e7f8a9b0c1d
RegistrationValidationFailed:
summary: The password is too short and the consent text is outdated
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: 9b0c1d2e-3f4a-4b5c-8d6e-7f8a9b0c1d2e
errors:
- in: body
pointer: /password
code: invalid
message: The value does not match the contract.
- in: body
pointer: /consent_c1/text_version
code: invalid
message: The value does not match the contract.
CandidateAccount:
summary: A verified candidate on the questionnaire step
value:
id: 0f8b6c2e-4d1a-4e7b-9c3f-5a2d8e6b1c47
email: candidate@example.com
email_verified: true
scenario: candidate
onboarding_step: candidate_questionnaire
created_at: "2026-10-05T09:30:00Z"
CandidateSession:
summary: Session of a verified candidate
value:
account:
id: 0f8b6c2e-4d1a-4e7b-9c3f-5a2d8e6b1c47
email: candidate@example.com
email_verified: true
scenario: candidate
onboarding_step: candidate_questionnaire
created_at: "2026-10-05T09:30:00Z"
csrf_token: Xk4pR9tV2mQ7wL1sN8bC5dF0gH3jZ6yA9eU2iO7rT4c
SpecializationCatalog:
summary: Illustrative MVP catalog with the Backend and Network Engineer banks published
description: >-
Illustrative values. The directions, specializations, and grades follow
the MVP scale; `test_availability` comes from the published task banks,
so the grades and languages shown here are not a statement about any
deployed bank.
value:
directions:
- code: development
title: Разработка
specializations:
- code: backend
title: Backend
test_availability:
status: available
grades: [intern, junior, middle, senior]
task_languages: [python, go]
note: null
- code: frontend
title: Frontend
test_availability:
status: in_development
grades: []
task_languages: []
note: Тест в разработке.
- code: mobile
title: Mobile
test_availability:
status: in_development
grades: []
task_languages: []
note: Тест в разработке.
- code: infrastructure
title: Инфраструктура
specializations:
- code: network_engineer
title: Сетевой инженер
test_availability:
status: available
grades: [junior, middle]
task_languages: []
note: null
- code: devops_sre
title: DevOps/SRE
test_availability:
status: in_development
grades: []
task_languages: []
note: Тест в разработке.
- code: data
title: Данные
specializations:
- code: data_analyst
title: Аналитик данных
test_availability:
status: in_development
grades: []
task_languages: []
note: Тест в разработке.
- code: ds_ml
title: DS/ML
test_availability:
status: in_development
grades: []
task_languages: []
note: Тест в разработке.
- code: security
title: Безопасность
specializations:
- code: information_security
title: Информационная безопасность
test_availability:
status: in_development
grades: []
task_languages: []
note: Тест в разработке.
- code: quality
title: Качество
specializations:
- code: qa
title: QA
test_availability:
status: in_development
grades: []
task_languages: []
note: Тест в разработке.
grades:
- code: intern
title: Стажер
- code: junior
title: Junior
- code: middle
title: Middle
- code: senior
title: Senior
NewCandidateQuestionnaire:
summary: A candidate who has not saved the questionnaire yet
value:
version: 0
specializations: []
work_context: null
updated_at: null
BackendGoAndNetworkEngineerQuestionnaire:
summary: Backend with Go and Network Engineer, two independent specializations
description: >-
Go is a task language of the `backend` specialization and PostgreSQL and
gRPC are stack tags; none of them is a category. The candidate has two
specializations, `backend` and `network_engineer`, each assessed
independently. The self-assessed grades are claims; no confirmed grade
appears.
value:
version: 3
specializations:
- specialization: backend
self_assessed_grade: middle
task_languages: [go]
stack: [PostgreSQL, gRPC, Kafka]
experience:
commercial_months: 30
academic_months: 12
- specialization: network_engineer
self_assessed_grade: junior
task_languages: []
stack: [Cisco IOS, BGP]
experience: null
work_context:
work_formats: [remote, hybrid]
updated_at: "2026-10-05T09:30:00Z"
BackendGoAndNetworkEngineerQuestionnaireUpdate:
summary: Save Backend with Go and Network Engineer over version 2
value:
expected_version: 2
specializations:
- specialization: backend
self_assessed_grade: middle
task_languages: [go]
stack: [PostgreSQL, gRPC, Kafka]
experience:
commercial_months: 30
academic_months: 12
- specialization: network_engineer
self_assessed_grade: junior
task_languages: []
stack: [Cisco IOS, BGP]
experience: null
work_context:
work_formats: [remote, hybrid]
QuestionnaireTooManySpecializations:
summary: Three specializations were sent; at most two are allowed
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: 6c7d8e9f-0a1b-4c2d-8e3f-4a5b6c7d8e9f
errors:
- in: body
pointer: /specializations
code: invalid
message: The value does not match the contract.
QuestionnaireUnknownGrade:
summary: A self-assessed grade outside the grade scale, such as lead
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: 7d8e9f0a-1b2c-4d3e-9f4a-5b6c7d8e9f0a
errors:
- in: body
pointer: /specializations/0/self_assessed_grade
code: invalid
message: The value does not match the contract.
QuestionnaireRepeatedSpecialization:
summary: The same specialization was chosen twice
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: 8e9f0a1b-2c3d-4e4f-8a5b-6c7d8e9f0a1b
errors:
- in: body
pointer: /specializations/1/specialization
code: invalid
message: The value does not match the contract.