hashicorp / terraform-plugin-codegen-spec

Terraform Provider Code Generation Specification and Go Bindings
Mozilla Public License 2.0
7 stars 4 forks source link

Add validation to detect duplicate names #14

Closed bendbennett closed 1 year ago

bendbennett commented 1 year ago

Closes: #13

The changes implemented use a string path to provide end-user guidance as to the location of duplicated names. For instance data sources that have the same name or, attributes that have the same name at the same nesting level. This would likely be better suited to handling using a similar approach to paths used within the Framework. If the changes in the current PR are merged a separate issue will be created to track consideration of altering the way in which paths are handled in this repo.

bendbennett commented 1 year ago

Have added an issue to track potential improvements to the handling of req.Path used in the Validate() methods.

github-actions[bot] commented 3 months ago

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.