-
Notifications
You must be signed in to change notification settings - Fork 73
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BUG: CC007 incorrectly errors on valid comparisons #410
Comments
@MonochromeChameleon - I dont think you have a flow variable on both sides of the operation. In your case |
@ssvaidyanathan that's just the example from the error comment, but in the more general case, you should definitely be able to compare two flow variables, e.g.
|
I'm having a similar issue, same code error but when I use multiline conditions or the "not" operator. Ex:
and
|
@MonochromeChameleon - Apigee as a product doesnt support comparing two flow variables from what I understand. |
@matnsc - I have submitted a PR to allow |
@ssvaidyanathan APIGEE does support using two flow variables, In my case I check org and env names I expect org and env names in resource URI, and then use flow variables organization.name and environment.name against the extracted values form resource URI but due to this it's failing |
@Polaratom - Can you share an example of what you mean please? |
I have run some tests and found these results for what Apigee accepts on the right-hand-side of operators:
|
I did test the lastest PR (#416) in some of our proxies that use multiline, not (and other named operators) and double equals which previously failed CC007 tests, now it's working as expected. PR #416: |
Excellent, thank you for the confirmation. |
Just released v2.47.0 |
Yep, all working for me now - thanks! |
#403 introduced checking for Condition statement, but incorrectly flags comparisons between two flow variables as invalid. In the PR description it says:
but if
invalid_client
were a flow variable, this comparison would be valid.The text was updated successfully, but these errors were encountered: