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

Flag metadata implementation #63

Closed
thomaspoignant opened this issue Nov 3, 2023 · 0 comments · Fixed by #111
Closed

Flag metadata implementation #63

thomaspoignant opened this issue Nov 3, 2023 · 0 comments · Fixed by #111
Labels
v0.6.0 Spec v0.6.0 compliance

Comments

@thomaspoignant
Copy link
Member

thomaspoignant commented Nov 3, 2023

As mentioned in the specification :

If the flag metadata field in the flag resolution structure returned by the configured provider is set, the evaluation details structure's flag metadata field MUST contain that value. Otherwise, it MUST contain an empty record.

This flag metadata field is intended as a mechanism for providers to surface additional information about a feature flag (or its evaluation) beyond what is defined within the OpenFeature spec itself. The primary consumer of this information is a provider-specific hook.

The actual version of the SDK does not allow the providers to return flag metadata.
I guess it should be an extra field in the ProviderEvaluation and it should be forwarded in the FlagEvaluationDetails.

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

Successfully merging a pull request may close this issue.

1 participant