open-feature / go-sdk-contrib

Community maintained OpenFeature Providers and Hooks for Go
https://openfeature.dev
Apache License 2.0
42 stars 38 forks source link

fix: Don't panic if metadata not present in the response #537

Closed thomaspoignant closed 1 month ago

thomaspoignant commented 1 month ago

This PR

metadata is not a mandatory field, if the ofrep response does not have a metadata field the provider panic. This PR make it optional to have a metadata field.