hashicorp / terraform-plugin-codegen-spec

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

spec: Add minimum length validations for custom_type object type and value_type properties #27

Closed bflad closed 1 year ago

bflad commented 1 year ago

Closes #22

When setting a custom_type object type property to "", it generates this validation error:

--- FAIL: TestValidate (0.00s)
    --- FAIL: TestValidate/example (0.01s)
        validate_test.go:45: expected no error, got: provider.schema.attributes.27.set.custom_type.type: String length must be greater than or equal to 1
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.