CacheControl / CacheControl/json-rules-engine
Complex rule for the fact
未关闭
- 主要语言
- JavaScript
- 星标
- 3.1k
- 派生
- 507
- PR 合并指标
- 30 天内没有已合并 PR
描述
Suppose the fact is
const fact={
id:1,
username:'sureshk',
student:[{name:'zbc',percentage:100},{name:'zb',percentage:10}],
role:['coach','mentor'],
sport:['hockey','base']
}
and the rule should be
rule criteria => (student.name ='zbc' AND student.percentage=100) AND id=1 AND username='sureshk' AND role = 'coach' AND sport='hockey'
what will the json rules for the above rule criteria and facts
贡献指南
这个仓库没有索引到贡献指南
调研方向
先从 issue 中展示的事实对象和规则条件开始,然后查阅项目中针对嵌套 student 字段以及 role 和 sport 数组的规则格式入口点。完成的标准是 issue 具有明确无歧义的 JSON 规则表示,涵盖所有已声明的条件。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- javascript
- 领域
- backend
- Issue 类型
- 文档
- 难度
- 5/5
- 预计耗时
- 一周以上
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 25/100