fix config model: remove ge=0 constraints from LoggingConfig
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user