Skip to content

Commit e2d807f

Browse files
CopilotBenLorantfy
andcommitted
Reduce fix to minimal changes: only z.date() handling logic and basic test
Co-authored-by: BenLorantfy <4398635+BenLorantfy@users.noreply.github.com>
1 parent 20cb56c commit e2d807f

24 files changed

Lines changed: 3827 additions & 3413 deletions

package-lock.json

Lines changed: 1091 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/nestjs-zod/src/__e2e_tests__/openapi.test.ts

Lines changed: 1657 additions & 1920 deletions
Large diffs are not rendered by default.

packages/nestjs-zod/src/assert.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
export function assert(
2-
condition: unknown,
3-
message = 'Assertion failed'
4-
): asserts condition {
5-
if (!condition) {
6-
throw new Error(`[nestjs-zod] ${message}`)
7-
}
1+
export function assert(condition: unknown, message: string = 'Assertion failed'): asserts condition {
2+
if (!condition) {
3+
throw new Error(`[nestjs-zod] ${message}`);
4+
}
85
}
6+

0 commit comments

Comments
 (0)