Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Optional Condition Naming #331

Closed
chris-pardy started this conversation in Ideas
Discussion options

@CacheControl For our usage of JSON rules engine it would be super helpful if we could optionally given names so conditions.
For instance within our domain we could do something like this.

{
 "name":"FhaMinDownPayment"
 "all": [
 {
 "fact": "FhaEligable",
 "operator":"equal",
 "value": true
 },
 {
 "fact": "downPaymentPercent",
 "operator": "greaterThanInclusive",
 "value": 0.03
 }
 ]
}

The name would get reflected on the rule results. This would help with readability but it would also allow us to more easily attribute the cause of rule failures when dealing with varying levels of rule complexity.

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /