hashicorp / terraform-plugin-codegen-framework

Terraform Provider Code Generation Specification to Framework
Mozilla Public License 2.0
39 stars 17 forks source link

Duplicate symbol #152

Open raphaelfff opened 3 months ago

raphaelfff commented 3 months ago

tfplugingen-framework CLI version

$ go run ./cmd/tfplugingen-framework --version
tfplugingen-framework module: (devel)

5ff9cd3

Provider Code Spec File

{
  "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