Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OF Provider 2.3 #14

Open
scalabl3 opened this issue Oct 13, 2022 · 0 comments
Open

OF Provider 2.3 #14

scalabl3 opened this issue Oct 13, 2022 · 0 comments

Comments

@scalabl3
Copy link

https://docs.openfeature.dev/docs/specification/sections/providers#flag-value-resolution

Condition 2.3
The implementing language type system differentiates between strings, numbers, booleans and structures.

Conditional Requirement 2.3.1
The feature provider interface MUST define methods for typed flag resolution, including boolean, numeric, string, and structure.

ResolutionDetails resolveBooleanValue(string flagKey, boolean defaultValue, context: EvaluationContext);

// example string flag value resolution
ResolutionDetails resolveStringValue(string flagKey, string defaultValue, context: EvaluationContext);

// example number flag value resolution
ResolutionDetails resolveNumberValue(string flagKey, number defaultValue, context: EvaluationContext);

// example structure flag value resolution
ResolutionDetails resolveStructureValue(string flagKey, JsonObject defaultValue, context: EvaluationContext);

Reference Provider (JAVA): https://github.com/splitio/split-openfeature-provider-java/blob/main/src/main/java/io/split/openfeature/SplitProvider.java

Conventions Checklist: https://docs.openfeature.dev/docs/reference/concepts/provider/#checklist

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant