You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I find that for every string field I am doing model String @trim @length(min: 1), any thoughts on a way that it can be improved?
Describe the solution you'd like
A way to define custom types with validation rules, for example: NonEmptyString
Or just being able to define custom validation, such as @nonEmptyString = @trim @length(min: 1)
Describe alternatives you've considered
Right now I just manually copy and paste
Is your feature request related to a problem? Please describe.
I find that for every string field I am doing
model String @trim @length(min: 1)
, any thoughts on a way that it can be improved?Describe the solution you'd like
A way to define custom types with validation rules, for example: NonEmptyString
Or just being able to define custom validation, such as
@nonEmptyString = @trim @length(min: 1)
Describe alternatives you've considered
Right now I just manually copy and paste
Additional context
https://discord.com/channels/1035538056146595961/1087761218049167380/1240500509048176762
The text was updated successfully, but these errors were encountered: