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

@@ -0,0 +1,34 @@
schemas:
Timestamp:
type: string
format: date-time
description: >-
UTC instant in RFC 3339 format with the Z suffix, for example
2026-10-05T09:30:00Z. Servers always emit UTC. Every date-time field in
this contract uses this schema.
examples:
- "2026-10-05T09:30:00Z"
PageInfo:
type: object
description: >-
Cursor pagination state of a list response. Lists are ordered by a
stable server-defined key. To read the next page, repeat the request
with the same filters and `cursor` set to `next_cursor`.
additionalProperties: false
required:
- has_more
- next_cursor
properties:
has_more:
type: boolean
description: Whether another page follows this one.
next_cursor:
type:
- string
- "null"
minLength: 1
maxLength: 512
pattern: "^[A-Za-z0-9_-]+$"
description: >-
Opaque cursor of the next page, or null on the last page. Clients
must not parse, build, or store it beyond the current listing.