fix config model: remove ge=0 constraints from LoggingConfig

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
2026-06-26 17:12:37 +02:00
parent 42f4f0f5d7
commit 6e9c2b853a
3 changed files with 5 additions and 26 deletions

View File

@@ -1,11 +1,3 @@
### Task 2: Fix `Update Config` API Test
**Test Result:** FAIL — Expected status: 200, got 422
**File:** `tests/robot/api/config.robot`
**Instructions:**
The test sends a PUT to `/api/config` with a payload that includes `other={'anime_directory': '/tmp/aniworld_test_anime'}`. The server returns 422 (Unprocessable Entity). Open `src/server/models/config.py` and inspect the `ConfigUpdate` Pydantic model. The `other` field may be missing, incorrectly typed, or the nested dict validation is failing. Ensure `ConfigUpdate` accepts the `other` field with an `anime_directory` string inside. Update the model or the test payload so they agree.
---
### Task 3: Fix `Validate Valid Config` API Test
**Test Result:** FAIL — Expected status: 200, got 422
**File:** `tests/robot/api/config.robot`