mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-26 15:00:26 +01:00
backported some of the v0.23.0 form validators, fixes and tests
This commit is contained in:
1 parent
e92d3cccd0
commit
cbc88d7a01
5 files changed
+100
-22
No files matched your search
@@ -19,5 +19,6 @@ func NewRealtimeSubscribe() *RealtimeSubscribe {
|
||||
func (form *RealtimeSubscribe) Validate() error {
|
||||
return validation.ValidateStruct(form,
|
||||
validation.Field(&form.ClientId, validation.Required, validation.Length(1, 255)),
|
||||
validation.Field(&form.Subscriptions, validation.Length(0, 1000)),
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user