Ignore Changes
Values can be ignored (they will be deleted) by passing a JSON object to the parameter dxConfig with a value containing an array of configuration instructions. Currently the only instruction supported is the ignoreChanges instruction. You specify keys of values to ignore. For ease of use with the command line clients, we have provided a parameter to input this as a file. Simply store your dxConfig
instructions in a JSON file, and they can be easily re-used with different calls. An example of the format is below:
Input A
{
"created":"2017-01-31T16:55:25.700Z",
"description": "This is an example of dxConfig"
}
Input B
{
"created":"2016-05-12T13:15:23.700Z",
"description": "This is an example of ignoreChanges"
}
Specify the object keys you want changes in their value ignored:
dx_config
{
"dxConfig": [
{
"ignoreChanges": "delete",
"key": "created"
}
]
}
When used with the change-type
of changesOnly
(rather than fullContext
), you can see even though the value of "created" has changed it is not present in the comparison output:
Delta
{
"description": {
"dx_delta": {
"A": "This is an example of dxConfig",
"B": "This is an example of ignoreChanges"
}
}
}