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

fix: PO035 allows both of Sync{IntervalInSeconds, MessageCount} #445

Closed DinoChiesa closed 3 months ago

DinoChiesa commented 3 months ago

Contrary to the (current) documentation the AsynchronousConfiguration element within the Quota policy allows the use of both SyncIntervalInSeconds and SyncMessageCount, in the same configuration. This is valid:

<Quota name="Q-Asynch">
  . . . 
  <AsynchronousConfiguration>
    <SyncIntervalInSeconds>20</SyncIntervalInSeconds>
    <SyncMessageCount>5</SyncMessageCount>
  </AsynchronousConfiguration>
</Quota>

This change modifies the PO035 plugin to allow that.

DinoChiesa commented 3 months ago

This fixed #443 .