Skip to content

Commit c42bbd0

Browse files
committed
Migrating previously faulty shorthands.
1 parent c526776 commit c42bbd0

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

express-zod-api/tests/__snapshots__/documentation.spec.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1604,9 +1604,9 @@ paths:
16041604
combined:
16051605
type: string
16061606
minLength: 1
1607-
format: email
16081607
pattern: .*@example\\.com
16091608
maxLength: 90
1609+
format: email
16101610
required:
16111611
- regular
16121612
- min

express-zod-api/tests/documentation-helpers.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -461,8 +461,8 @@ describe("Documentation helpers", () => {
461461
});
462462

463463
test.each([
464-
z.string().email().min(10).max(20),
465-
z.string().url().length(15),
464+
z.email().min(10).max(20),
465+
z.url().length(15),
466466
z.uuid(),
467467
z.cuid(),
468468
z.iso.datetime(),

express-zod-api/tests/documentation.spec.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,9 +379,8 @@ describe("Documentation", () => {
379379
url: z.url(),
380380
numeric: z.string().regex(/\d+/),
381381
combined: z
382-
.string()
383-
.min(1)
384382
.email()
383+
.min(1)
385384
.regex(/.*@example\.com/is)
386385
.max(90),
387386
}),

0 commit comments

Comments
 (0)