Cover test of tag for omitted field
This commit is contained in:
parent
48a3c3f483
commit
61f81f549c
@ -81,6 +81,7 @@ func TestParamSwaggerTags(t *testing.T) {
|
|||||||
func TestHeaderSwaggerTags(t *testing.T) {
|
func TestHeaderSwaggerTags(t *testing.T) {
|
||||||
type SearchInput struct {
|
type SearchInput struct {
|
||||||
Q string `json:"q" swagger:"minLen(5),maxLen(8)"`
|
Q string `json:"q" swagger:"minLen(5),maxLen(8)"`
|
||||||
|
Enable bool `json:"-"`
|
||||||
BrandIds string `json:"brandIds" swagger:"collect(csv)"`
|
BrandIds string `json:"brandIds" swagger:"collect(csv)"`
|
||||||
Sortby [][]string `json:"sortby" swagger:"default(id)"`
|
Sortby [][]string `json:"sortby" swagger:"default(id)"`
|
||||||
Order []int `json:"order" swagger:"enum(0|1|n)"`
|
Order []int `json:"order" swagger:"enum(0|1|n)"`
|
||||||
|
Loading…
Reference in New Issue
Block a user