Skip to content

Add support to test that a schema written in framework is equivalent to one written in SDK #1231

@remyleone

Description

@remyleone

Module version

github.com/hashicorp/terraform-plugin-framework v1.16.1

Use-cases

As a maintainer of a provider written in SDKv2, I would like when I migrate a ressource to verify that the schema I have written in framework is equivalent to one written in SDK.

That would be very helpful to ensure that no customers is going to update to a broken schema.

Attempted Solutions

Manually check field by field.
Using the acceptance testing that is already in place.

Proposal

Could you add to the framework a list of function that would check that a resource / data source schema are indeed compatible between the SDKv2 and the framework.

References

It would be helpful to add any tooling existing to do this task to the following documentation page:
https://developer.hashicorp.com/terraform/plugin/framework/migrating/schema

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions