SanitizationScope

array

Where the rule applies

Default:request, response

SanitizationAction

string
  • mask: Replace with “******”

Allowed values:mask

Default:mask

BodySanitizationStrategy

Strategy for body content sanitization.

One Of
json_pathstringrequired

JSONPath expression to locate the value.

Example:$.user.email

Example

JsonPathStrategy

object

Strategy using JSONPath expression to locate content for sanitization.

* Additional properties are NOT allowed.
json_pathstringrequired

JSONPath expression to locate the value.

Example:$.user.email

Example

RegexStrategy

object

Strategy using regex pattern to locate content for sanitization.

* Additional properties are NOT allowed.
regexstring(regex)required

Regex to match to locate the value.

Example:\d{4}-\d{4}-\d{4}-\d{4}

Example