@inixiative/json-rules 2.19.2 → 2.19.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -336,6 +336,18 @@ Inside array conditions, `$.` means "read from the current element":
336
336
  }
337
337
  ```
338
338
 
339
+ ## Rule Introspection
340
+
341
+ Reading a stored rule's own content — which values it names, which bindings it needs — is
342
+ engine work, not caller work: a walk written outside the engine goes blind the day the rule
343
+ format grows a node type, and it goes blind silently.
344
+
345
+ | Function | Purpose |
346
+ | --- | --- |
347
+ | `requiredBindings(rule)` | Names of every `{ bind }` token in the tree — the set a bindings map must cover. |
348
+ | `resolveBindings(rule, bindings)` | Substitutes covered binds with their values, leaving uncovered tokens in place (partial resolution). |
349
+
350
+
339
351
  ## Runtime Validation
340
352
 
341
353
  `check()` evaluates a rule against data and returns: