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:
1 parent
e0587afb5f
commit
9213e4b821
2 files changed
+45
-15
No files matched your search
@@ -39,7 +39,7 @@ type fieldInfo struct {
|
||||
ProtoName string
|
||||
FieldType string
|
||||
GenerateSdkOption bool
|
||||
SubtypeName string
|
||||
SubtypeNames []string
|
||||
Query bool
|
||||
SkipDefault bool
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user