Skip to content

schema: Proof of concept Schema and Attribute validation#76

Closed
bflad wants to merge 1 commit intomainfrom
f-schema-validation
Closed

schema: Proof of concept Schema and Attribute validation#76
bflad wants to merge 1 commit intomainfrom
f-schema-validation

Conversation

@bflad
Copy link
Contributor

@bflad bflad commented Jul 20, 2021

Reference: #17
Reference: #65

Note that this code as written introduces an import cycle between tfsdk and schema packages as they need to cross-reference types. Proposal pull requests will be submitted to migrate certain package functionality between packages to alleviate the issue.

Reference: #17
Reference: #65

Note that this code as written introduces an import cycle between tfsdk and schema packages as they need to cross-reference types. Proposal pull requests will be submitted to migrate certain package functionality between packages to alleviate the issue.
bflad added a commit that referenced this pull request Jul 20, 2021
Reference: #76

This is now stuck at the below:

```
package github.com/hashicorp/terraform-plugin-framework/internal/proto6
        imports github.com/hashicorp/terraform-plugin-framework/tfsdk
        imports github.com/hashicorp/terraform-plugin-framework/internal/proto6: import cycle not allowed
```
bflad added a commit that referenced this pull request Jul 20, 2021
Reference: #76

This is now stuck at the below:

```
package github.com/hashicorp/terraform-plugin-framework/internal/proto6
        imports github.com/hashicorp/terraform-plugin-framework/tfsdk
        imports github.com/hashicorp/terraform-plugin-framework/internal/proto6: import cycle not allowed
```
bflad added a commit that referenced this pull request Jul 20, 2021
Reference: #76

These types are tightly coupled to Schema and Attribute handling and migrating them will allow for future enhancements with Attribute plan modifications and validations to reference these types without an import cycle.
bflad added a commit that referenced this pull request Jul 27, 2021
Reference: #76

This is now stuck at the below:

```
package github.com/hashicorp/terraform-plugin-framework/internal/proto6
        imports github.com/hashicorp/terraform-plugin-framework/tfsdk
        imports github.com/hashicorp/terraform-plugin-framework/internal/proto6: import cycle not allowed
```
bflad added a commit that referenced this pull request Jul 27, 2021
Reference: #76

These types are tightly coupled to Schema and Attribute handling and migrating them will allow for future enhancements with Attribute plan modifications and validations to reference these types without an import cycle.
bflad added a commit that referenced this pull request Jul 29, 2021
…k package (#77)

* Migrate schema package into tfsdk package

Reference: #76

This is now stuck at the below:

```
package github.com/hashicorp/terraform-plugin-framework/internal/proto6
        imports github.com/hashicorp/terraform-plugin-framework/tfsdk
        imports github.com/hashicorp/terraform-plugin-framework/internal/proto6: import cycle not allowed
```

* Migrate internal/proto6 Schema and Attribute functions to unexported tfsdk receiver methods

* Add CHANGELOG for #77
@bflad
Copy link
Contributor Author

bflad commented Aug 2, 2021

Now that #77 has been merged, I'm going to recreate the changes of this pull request into #75, which should compile and work as expected! 👍

@github-actions
Copy link

github-actions bot commented Sep 2, 2021

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 2, 2021
@bflad bflad deleted the f-schema-validation branch January 11, 2023 17:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant