Skip to content

Commit 3bcf5f1

Browse files
committed
ignore AdditionalProperties when checking struct field tags
Signed-off-by: Alex Boten <[email protected]>
1 parent 851decf commit 3bcf5f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

component/componenttest/configtest.go

+3
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ func checkStructFieldTags(f reflect.StructField) error {
122122
default:
123123
fieldTag := tagParts[0]
124124
if !configFieldTagRegExp.MatchString(fieldTag) {
125+
if f.Name == "AdditionalProperties" {
126+
return nil
127+
}
125128
return fmt.Errorf(
126129
"field %q has config tag %q which doesn't satisfy %q",
127130
f.Name,

0 commit comments

Comments
 (0)