-
Notifications
You must be signed in to change notification settings - Fork 488
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
PATH is not resolving correctly #285
Comments
It's explicitly defined behaviour (as you can see by this test), but I'd argue it's poor design. You can see at this line: https://github.com/CacheControl/json-rules-engine/blob/master/src/almanac.js#L158 if the fact value isn't an object, then the path is essentially ignored. I'd open up a PR that this should return undefined instead, but I'm questioning whether this library is still maintained. There's been 0 activity from the maintainer of this repo since June? |
It still looks like it's being somewhat maintained. I do see that the dependency version used by json-rules-engine is However, I do think your proposal for returning undefined makes sense regardless. |
@CacheControl do you have an update on the status on the project? There are several issues/requests and I'm sure there are a few people who are able and willing to help contribute. |
I have seen some strange happenings with regard to how the JSON-PATH is resolving in the rules with
"json-rules-engine": "6.1.2"
.If you consider the following rule:
With the following payload:
The rule will still resolve and fire off the event which I believe is incorrect.
My expectation is that it should only resolve when the payload is as follows:
Link for reference: https://github.com/mojaloop/mojaloop-simulator/pull/120/files#r747311386
The text was updated successfully, but these errors were encountered: