CacheControl / CacheControl/json-rules-engine
Is it possible make value as a dynamic data like using path?
- Dominant language
- JavaScript
- Stars
- 3.1k
- Forks
- 507
- PR merge metrics
- No merged PRs in 30d
Description
**Example:**
```
conditions: {
all: [{
fact: 'account-information',
operator: 'equal',
value: 'microsoft', // **Is it possible make this value 'microsoft' as a dynamic content?**
path: '$.company' // access the 'company' property of "account-information"
}]
},
event: {
type: 'microsoft-christmas-pto',
params: {
message: 'current microsoft employee taking christmas day off'
}
}
```
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue does not name a file, entry point, or test. Start by tracing how rule conditions use `value` and `path`, then review existing condition tests. Done should include an agreed syntax and behavior for comparing a fact property with dynamically selected content, backed by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100