Feature Flag Loading and Runtime Evaluation
Flare is a dynamic gating library that evaluates conditions based on input contexts. The package allows you to set up gates using various conditions and evaluate these conditions based on a given input.
YAML Gates
Enter your YAML gates, specifying conditions and operations.
- "feature/foo":
eval: "true && IncludeCompany && ExcludeUser"
conditions:
- id: IncludeCompany
operation: include
kind: context
path: company
value:
- acme
- id: ExcludeUser
operation: exclude
kind: context
path: user
value:
- danny
Context
Enter the JSON context that will be used for evaluation.
{
"company": "acme",
"user": "danny"
}
YAML gate passes validation{
"feature/foo": false
}