harness-community / openfeature-java-provider

Apache License 2.0
0 stars 1 forks source link

OF Provider 2.5 #14

Open scalabl3 opened 1 year ago

scalabl3 commented 1 year ago

https://docs.openfeature.dev/docs/specification/sections/providers#requirement-25

Requirement 2.5 In cases of normal execution, the provider SHOULD populate the flag resolution structure's variant field with a string identifier corresponding to the returned flag value.

For example, the flag value might be 3.14159265359, and the variant field's value might be "pi".

The value of the variant field might only be meaningful in the context of the flag management system associated with the provider. For example, the variant may be a UUID corresponding to the variant in the flag management system, or an index corresponding to the variant in the flag management system.


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