supermemory/packages
abhay-codes07 a30cfaa4c3
fix(validation): reject non-positive page/limit in pagination query schemas
Both pagination query schemas validated only the upper bound, so
malformed pagination flowed straight through the API's source-of-truth
validation into the query layer instead of failing with a clean 400:

- ListMemoriesQuerySchema guards its string branch with /^\d+$/ (which
  still admits "0"), but the z.number() branch accepted any number:
  { page: -1, limit: -5 } and fractional values like 2.5 parsed
  successfully; only limit > 1100 was rejected
- DocumentsWithMemoriesQuerySchema (the input schema for
  POST /documents/documents) had bare z.number() for both page and
  limit with no bounds at all

Require page and limit to be positive integers in both schemas. The
1100 limit cap and all defaults are unchanged, and no new upper bound
is introduced for the documents schema since existing web flows
legitimately request large pages.

Covered with bun tests: defaults, numeric and numeric-string
acceptance, the 1100 cap, and rejection of zero/negative/fractional
values on both schemas.
2026-07-13 01:43:31 +05:30
..
agent-framework-python docs: quote pip extras install examples (#1039) 2026-06-16 23:30:41 -07:00
ai-sdk fix: username issue and bun lock issue (#818) 2026-03-31 21:41:25 +00:00
cartesia-sdk-python fix(cartesia-sdk): treat empty profile as no memories, not a retrieval error (#1164) 2026-07-10 19:14:49 -07:00
docs-test custom id implementation (#877) 2026-04-24 23:43:16 +00:00
hooks chore(nova): ux improvments (#820) 2026-04-02 18:20:34 +00:00
lib perf(lib): hoist customAlphabet factory in generateId (#1204) 2026-07-10 19:15:21 -07:00
memory-graph feat(memory-graph): configurable labels + popover z-index (#1201) 2026-07-10 19:15:17 -07:00
openai-sdk-python fix(openai-sdk): use AsyncSupermemory and correct client API calls (#1063) 2026-06-17 09:05:11 -07:00
pipecat-sdk-python fix(pipecat-sdk): handle null profile object safely (#1041) 2026-06-05 17:26:28 +05:30
tools fix(tools): coerce limit/offset in ai-sdk schemas (#1202) 2026-07-10 19:42:15 -07:00
ui Fix settings organization flows (#1159) 2026-06-27 14:27:36 +00:00
validation fix(validation): reject non-positive page/limit in pagination query schemas 2026-07-13 01:43:31 +05:30