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: peggyjs changes for NOT #414

Closed ssvaidyanathan closed 7 months ago

ssvaidyanathan commented 7 months ago
<Condition>NOT (proxy.pathsuffix ~~ "/token/users(/.*)?") and 
NOT (proxy.pathsuffix ~~ "/apikey/users(/.*)?")</Condition> 

was failing with the following error

SyntaxError: Expected "!=", "&&", ":=", "<", "<=","=", "=|", ">", ">=", "AND", "Equals","EqualsCaseInsensitive", 
"GreaterThan","GreaterThanOrEquals", "Is", "IsNot", "JavaRegex","LesserThan", "LesserThanOrEquals", "Like","LikePath", 
"Matches", "MatchesPath", "NotEquals","OR", "StartsWith", "and", "is", "isnot","notequals", "or", "||", "~", "~/", "~~", or 
[\t\n] but "(" found.  

This fix is added to allow Not

ssvaidyanathan commented 7 months ago

@DinoChiesa - can you please review