open-feature / flagd

A feature flag daemon with a Unix philosophy
https://openfeature.dev
Apache License 2.0
481 stars 58 forks source link

[FEATURE] Add support for flag state #102

Closed beeme1mr closed 2 years ago

beeme1mr commented 2 years ago

Requirements

The flag configuration contains a state property. This property can be either ENABLED or DISABLED according to the schema. This value is an enum and may contain additional states in the future.

If the state is ENABLED, flagD should behave like it does now. However, if the state is DISABLED, flagD should return an error stating that the flag is disabled. The OpenFeature SDK would catch this error and use the fallback value.

skyerus commented 2 years ago

https://github.com/open-feature/flagd/pull/127