Skip to content

Commit d356e91

Browse files
authored
Merge pull request #45536 from hashicorp/f-autoflex-xmlwrapper-enhancements
Autoflex, xmlwrapper enhancements
2 parents cf2293c + 9a24ea4 commit d356e91

210 files changed

Lines changed: 6968 additions & 355 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

internal/framework/flex/autoflex.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ const (
2828
type autoFlexer interface {
2929
convert(context.Context, path.Path, reflect.Value, path.Path, reflect.Value, fieldOpts) diag.Diagnostics
3030
getOptions() AutoFlexOptions
31+
handleXMLWrapperCollapse(context.Context, path.Path, reflect.Value, path.Path, reflect.Value, reflect.Type, reflect.Type, map[string]bool) diag.Diagnostics
3132
}
3233

3334
// autoFlexValues returns the underlying `reflect.Value`s of `from` and `to`.
@@ -166,9 +167,10 @@ func autoflexTags(field reflect.StructField) (string, tagOptions) {
166167
}
167168

168169
type fieldOpts struct {
169-
legacy bool
170-
omitempty bool
171-
xmlWrapper bool
170+
legacy bool
171+
omitempty bool
172+
xmlWrapper bool
173+
xmlWrapperField string
172174
}
173175

174176
// valueWithElementsAs extends the Value interface for values that have an ElementsAs method.

0 commit comments

Comments
 (0)