@apistudio/apim-cli
Version:
CLI for API Management Products
91 lines (90 loc) • 2.39 kB
JSON
{
"extends": null,
"skipTransform": false,
"transformations": {
"replacements": [
{
"target": "$",
"value": [],
"precedence": 1
},
{
"target": "$",
"value": {
"redact": {
"messageQueryParam": {
"messageName": "{{$.spec.message.messageName}}",
"paramNames": "{{$.spec.message.queryParameters}}"
}
}
},
"operation": "push",
"precedence": 2,
"condition": "$.spec.message && $.spec.message.queryParameters && $.spec.message.queryParameters.length > 0"
},
{
"target": "$",
"value": {
"redact": {
"messageHeader": {
"messageName": "{{$.spec.message.messageName}}",
"headerNames": "{{$.spec.message.headers}}"
}
}
},
"operation": "push",
"precedence": 3,
"condition": "$.spec.message && $.spec.message.headers && $.spec.message.headers.length > 0"
},
{
"target": "$",
"value": {
"redact": {
"messageBody": {
"messageName": "{{$.spec.message.messageName}}",
"captures": {
"jsonata": "{{$.spec.message.body.captures.jsonata}}"
}
}
}
},
"operation": "push",
"precedence": 4,
"condition": "$.spec.message && $.spec.message.body && $.spec.message.body.captures && $.spec.message.body.captures.jsonata && $.spec.message.body.captures.jsonata.length > 0"
},
{
"target": "$",
"value": {
"redact": {
"variable": "{{$.spec.variable}}"
}
},
"operation": "push",
"precedence": 6,
"condition": "$.spec.variable"
},
{
"target": "$",
"value": {
"redact": {
"distributedVariable": "{{$.spec.distributedVariable}}"
}
},
"operation": "push",
"precedence": 6,
"condition": "$.spec.distributedVariable"
},
{
"target": "$",
"value": {
"redact": {
"telemetry": "{{$.spec.telemetry}}"
}
},
"operation": "push",
"precedence": 8,
"condition": "$.spec.telemetry"
}
]
}
}