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

+23 -1
View File
@@ -21,7 +21,7 @@ jobs:
api:
name: API contracts
runs-on: ubuntu-24.04
timeout-minutes: 20
timeout-minutes: 30
steps:
- name: Check out source
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
@@ -46,8 +46,30 @@ jobs:
python-version-file: ml/.python-version
cache: pip
cache-dependency-path: scripts/requirements-codegen.txt
# make -C api verify runs check-toolchain, which generates the OpenAPI 3.2
# fixture with ogen, Orval, and datamodel-code-generator, so the job also
# needs the frontend and ML toolchains.
- name: Install declared pnpm
run: npm install --global "$(node -p "require('./frontend/package.json').packageManager")"
- name: Cache pnpm store
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
with:
path: ~/.local/share/pnpm/store
key: ${{ runner.os }}-pnpm-${{ hashFiles('frontend/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Set up uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
version: 0.12.22
enable-cache: true
cache-dependency-glob: ml/uv.lock
- name: Install API tooling
run: make -C api install
- name: Install frontend dependencies
run: make -C frontend install
- name: Install ML dependencies
run: make -C ml install
- name: Check API formatting and compatibility
run: make -C api fmt-check verify
- name: Check compatibility with the pull request base