Skip to content

Commit 6bb8db3

Browse files
authored
Generate code for handling collection and object attributes, with or without associated external type (#82)
* Altering method signature for AttrType (#78) * Initial pass at handling plain collection types in nested object value to object value template (#78) * Implementing CollectionType to return element type and collection type value function as strings when collection type does not have an associated external type (#78) * Implementing AttrType and AttrValue methods on list, map, and set attributes (#78) * Removing unneeded case statements from AttrTypes and AttrValues methods (#78) * Implementing to/from methods for list, map, and set (#78) * Adding a few tests (#78) * Include elem type in embedded type for collection types AttrType() method (#78) * Handle object attribute with or without associated external type (#78) * Removing unused switch statement conditions (#78)
1 parent 15ea551 commit 6bb8db3

File tree

68 files changed

+2584
-425
lines changed

Some content is hidden

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

68 files changed

+2584
-425
lines changed

internal/cmd/testdata/custom_and_external/all_output/default_pkg_name/datasource_example/example_data_source_gen.go

Lines changed: 167 additions & 39 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/cmd/testdata/custom_and_external/all_output/default_pkg_name/provider_example/example_provider_gen.go

Lines changed: 21 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/cmd/testdata/custom_and_external/all_output/default_pkg_name/resource_example/example_resource_gen.go

Lines changed: 21 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)