Open gvem opened 6 years ago
@gvem try to delete spaces between valid: and validation rules.
valid: "alphanum~Field Title must be alphanumeric, required~Field Title is empty" to valid:"alphanum~Field Title must be alphanumeric, required~Field Title is empty"
Hello guys! I forked this package cause owner disappeared. Hope, he will be back, but it would be easier to merge these changes back if he is back Link to my repo: create issue there and we'll discuss it.
// I`m try to validate struct, but validation work only for Shortcut field with no errors. // It is a bug? // ================= package main
import ( "fmt"
)
func main() { type stRequest_Application_Create struct { Title string
d:"Application title for human reading" valid: "alphanum~Field Title must be alphanumeric, required~Field Title is empty"
Shortcut stringd:"Custom short alias for the Application title" valid:"alphanum~Field Shortcut must be alphanumeric, required~Field Shortcut is empty"
Enabled boold:"Application state" valid: "-"
}}