Cleanse parameter nestedAttributeToCleanse
Learn about the parameter to cleanse nested attributes.
The nestedAttributeToCleanse
parameter defines the nested attributes to cleanse separately. It ensures that cleansing applies to all nested levels. The cleansed data is stored at each nested level.
Usage
Define this parameter within the infos
object of the cleanseConfig
to specify which nested attributes should be cleansed separately using the configured cleanse sequence.
Example: Using nestedAttributeToCleanse with Address Cleanser
Example: Using nestedAttributeToCleanse with StringFunctionCleanser
Considerations
- The cleanser processes all levels of the specified nested attribute.
- Ensure the cleanse sequence is correctly configured to apply cleansing at the right stage.
- Incorrect nesting may lead to incomplete cleansing of hierarchical data.
- Use a separate
nestedAttributeToCleanse
entry for each nested attribute that requires cleansing. - Ensure that nestedAttributeToCleanse is only applied to fully nested structures and doesn't reference simple attributes within a nested attribute.