Unable to map from string to string array using Logic Apps Data Mappers
- Dominant language
- TypeScript
- Stars
- 111
- Forks
- 109
- Avg merge
- 1d 23h
- Merged PRs (30d)
- 20
Description
### Describe the Bug with repro steps
# Summary
This issue is specific to Logic Apps Data Mappers within Visual Studio Code specifically. This defect (or missing feature, unsure if this is expected) occurs when you try to map from a source string attribute to an array.
# Repro Steps
1. Create a new data map in VS Code
2. Create a source schema that has no arrays and at least one string property
3. Create a new destination schema that has a string array to map to
4. Attempt to map from the string value to the string array
5. Click "Save"
6. Click "Generate XSLT"
7. Click "Test"
8. Run a test to validate mapping
9. Observe that the array item is not mapped
# Example Schemas
## source
```json
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "http://example.com/example.json",
"type": "object",
"default": {},
"title": "Example Source Schema",
"required": [
"data"
],
"properties": {
"data": {
"type": "object",
"default": {},
"properties": {
"Type": {
"type": "string",
"default": ""
}
}
}
}
}
```
## target
```json
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "http://example.com/example.json",
"type": "object",
"default": {},
"title": "Example Target Schema",
"properties": {
"Name": {
"type": "string",
"default": ""
},
"Tags": {
"type": "array",
"default": [],
"items": {
"type": "string",
"default": ""
}
}
}
}
```
## test json
{
"data": {
"Type": "abc"
}
}
### What type of Logic App Is this happening in?
Standard (VSCode)
### Which operating system are you using?
Windows
### Are you using new designer or old designer
New Designer
### Did you refer to the TSG before filing this issue? [https://aka.ms/lauxtsg]()
Yes
### Workflow JSON
N/A -- Unable to complete building a data mapper for use in a workflow.
### Screenshots or Videos
![Image]()
![Image]()
![Image]()
### Browser
- VS Code
### Additional context
We are attempting to map from a single string value to an array of string values. The use-case is for an integration that has a list of tags we need to map a single value to during an outbound HTTP request.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.