I have the following input JSON:
[
{
"id": "id1",
"projectId": "ALL",
"composable": "true",
"schema": {
"properties": {},
"required": [ "name", "db_access" ]
}
},
{
"id": "id2",
"projectId": "ALL",
"composable": "true",
"schema": {
"properties": {},
"required": [ "test", "remote" ]
}
}
]
Desired JSON:
[
{
"id": "id1",
"projectId": "ALL",
"composable": "true",
"schema": {
"properties": {},
"required": [ "name", "db_access", "account", "region" ]
}
},
{
"id": "id2",
"projectId": "ALL",
"composable": "true",
"schema": {
"properties": {},
"required": [ "test", "remote", "account", "region" ]
}
}
]
I wish to append the "account" and "region" Strings to the beginning or end (it doesn't matter) of the "required" array. How do I achieve that using Jolt spec transformation?
