ResourceFilterConfig
Defined in: src/policies/traffic/resource-filter.ts:13
Configuration for the resourceFilter policy.
Extends
Section titled “Extends”Properties
Section titled “Properties”applyToArrayItems?
Section titled “applyToArrayItems?”
optionalapplyToArrayItems:boolean
Defined in: src/policies/traffic/resource-filter.ts:21
Apply filtering to array items. Default: true
contentTypes?
Section titled “contentTypes?”
optionalcontentTypes:string[]
Defined in: src/policies/traffic/resource-filter.ts:19
Content types to filter. Default: [“application/json”]
fields
Section titled “fields”fields:
string[]
Defined in: src/policies/traffic/resource-filter.ts:17
Field paths to filter. Supports dot-notation (e.g. “user.password”)
mode:
"allow"|"deny"
Defined in: src/policies/traffic/resource-filter.ts:15
Filter mode: “deny” removes listed fields, “allow” keeps only listed fields
skip()?
Section titled “skip()?”
optionalskip: (c) =>boolean|Promise<boolean>
Defined in: src/policies/types.ts:33
Skip this policy when condition returns true
Parameters
Section titled “Parameters”unknown
Returns
Section titled “Returns”boolean | Promise<boolean>