@rexeus/typeweaver 0.0.4 → 0.1.0

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.
package/README.md CHANGED
@@ -173,7 +173,7 @@ api/definition/
173
173
 
174
174
  ```typescript
175
175
  // api/definition/user/userSchema.ts
176
- import { z } from "zod/v4";
176
+ import { z } from "zod";
177
177
 
178
178
  // General schema for user status
179
179
  export const userStatusSchema = z.enum(["ACTIVE", "INACTIVE", "SUSPENDED"]);
@@ -192,7 +192,7 @@ export const userSchema = z.object({
192
192
  ```typescript
193
193
  // api/definition/user/GetUserDefinition.ts
194
194
  import { HttpOperationDefinition, HttpMethod, HttpStatusCode } from "@rexeus/typeweaver-core";
195
- import { z } from "zod/v4";
195
+ import { z } from "zod";
196
196
  import { sharedResponses } from "../shared/sharedResponses";
197
197
  import { userSchema } from "./userSchema";
198
198
  import UserNotFoundErrorDefinition from "./errors/UserNotFoundErrorDefinition";
@@ -228,7 +228,7 @@ export default new HttpOperationDefinition({
228
228
  ```typescript
229
229
  // api/definition/user/UpdateUserDefinition.ts
230
230
  import { HttpOperationDefinition, HttpMethod, HttpStatusCode } from "@rexeus/typeweaver-core";
231
- import { z } from "zod/v4";
231
+ import { z } from "zod";
232
232
  import { sharedResponses } from "../shared/sharedResponses";
233
233
  import { userSchema } from "./userSchema";
234
234
  import UserNotFoundErrorDefinition from "./errors/UserNotFoundErrorDefinition";
@@ -270,7 +270,7 @@ export default new HttpOperationDefinition({
270
270
 
271
271
  ```typescript
272
272
  // api/definition/user/errors/UserNotFoundErrorDefinition.ts
273
- import { z } from "zod/v4";
273
+ import { z } from "zod";
274
274
  import { NotFoundErrorDefinition } from "../../shared";
275
275
 
276
276
  // - uses the shared NotFoundErrorDefinition as "base" and extends it
@@ -291,7 +291,7 @@ export default NotFoundErrorDefinition.extend({
291
291
  ```typescript
292
292
  // api/definition/user/errors/UserStatusTransitionInvalidErrorDefinition.ts
293
293
  import { HttpResponseDefinition, HttpStatusCode } from "@rexeus/typeweaver-core";
294
- import { z } from "zod/v4";
294
+ import { z } from "zod";
295
295
  import { userStatusSchema } from "../userSchema";
296
296
 
297
297
  // could also extend the shared ConflictErrorDefinition: