terraform-provider-fusionauth icon indicating copy to clipboard operation
terraform-provider-fusionauth copied to clipboard

When application.data contains an array getting Error expected type 'string'

Open Aaron-Ritter opened this issue 1 year ago • 1 comments

When the following data is stored in the application data in a valid json format:

{
  "defaultLanguage" : "de",
  "languages" : [ "de", "fr", "en" ]
}

It will complain with the following error:

│ Error: application.data: data.languages: '' expected type 'string', got unconvertible type '[]interface {}', value: '[de fr en]'
│ 
│   with fusionauth_application.syrakus-oldcapitol,
│   on syrakus-oldcapitol.tf line 6, in resource "fusionauth_application" "syrakus-oldcapitol":
│    6: resource "fusionauth_application" "syrakus-oldcapitol" {

Aaron-Ritter avatar Oct 09 '23 16:10 Aaron-Ritter