Handle same-named options across subtypes (#1728)

This updates the API generation code to allow the same option names to
be used in subtype-scoped options. This means if we have attribute
structs with the same fields, they won't overwrite each other, but will
instead create attribute-specific options.
This commit is contained in:
Jeff Mitchell authored and GitHub committed 2021-11-17 20:08:18 -05:00
1 parent e0587afb5f
commit 9213e4b821
2 files changed
+45 -15

No files matched your search

+1 -1
View File
@@ -39,7 +39,7 @@ type fieldInfo struct {
ProtoName string
FieldType string
GenerateSdkOption bool
SubtypeName string
SubtypeNames []string
Query bool
SkipDefault bool
}