Skip to content

Disable all nodes types for RichText validation breaks #73

@robertmoelker

Description

@robertmoelker

Version information

  • terraform: v1.12.1
  • terraform provider: v5.4.0

Describe the bug

I want to restrict all the access for EnabledNodeTypes however passing an empty array throws an error.

To Reproduce

    {
      id        = "title"
      name      = "Title"
      type      = "RichText"
      required  = true
      localized = true
      validations = [
        {
          enabled_marks = ["bold"]
          message       = "Only bold marks are allowed"
        },
        {
          enabled_node_types = [],
        }
      ]
    }

Expected behavior

Empty array being passed towards Contentful causing the restrictions to be fully applied.

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