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

Apigeelint (2.25.0) is throwing an error for Hosted Target Proxy code analysis. #330

Closed balaji-up closed 2 years ago

balaji-up commented 2 years ago

Hello,

We recently upgraded the Apigeelint version from v2.11.0 to v2.25.0, and now the apigeelint is throwing an error while validating the code for hosted target proxy as mentioned in the screenshot. As per apigee document <HostedTarget /> should be in the <TargetEndpoint/> element, and there won't be target connection <TargetConnection/> element for this type proxy.

apigeelint - v2.25.0 node - v14.17.6 npm - v6.14.15

Can someone help to resolve issue or suggest if we are missing anything on the TargetEndpoint XML?

Errors:

image

Target Endpoint default XML:

`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

` Thanks, Balaji Govindasamy
ssvaidyanathan commented 2 years ago

Fixed in v2.26.0

balaji-up commented 2 years ago

Thank you for your help! @ssvaidyanathan

Appreciate your quick turnaround on the issue!

balaji-up commented 2 years ago

Hi @ssvaidyanathan

The fixed version v2.26.0 still complaining about target endpoint default XML that <TargetConnection/> element is required, which is not required for hosted target based proxy.

Could you please resolve this issue?

Errors:

image

Target Endpoint default XML:

`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

` Thanks, Balaji Govindasamy