mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-21 15:11:08 +08:00
Fix: remove delete_documents uuid validation (#14533)
### What problem does this PR solve? remove delete_documents uuid validation ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -49,7 +49,7 @@ class TestDocumentsDeletion:
|
||||
({}, 102, "should either provide doc ids or set delete_all(true), dataset:", 3),
|
||||
({"invalid_key":[]}, 101, "Field: <invalid_key> - Message: <Extra inputs are not permitted> - Value: <[]>", 3),
|
||||
({"ids": ""}, 101, "Field: <ids> - Message: <Input should be a valid list> - Value: <>", 3),
|
||||
({"ids": ["invalid_id"]}, 101, "Field: <ids> - Message: <Invalid UUID1 format> - Value:", 3),
|
||||
({"ids": ["invalid_id"]}, 102, "These documents do not belong to dataset", 3),
|
||||
("not json", 101, "Invalid request payload: expected object, got str", 3),
|
||||
(lambda r: {"ids": r[0]}, 101, "Field: <ids> - Message: <Input should be a valid list> - Value", 3),
|
||||
(lambda r: {"ids": r}, 0, "", 0),
|
||||
|
||||
Reference in New Issue
Block a user