hashicorp / hashicorp/terraform-plugin-codegen-framework

Duplicate symbol

Open
#152 5 comments 3 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
57
Forks
29
Avg merge
2d 13h
Merged PRs (30d)
1

Description

### tfplugingen-framework CLI version

```
$ go run ./cmd/tfplugingen-framework --version
tfplugingen-framework module: (devel)
```
[5ff9cd3](https://github.com/hashicorp/terraform-plugin-codegen-framework/commit/5ff9cd3c0a7526e1e939d50a931a29b1d0197aed)

### Provider Code Spec File

```JSON
{
"provider": {
"name": "myprovider"
},
"resources": [
{
"name": "myresource",
"schema": {
"attributes": [
{
"name": "toplevel",
"single_nested": {
"computed_optional_required": "computed_optional",
"attributes": [
{
"name": "field1",
"list_nested": {
"computed_optional_required": "computed_optional",
"nested_object": {
"attributes": [
{
"name": "i_will_be_duplicated",
"single_nested": {
"computed_optional_required": "computed_optional",
"attributes": [
{
"name": "somefield",
"list": {
"computed_optional_required": "computed_optional",
"element_type": {
"string": {}
}
}
}
]
}
}

]
}
}
},

{
"name": "field2",
"list_nested": {
"computed_optional_required": "computed_optional",
"nested_object": {
"attributes": [
{
"name": "i_will_be_duplicated",
"single_nested": {
"computed_optional_required": "computed_optional",
"attributes": [
{
"name": "somefield",
"list": {
"computed_optional_required": "computed_optional",
"element_type": {
"string": {}
}
}
}
]
}
}
]
}
}
}
]
}
}
]
}
}
],
"version": "0.1"
}
```

### Expected Behavior

To not have duplicate

### Actual Behavior

Has duplicate definition for `IWillBeDuplicatedValue` and related

### Additional Information

_No response_

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.