Chris Hatch

Results 6 comments of Chris Hatch

Can you clarify what you mean by "returns affect subsequent rules"? It's not clear from your examples. I'm not sure exactly where the error is coming from, but in your...

The following reproduces the error message in v1.4.9: ```ts import { ruleFactory } from "@elite-libs/rules-machine"; const rule = 'SPLIT("", foo.bar)'; ruleFactory(rule)({ foo: true }); ``` Closing because there is no...

I think there may be a misunderstanding about the context the rules are run. The rules are run in sequence in the same mutable context. Your second example is doing...

I think that's a fine solution as long as it's clear in the docs.

Are you thinking something like this? ```js { map: '$IO::fetchItems()', run: { return: '$item.id' }, } // fetchItems.config.json { "url": "items.com/api?key=$ApiKey", "ApiKey": "SECURE_ENV_VAR", "method": "GET", "headers": [...], "dataPath": "body.data.items", "validator":...

Do you mean something like this? ``` { "if": "foo == bar", "then": "dara = giantMech", "name": "muhRule", "description": "This is a rule that does stuff" } ```