Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Duplicate symbol #152

Open
1 task done
raphaelfff opened this issue Aug 12, 2024 · 1 comment
Open
1 task done

Duplicate symbol #152

raphaelfff opened this issue Aug 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@raphaelfff
Copy link

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

  • I agree to follow this project's Code of Conduct
@raphaelfff raphaelfff added the bug Something isn't working label Aug 12, 2024
@aeneasr
Copy link

aeneasr commented Dec 13, 2024

We are having the same issue. The structure names should be prefixed with the previous path to ensure uniqueness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants