mirror of
https://github.com/langgenius/dify.git
synced 2026-06-26 14:51:13 +08:00
ConsoleDatasetListQuery accepted any integer page/limit, so a negative or zero value passed straight through to DatasetService.get_datasets and on to the DB pagination. The annotation list queries already guard this with Field(ge=1) (both console and service_api); apply the same bound to the console dataset list query for consistency. Add unit tests covering the defaults, a valid page/limit, and rejection of non-positive page and limit. From Claude Code. Signed-off-by: Yufeng He <40085740+he-yufeng@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| common | ||
| console | ||
| files | ||
| inner_api | ||
| mcp | ||
| openapi | ||
| service_api | ||
| trigger | ||
| web | ||
| __init__.py | ||
| API_SCHEMA_GUIDE.md | ||
| fastopenapi.py | ||