-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
action expandVar is not working for objects non stringified #703
Comments
Do you mean it works only when the whole string is the macro? I mean:
|
No, it works when macro is composed of several string vars like:
but not works when one of these vars is a json object:
but works when macro is just one json object: (fixed in #692)
No new case is not working from #692 |
For example this action has a json attribute locationCopy which is not expanded "action":{
"type":"update",
"parameters":{
"id":"${id}_mirror",
"version": 2,
"attributes": [
{
"name":"abnormal",
"type":"Number",
"value": 7
},
{
"name": "locationCopy",
"type": "MyCustomTypo",
"value": {
"type":"Point",
"coordinates":["${Lat}","${Lon}"]
}
}
]
}
} And the workaround needed is use a json stringifed value: "action":{
"type":"update",
"parameters":{
"id":"${id}_mirror",
"version": 2,
"attributes": [
{
"name":"abnormal",
"type":"Number",
"value": 7
},
{
"name": "locationCopy",
"type": "MyCustomTypo",
"value": "{\"type\":\"Point\",\"coordinates\":[${Lat},${Lon}]}"
}
]
}
} |
Fixed by PR #752 |
When object is a part of a string to be expanded
i.e.:
Related with: (that is a fix when value is just the object
#692
The text was updated successfully, but these errors were encountered: