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

Inquiry about PO28 GraphQL #397

Closed pgrdevera closed 9 months ago

pgrdevera commented 9 months ago

I would like to ask what action needs to be done with this

image

DinoChiesa commented 9 months ago

PO028 checks that the policies you are using in your bundle are available in the "profile" you've configured for Apigeelint. With the addition of Apigee X and hybrid, along side the older Apigee Edge, the approach Apigee engineering has taken is that all new policy types will be available only in X/hybrid. That means policies like GraphQL, the AssertCondition, or the Integration policy step types. If you use those in a proxy that gets imported to Apigee Edge, the proxy won't work - the import will fail. Apigeelint is checking for that.

To specify the profile, use the --profile option on the command line. The options are apigee or apigeex.

The README is a little skimpy on the profile concept. I'll get that fixed.

DinoChiesa commented 9 months ago

Here's the PR for the doc improvement: #398