Skip to content

Data Mapper: "Copy" doesn't work for JSON's array of strings #1427

@niphlod

Description

@niphlod

Describe the Bug

Suppose I have this source

{
   "field1" : "example",
   "field2" : [
       "x1",
       "x2",
       "x3"
    ]
}

and the destination

{
   "fielddest1" : "example",
   "fielddest2" : [
       "x1",
       "x2",
       "x3"
    ]
}

It seems that the "Copy" function of the data mapper doesn't work with a "simple" array of strings (mapping "field2" to "fielddest2")....

Plan Type

Standard

Steps to Reproduce the Bug or Issue

  1. create a source and a destination schema that entails an array of strings e.g.
"fielddest2": {
                    "type": "array",
                    "items": {
                        "type": "string"
                    }
                },
  1. try to map the source array to the destination array

Workflow JSON

Screenshots or Videos

No response

Additional context

This doesn't seem to be supported in the "legacy" data mapper nor the "modern" one.

Reopening because #1364 got closed without response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions