File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
pkg/analysis/dependenttags Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -42,6 +42,11 @@ func TestAnalyzer(t *testing.T) {
4242 Type : dependenttags .DependencyTypeAny ,
4343 Dependents : []string {"dep1" , "dep2" },
4444 },
45+ {
46+ Identifier : "listType=map" ,
47+ Type : dependenttags .DependencyTypeAll ,
48+ Dependents : []string {"listMapKey" },
49+ },
4550 },
4651 }
4752 analyzer , err := dependenttags .Initializer ().Init (& cfg )
Original file line number Diff line number Diff line change @@ -57,3 +57,12 @@ type TypeAlias struct {
5757 // +example:any
5858 ValidAlias MyString
5959}
60+
61+ type ListMap struct {
62+ // +listType=map
63+ InvalidListMap []string // want "field ListMap.InvalidListMap with marker \\+listType=map is missing required marker\\(s\\): \\+listMapKey"
64+
65+ // +listType=map
66+ // +listMapKey
67+ ValidListMap []string
68+ }
You can’t perform that action at this time.
0 commit comments