Cover test of tag for omitted field

This commit is contained in:
ElvinChan 2018-09-05 20:15:28 +08:00
parent 48a3c3f483
commit 61f81f549c

View File

@ -81,6 +81,7 @@ func TestParamSwaggerTags(t *testing.T) {
func TestHeaderSwaggerTags(t *testing.T) {
type SearchInput struct {
Q string `json:"q" swagger:"minLen(5),maxLen(8)"`
Enable bool `json:"-"`
BrandIds string `json:"brandIds" swagger:"collect(csv)"`
Sortby [][]string `json:"sortby" swagger:"default(id)"`
Order []int `json:"order" swagger:"enum(0|1|n)"`