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
91 stars 71 forks source link

PO034, for AssignMessage hygiene is using the incorrect XML element #439

Closed DinoChiesa closed 1 week ago

DinoChiesa commented 4 months ago

Both the plugin and the policy tests need to change. Should add tests for a full bundle, to avoid such problems in the future.

DinoChiesa commented 3 months ago

Either i misunderstood the problem, or... I still need to re-discover the problem I was referencing here. I'm going to keep this open for a while , pending further investigation.

k1mperial commented 1 month ago

@DinoChiesa we are now getting this error on apigeelint version 2.55.2 whereas it was not throwing this error in version 2.45.0:

element <FaultRules> is not allowed here - PO034

we use the apigeetool CLI to deploy proxies over the pipeline and while doing some tests, found that during deployment apigeetool automatically adds this line to assign message policies

<FaultRules/>

and so this update on apigeelint flagging this as an error is in conflict with apigeetool's behavior

DinoChiesa commented 1 week ago

@k1mperial - Definitely apigeetool is inserting random elements. That element is not actually supported within AssignMessage. I think you should raise a bug with apigeetool, or whatever tool (or person!) is generating the AssignMessage policy.

DinoChiesa commented 1 week ago

I'm closing this because I lost the plot.