Skip to content

Commit

Permalink
Merge pull request #91 from windingtree/develop
Browse files Browse the repository at this point in the history
fix: 🐛 Fixed invalid PaginationInputSchema in the node-api
  • Loading branch information
kostysh authored Feb 13, 2024
2 parents d6b4557 + 2db274d commit 3ccdae4
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 3 deletions.
3 changes: 2 additions & 1 deletion packages/node-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"@windingtree/contracts": "^1.0.0",
"@windingtree/sdk-test-utils": "workspace:*",
"@windingtree/sdk-utils": "workspace:*",
"wtmp-examples-shared-files": "workspace:*"
"wtmp-examples-shared-files": "workspace:*",
"ts-node": "^10.9.2"
},
"dependencies": {
"@trpc/client": "^10.44.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/node-api/src/router/utils.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { z } from 'zod';

export const PaginationInputSchema = z.object({
start: z.number().int().positive().optional(),
skip: z.number().int().positive().optional(),
start: z.number().int().gte(0).optional(),
skip: z.number().int().gte(0).optional(),
});
86 changes: 86 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3ccdae4

Please sign in to comment.