Merge pull request #2957 from markparonyan/api-issue-08-67pip0

feat(api): add machine-readable error codes and align OpenAPI error schemas
This commit is contained in:
Jeremy Grossmann authored and GitHub committed 2026-10-08 09:30:13 +02:00
commit 5055664456
9 files changed
+398 -61

No files matched your search

+4 -1
View File
@@ -42,7 +42,10 @@ class TestVersionRoutes:
params = {"version": "0.4.2"}
response = await client.post(app.url_path_for("check_version"), json=params)
assert response.status_code == status.HTTP_409_CONFLICT
assert response.json() == {"message": f"Client version 0.4.2 is not the same as server version {__version__}"}
assert response.json() == {
"message": f"Client version 0.4.2 is not the same as server version {__version__}",
"code": "conflict",
}
async def test_version_invalid_input_schema(self, app: FastAPI, client: AsyncClient) -> None: