diff --git a/.github/workflows/dependabot_changelog.yml b/.github/workflows/dependabot_changelog.yml index 0264fe8..facc445 100644 --- a/.github/workflows/dependabot_changelog.yml +++ b/.github/workflows/dependabot_changelog.yml @@ -12,8 +12,8 @@ jobs: steps: - name: Fetch dependabot metadata id: dependabot-metadata - uses: dependabot/fetch-metadata@dbb049abf0d677abbd7f7eee0375145b417fdd34 # v2.2.0 - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.5.4 + uses: dependabot/fetch-metadata@dbb049abf0d677abbd7f7eee0375145b417fdd34 # v2.2.0 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - run: | gh pr checkout $PR_URL cat << EOF > .changelog/$PR_NUMBER.txt @@ -32,4 +32,4 @@ jobs: PR_NUMBER: ${{ github.event.pull_request.number }} DEP_NAME: ${{ steps.dependabot-metadata.outputs.dependency-names }} DEP_PREV_VERSION: ${{ steps.dependabot-metadata.outputs.previous-version }} - DEP_NEXT_VERSION: ${{ steps.dependabot-metadata.outputs.new-version }} \ No newline at end of file + DEP_NEXT_VERSION: ${{ steps.dependabot-metadata.outputs.new-version }} diff --git a/.github/workflows/doc-lint.yml b/.github/workflows/doc-lint.yml index 638ff20..ca3053d 100644 --- a/.github/workflows/doc-lint.yml +++ b/.github/workflows/doc-lint.yml @@ -1,11 +1,11 @@ # This is a lint workflow for documentation and example to help you get started with Actions name: doc-lint -# Controls when the action will run. +# Controls when the action will run. on: # Triggers the workflow on push or pull request events but only for the master branch pull_request: - branches: [ master ] + branches: [master] paths: - 'docs/**' - '*.md' @@ -18,11 +18,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 # Runs actions-markdownlint - - uses: articulate/actions-markdownlint@v1 + - uses: articulate/actions-markdownlint@17b8abe7407cd17590c006ecc837c35e1ac3ed83 # v1.1.0 with: config: .markdownlint.json files: - ./docs ./*.md \ No newline at end of file + ./docs ./*.md diff --git a/.github/workflows/generate_changelog.yml b/.github/workflows/generate_changelog.yml index b13559e..5c1b348 100644 --- a/.github/workflows/generate_changelog.yml +++ b/.github/workflows/generate_changelog.yml @@ -13,13 +13,13 @@ jobs: if: github.event.pull_request.merged || github.event_name == 'workflow_dispatch' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: token: ${{ secrets.CHANGELOG_PAT }} fetch-depth: 0 submodules: false ref: main - - uses: actions/setup-go@v5 + - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version-file: 'go.mod' # * CHANGELOG @@ -33,4 +33,4 @@ jobs: file_pattern: CHANGELOG.md commit_user_name: github-actions[bot] commit_user_email: github-actions[bot]@users.noreply.github.com - commit_author: Changelog Bot \ No newline at end of file + commit_author: Changelog Bot diff --git a/.github/workflows/go-generate.yml b/.github/workflows/go-generate.yml index 53f6536..d7b1766 100644 --- a/.github/workflows/go-generate.yml +++ b/.github/workflows/go-generate.yml @@ -13,16 +13,16 @@ jobs: go-generate: runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - - uses: actions/setup-go@v5 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 - run: go generate ./... - run: git status --ignored - name: git diff continue-on-error: true run: | git diff --compact-summary --exit-code - - uses: stefanzweifel/git-auto-commit-action@v5 - if: failure() # Run only if previous step have diff + - uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5.0.1 + if: failure() # Run only if previous step have diff with: add_options: '--force' commit_message: 'ci(generate): changes by go generate' diff --git a/.github/workflows/goreport.yml b/.github/workflows/goreport.yml index 6122182..a4ba97e 100644 --- a/.github/workflows/goreport.yml +++ b/.github/workflows/goreport.yml @@ -8,4 +8,4 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: creekorful/goreportcard-action@v1.0 \ No newline at end of file + - uses: creekorful/goreportcard-action@1f35ced8cdac2cba28c9a2f2288a16aacfd507f9 # v1.0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f33d2e..38f65dd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,7 +9,7 @@ jobs: release-notes: runs-on: ubuntu-latest steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.5.4 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: fetch-depth: 0 - name: Generate Release Notes @@ -29,15 +29,15 @@ jobs: permissions: contents: write steps: - - id: release-notes-download - name: Release Notes Download - uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 - with: - name: release-notes - path: /tmp - - uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0 - with: - bodyFile: "${{ steps.release-notes-download.outputs.download-path }}/release-notes.txt" + - id: release-notes-download + name: Release Notes Download + uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8 + with: + name: release-notes + path: /tmp + - uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0 + with: + bodyFile: "${{ steps.release-notes-download.outputs.download-path }}/release-notes.txt" highest-version-tag: needs: [make-release] @@ -45,7 +45,7 @@ jobs: outputs: tag: ${{ steps.highest-version-tag.outputs.tag }} steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.5.4 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: # Allow tag to be fetched when ref is a commit fetch-depth: 0 @@ -66,7 +66,7 @@ jobs: permissions: contents: write steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.5.4 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 with: fetch-depth: 0 ref: main @@ -93,8 +93,8 @@ jobs: echo -e "## $NEW_RELEASE_LINE (Unreleased)\n$(cat $CHANGELOG_FILE_NAME)" > $CHANGELOG_FILE_NAME - run: | - git config --local user.email changelogbot@frangipane.io - git config --local user.name changelogbot - git add CHANGELOG.md - git commit -m "Update CHANGELOG.md after ${{ github.ref_name }}" - git push \ No newline at end of file + git config --local user.email changelogbot@frangipane.io + git config --local user.name changelogbot + git add CHANGELOG.md + git commit -m "Update CHANGELOG.md after ${{ github.ref_name }}" + git push diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a2a8c4b..ad1a2e8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -24,8 +24,8 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 5 steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 - - uses: actions/setup-go@v5 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version-file: 'go.mod' cache: true @@ -43,14 +43,14 @@ jobs: go: - '1.21' steps: - - uses: actions/setup-go@v5 + - uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2 with: go-version: ${{ matrix.go }} - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - run: go test -v -coverprofile=profile.cov ./... - name: Send coverage - uses: shogo82148/actions-goveralls@v1 + uses: shogo82148/actions-goveralls@7b1bd2871942af030d707d6574e5f684f9891fb2 # 1.8.0 with: path-to-profile: profile.cov flag-name: Go-${{ matrix.go }} @@ -61,7 +61,6 @@ jobs: needs: coverage runs-on: ubuntu-latest steps: - - uses: shogo82148/actions-goveralls@v1 + - uses: shogo82148/actions-goveralls@7b1bd2871942af030d707d6574e5f684f9891fb2 # 1.8.0 with: parallel-finished: true - diff --git a/base.go b/base.go index b2e215e..ca59e0f 100644 --- a/base.go +++ b/base.go @@ -14,7 +14,8 @@ import ( ) const ( - errorTest = "An unexpected error was encountered trying to validate an attribute value. This is always an error in the provider. Please report the following to the provider developer:\n\n" + errorTestValidate = "An unexpected error was encountered trying to validate an attribute value. This is always an error in the provider. Please report the following to the provider developer:\n\n" + errorTestConvert = "An unexpected error was encountered trying to convert the Terraform value. This is always an error in the provider. Please report the following to the provider developer:\n\n" ) func nestedObjectTypeNewObjectPtr[T any](_ context.Context) (*T, diag.Diagnostics) { diff --git a/go.mod b/go.mod index 4b8f5b4..2d8f47f 100644 --- a/go.mod +++ b/go.mod @@ -5,9 +5,9 @@ go 1.21 toolchain go1.23.0 require ( - github.com/fatih/color v1.16.0 + github.com/fatih/color v1.17.0 github.com/google/go-cmp v0.6.0 - github.com/hashicorp/terraform-plugin-framework v1.5.0 + github.com/hashicorp/terraform-plugin-framework v1.11.0 github.com/hashicorp/terraform-plugin-go v0.23.0 github.com/iancoleman/strcase v0.3.0 github.com/stretchr/testify v1.9.0 @@ -15,8 +15,11 @@ require ( require ( github.com/davecgh/go-spew v1.1.1 // indirect + github.com/hashicorp/go-hclog v1.5.0 // indirect + github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect github.com/mattn/go-colorable v0.1.13 // indirect github.com/mattn/go-isatty v0.0.20 // indirect + github.com/mitchellh/go-testing-interface v1.14.1 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect github.com/vmihailenco/msgpack/v5 v5.4.1 // indirect github.com/vmihailenco/tagparser/v2 v2.0.0 // indirect diff --git a/go.sum b/go.sum index dbc4a96..1d0cc53 100644 --- a/go.sum +++ b/go.sum @@ -1,28 +1,47 @@ +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM= -github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE= +github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk= +github.com/fatih/color v1.17.0 h1:GlRw1BRJxkpqUCBKzKOw098ed57fEsKeNjpTe3cSjK4= +github.com/fatih/color v1.17.0/go.mod h1:YZ7TlrGPkiz6ku9fK3TLD/pl3CpsiFyu8N92HLgmosI= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= -github.com/hashicorp/terraform-plugin-framework v1.5.0 h1:8kcvqJs/x6QyOFSdeAyEgsenVOUeC/IyKpi2ul4fjTg= -github.com/hashicorp/terraform-plugin-framework v1.5.0/go.mod h1:6waavirukIlFpVpthbGd2PUNYaFedB0RwW3MDzJ/rtc= +github.com/hashicorp/go-hclog v1.5.0 h1:bI2ocEMgcVlz55Oj1xZNBsVi900c7II+fWDyV9o+13c= +github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= +github.com/hashicorp/terraform-plugin-framework v1.11.0 h1:M7+9zBArexHFXDx/pKTxjE6n/2UCXY6b8FIq9ZYhwfE= +github.com/hashicorp/terraform-plugin-framework v1.11.0/go.mod h1:qBXLDn69kM97NNVi/MQ9qgd1uWWsVftGSnygYG1tImM= github.com/hashicorp/terraform-plugin-go v0.23.0 h1:AALVuU1gD1kPb48aPQUjug9Ir/125t+AAurhqphJ2Co= github.com/hashicorp/terraform-plugin-go v0.23.0/go.mod h1:1E3Cr9h2vMlahWMbsSEcNrOCxovCZhOOIXjFHbjc/lQ= +github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= +github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow= github.com/iancoleman/strcase v0.3.0 h1:nTXanmYxhfFAMjZL34Ov6gkzEsSJZ5DbhxWjvSASxEI= github.com/iancoleman/strcase v0.3.0/go.mod h1:iwCmte+B7n89clKwxIoIXy/HfoL7AsD47ZCWhYzw7ho= +github.com/mattn/go-colorable v0.1.9/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc= +github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4= github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA= github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg= +github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU= +github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94= github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM= github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY= github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y= +github.com/mitchellh/go-testing-interface v1.14.1 h1:jrgshOhYAUVNMAJiKbEu7EqAwgJJ2JqpQmpLJOu07cU= +github.com/mitchellh/go-testing-interface v1.14.1/go.mod h1:gfgS7OtZj6MA4U1UrDRp04twqAjfvlZyCfX3sDjEym8= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= github.com/vmihailenco/msgpack/v5 v5.4.1 h1:cQriyiUvjTwOHg8QZaPihLWeRAAVoCpE00IUPn0Bjt8= github.com/vmihailenco/msgpack/v5 v5.4.1/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21PIudVV/E3rRQok= github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g= github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds= +golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= +golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/sys v0.0.0-20220503163025-988cb79eb6c6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= diff --git a/list_nested_type.go b/list_nested_type.go index 6c3c2b6..70b093a 100644 --- a/list_nested_type.go +++ b/list_nested_type.go @@ -194,7 +194,6 @@ func (t ListNestedObjectTypeOf[T]) NewObjectPtr(ctx context.Context) (any, diag. func (t ListNestedObjectTypeOf[T]) NewObjectSlice(ctx context.Context, len, cap int) (any, diag.Diagnostics) { return nestedObjectTypeNewObjectSlice[T](ctx, len, cap) } - func (t ListNestedObjectTypeOf[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics) { var diags diag.Diagnostics diff --git a/list_value_test.go b/list_value_test.go index e2f251d..b79b101 100644 --- a/list_value_test.go +++ b/list_value_test.go @@ -161,9 +161,9 @@ func TestNewListValueFrom(t *testing.T) { expectedDiags: diag.Diagnostics{ diag.NewAttributeErrorDiagnostic( path.Empty(), - "List Type Validation Error", - errorTest+ - "expected List value, received tftypes.Value with value: tftypes.String<\"oops\">", + "Value Conversion Error", + errorTestConvert+ + "can't use tftypes.String<\"oops\"> as value of List with ElementType supertypes.StringType, can only use tftypes.String values", ), }, }, @@ -175,7 +175,7 @@ func TestNewListValueFrom(t *testing.T) { diag.NewAttributeErrorDiagnostic( path.Empty().AtListIndex(0), "Value Conversion Error", - "An unexpected error was encountered trying to convert the Terraform value. This is always an error in the provider. Please report the following to the provider developer:\n\n"+ + errorTestConvert+ "can't unmarshal tftypes.Bool into *string, expected string", ), }, @@ -774,7 +774,7 @@ func TestListTypeValidate(t *testing.T) { diag.NewAttributeErrorDiagnostic( path.Root("test"), "List Type Validation Error", - errorTest+ + errorTestValidate+ "expected List value, received tftypes.Value with value: tftypes.Set[tftypes.String]>", ), }, diff --git a/map_nested_type.go b/map_nested_type.go index cf126e7..c832b19 100644 --- a/map_nested_type.go +++ b/map_nested_type.go @@ -194,7 +194,6 @@ func (t MapNestedObjectTypeOf[T]) NewObjectPtr(ctx context.Context) (any, diag.D func (t MapNestedObjectTypeOf[T]) NewObjectSlice(ctx context.Context, _, _ int) (any, diag.Diagnostics) { return nestedMapTypeNewMap[T](ctx) } - func (t MapNestedObjectTypeOf[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics) { var diags diag.Diagnostics diff --git a/map_value_test.go b/map_value_test.go index 6d11aa4..bd51440 100644 --- a/map_value_test.go +++ b/map_value_test.go @@ -159,9 +159,9 @@ func TestNewMapValueFrom(t *testing.T) { expectedDiags: diag.Diagnostics{ diag.NewAttributeErrorDiagnostic( path.Empty(), - "Map Type Validation Error", - errorTest+ - "expected Map value, received tftypes.Value with value: tftypes.String<\"oops\">", + "Value Conversion Error", + errorTestConvert+ + "can't use tftypes.String<\"oops\"> as value of MapValue, can only use tftypes.Map values", ), }, }, @@ -173,7 +173,7 @@ func TestNewMapValueFrom(t *testing.T) { diag.NewAttributeErrorDiagnostic( path.Empty().AtMapKey("key1"), "Value Conversion Error", - "An unexpected error was encountered trying to convert the Terraform value. This is always an error in the provider. Please report the following to the provider developer:\n\n"+ + errorTestConvert+ "can't unmarshal tftypes.Bool into *string, expected string", ), }, @@ -853,7 +853,7 @@ func TestMapTypeValidate(t *testing.T) { diag.NewAttributeErrorDiagnostic( path.Root("test"), "Map Type Validation Error", - errorTest+ + errorTestValidate+ "expected Map value, received tftypes.Value with value: tftypes.List[tftypes.String]>", ), }, diff --git a/set_nested_type.go b/set_nested_type.go index 9b591e5..807dce8 100644 --- a/set_nested_type.go +++ b/set_nested_type.go @@ -194,7 +194,6 @@ func (t SetNestedObjectTypeOf[T]) NewObjectPtr(ctx context.Context) (any, diag.D func (t SetNestedObjectTypeOf[T]) NewObjectSlice(ctx context.Context, len, cap int) (any, diag.Diagnostics) { return nestedObjectTypeNewObjectSlice[T](ctx, len, cap) } - func (t SetNestedObjectTypeOf[T]) NullValue(ctx context.Context) (attr.Value, diag.Diagnostics) { var diags diag.Diagnostics