Skip to content

Commit a2e1e1e

Browse files
committed
improve email jsonschema
1 parent 3d36255 commit a2e1e1e

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.changeset/soft-forks-join.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"effect-app": patch
3+
---
4+
5+
improve jsonschema of Email

packages/effect-app/src/Schema/email.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const Email = S
1616
identifier: "Email",
1717
title: "Email",
1818
description: "an email according to RFC 5322",
19-
jsonSchema: { format: "email" },
19+
jsonSchema: { format: "email", minLength: 3, /* a@b */ maxLength: 998 },
2020
arbitrary: () => (fc) => fc.emailAddress().map((_) => _ as Email)
2121
})
2222
)

0 commit comments

Comments
 (0)