Skip to content

Array support for default_value during resource import #130

@dkouvdis

Description

@dkouvdis

Version information

  • terraform provider: 5.8.3

Describe the bug

Unable to import the resource via terraform import contentful_contenttype.xxx

Error - Could not import contenttype to state, unexpected error: field import failed: The default type []interface {} is not supported by the provider

Screenshots

See what I have for my exisiting content_type via JSON preview
Image

According to the contentful api documentation, they are the supported types

{type: "Symbol"}
{type: "Text"}
{type: "Integer"}
{type: "Number"}
{type: "Date"}
{type: "Boolean"}
{type: "Array", items: {type: "Symbol"}} only short texts arrays are supported

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions