-
Notifications
You must be signed in to change notification settings - Fork 143
Feat: Migrate to tRPC v11 #472
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
c8594a9
db88b6e
2f97913
ded2e17
1672b76
31e5475
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -15,16 +15,15 @@ export const zRepository = () => | |||||||||||||||||||||||||||||||||||
.nonEmpty(z.string(), { | ||||||||||||||||||||||||||||||||||||
required_error: t('repositories:data.link.required'), | ||||||||||||||||||||||||||||||||||||
}) | ||||||||||||||||||||||||||||||||||||
.transform((v) => (v.startsWith('http') ? v : `https://${v}`)) | ||||||||||||||||||||||||||||||||||||
.pipe( | ||||||||||||||||||||||||||||||||||||
z | ||||||||||||||||||||||||||||||||||||
.string() | ||||||||||||||||||||||||||||||||||||
.min(4, t('repositories:data.link.tooSmall', { min: 4 })) | ||||||||||||||||||||||||||||||||||||
.min(8, t('repositories:data.link.tooSmall', { min: 4 })) | ||||||||||||||||||||||||||||||||||||
.includes('.', { message: t('repositories:data.link.missingDot') }) | ||||||||||||||||||||||||||||||||||||
) | ||||||||||||||||||||||||||||||||||||
.transform((v) => (v.startsWith('http') ? v : `https://${v}`)), | ||||||||||||||||||||||||||||||||||||
), | ||||||||||||||||||||||||||||||||||||
Comment on lines
+18
to
+24
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Resolve the mismatch between min length and error message. A suggested fix: .transform((v) => (v.startsWith('http') ? v : `https://${v}`))
.pipe(
z
.string()
- .min(8, t('repositories:data.link.tooSmall', { min: 4 }))
+ .min(8, t('repositories:data.link.tooSmall', { min: 8 }))
.includes('.', { message: t('repositories:data.link.missingDot') })
) 📝 Committable suggestion
Suggested change
|
||||||||||||||||||||||||||||||||||||
description: zu.string.nonEmptyNullable(z.string()), | ||||||||||||||||||||||||||||||||||||
}); | ||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
export type FormFieldsRepository = z.infer< | ||||||||||||||||||||||||||||||||||||
ReturnType<typeof zFormFieldsRepository> | ||||||||||||||||||||||||||||||||||||
>; | ||||||||||||||||||||||||||||||||||||
|
Uh oh!
There was an error while loading. Please reload this page.