feat(api): define public problem errors, pagination, and retry contract

This commit is contained in:
shira committed 2026-10-05 22:09:36 +03:00
1 parent b2f6e87bfe
commit 565ca94bbb
86 files changed
+8200 -154

No files matched your search

+57
View File
@@ -7,3 +7,60 @@ servers:
paths:
/api/v1/healthz:
$ref: ./routes/healthz.yml
components:
schemas:
Problem:
$ref: ./components/schemas.yml#/Problem
ProblemCode:
$ref: ./components/schemas.yml#/ProblemCode
ProblemFieldError:
$ref: ./components/schemas.yml#/ProblemFieldError
ProblemFieldLocation:
$ref: ./components/schemas.yml#/ProblemFieldLocation
Timestamp:
$ref: ./components/schemas.yml#/Timestamp
PageInfo:
$ref: ./components/schemas.yml#/PageInfo
parameters:
IdempotencyKey:
$ref: ./components/parameters.yml#/IdempotencyKey
IfMatch:
$ref: ./components/parameters.yml#/IfMatch
PageLimit:
$ref: ./components/parameters.yml#/PageLimit
PageCursor:
$ref: ./components/parameters.yml#/PageCursor
headers:
ETag:
$ref: ./components/headers.yml#/ETag
RetryAfter:
$ref: ./components/headers.yml#/RetryAfter
responses:
ValidationFailed:
$ref: ./components/responses.yml#/ValidationFailed
Unauthenticated:
$ref: ./components/responses.yml#/Unauthenticated
Forbidden:
$ref: ./components/responses.yml#/Forbidden
NotFound:
$ref: ./components/responses.yml#/NotFound
IdempotencyInProgress:
$ref: ./components/responses.yml#/IdempotencyInProgress
StateConflict:
$ref: ./components/responses.yml#/StateConflict
PreconditionFailed:
$ref: ./components/responses.yml#/PreconditionFailed
PayloadTooLarge:
$ref: ./components/responses.yml#/PayloadTooLarge
UnprocessableContent:
$ref: ./components/responses.yml#/UnprocessableContent
PreconditionRequired:
$ref: ./components/responses.yml#/PreconditionRequired
TooManyRequests:
$ref: ./components/responses.yml#/TooManyRequests
Internal:
$ref: ./components/responses.yml#/Internal
NotImplemented:
$ref: ./components/responses.yml#/NotImplemented
Problem:
$ref: ./components/responses.yml#/Problem