Skip to content
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

Support easiest way to build validators for fields #20

Open
sergeyglazyrindev opened this issue Jan 9, 2022 · 0 comments
Open

Support easiest way to build validators for fields #20

sergeyglazyrindev opened this issue Jan 9, 2022 · 0 comments
Labels
auto-tests enhancement New feature or request

Comments

@sergeyglazyrindev
Copy link
Owner

We should support validators declared in the tags, like:


server_test.go: Name         string     `uadmin:"help:This is a test help message;search;list_exclude"`
server_test.go: ItemCount    int        `uadmin:"max:5;min:1;format:%03d;required;read_only:true,edit"`
server_test.go: Phone        string     `uadmin:"default_value:09;pattern:[0-9+]{7,15};pattern_msg:invalid phone n
@sergeyglazyrindev sergeyglazyrindev added enhancement New feature or request auto-tests labels Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auto-tests enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant