Skip to content
This repository has been archived by the owner on Jan 10, 2022. It is now read-only.

Support easiest way to build validators for fields #15

Open
sergeyglazyrindev opened this issue Sep 13, 2021 · 0 comments
Open

Support easiest way to build validators for fields #15

sergeyglazyrindev opened this issue Sep 13, 2021 · 0 comments
Labels
enhancement New feature or request qa

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 number;encrypt"`
@sergeyglazyrindev sergeyglazyrindev added enhancement New feature or request qa labels Sep 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request qa
Projects
None yet
Development

No branches or pull requests

1 participant