apigee / apigeelint

Static code analysis for Apigee proxy bundles to encourage API developers to use best practices and avoid anti-patterns.
Apache License 2.0
93 stars 71 forks source link

feat: PO037 add check for Source in DataCapture policy #466

Closed DinoChiesa closed 1 month ago

DinoChiesa commented 1 month ago

The DataCapture policy allows capture of data from the request or response message, for example the URIPath. It is possible to specify a capture for a URIPath, while the Source is a response message. This will always "do nothing", resulting in a failed capture.

This plugin checks for that kind of invalid configuration, as well as a variety of other potential mistakes with the DataCapture policy. Missing required elements or attributes, duplicated elements, etc.

This addresses #463 ; the problem was identified in a Community question.