hapipal / confidence

Dynamic, declarative configurations
Other
264 stars 44 forks source link

Feature request #67

Closed danmo closed 5 years ago

danmo commented 7 years ago

A very useful field would be $override, example:

{
     field: {
        $override: "crieteria",
        $default: "default value"
    }
}

if criteria is passed, then field will get its value, if not it will use the default.

A real case scenario is loading some environment variables and passing them as criterias, if they exist they override the default value.

augnin commented 5 years ago

@danmo you can now use $env and $param directives.