Skip to content

Commit 5639f14

Browse files
committed
Schema fixes for Arktype
1 parent d2d7501 commit 5639f14

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/routes/(v2)/v2/arktype/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ import { type } from 'arktype';
22

33
export const schema = type({
44
name: 'string>=2',
5-
email: 'email'
5+
email: 'string.email'
66
});

src/tests/superValidate.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,9 @@ describe('Schemasafe', () => {
342342
describe('Arktype', () => {
343343
const schema = type({
344344
name: 'string',
345-
email: 'email',
345+
email: 'string.email',
346346
tags: '(string>=2)[]>=3',
347-
score: 'integer>=0',
347+
score: 'number.integer>=0',
348348
'date?': 'Date',
349349
'nospace?': nospacePattern,
350350
extra: 'string|null'

0 commit comments

Comments
 (0)