@deliverart/sdk-js-core 2.2.0 → 2.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +4 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -119,7 +119,7 @@ import { z } from 'zod';
119
119
  const createUserInputSchema = z.object({
120
120
  name: z.string().min(1),
121
121
  email: z.string().email(),
122
- age: z.number().min(18).optional()
122
+ age: z.coerce.number().min(18).optional()
123
123
  });
124
124
 
125
125
  // Define output schema
@@ -127,14 +127,14 @@ const userResponseSchema = z.object({
127
127
  id: z.string(),
128
128
  name: z.string(),
129
129
  email: z.string(),
130
- age: z.number().nullable(),
130
+ age: z.coerce.number().nullable(),
131
131
  createdAt: z.string()
132
132
  });
133
133
 
134
134
  // Define query parameters schema (optional)
135
135
  const getUsersQuerySchema = z.object({
136
- page: z.number().optional(),
137
- limit: z.number().optional(),
136
+ page: z.coerce.number().optional(),
137
+ limit: z.coerce.number().optional(),
138
138
  search: z.string().optional()
139
139
  });
140
140
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deliverart/sdk-js-core",
3
3
  "description": "Core SDK for DeliverArt, providing essential functionalities and utilities.",
4
- "version": "2.2.0",
4
+ "version": "2.2.1",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
7
7
  "types": "dist/index.d.ts",