optimizely / go-sdk

Go SDK for Optimizely Feature Experimentation and Optimizely Full Stack (legacy)
https://docs.developers.optimizely.com/experimentation/v4.0-full-stack/docs/go-sdk
Apache License 2.0
18 stars 19 forks source link

[FSSDK-9131] fix for ODP INVALID_IDENTIFIER_EXCEPTION code #372

Closed yasirfolio3 closed 1 year ago

yasirfolio3 commented 1 year ago

Summary

Support a new format for ODP InvalidIdentifierException (when SDK fetches segments with a non-registered userId).

       "extensions": {
            "code": "INVALID_IDENTIFIER_EXCEPTION",
            "classification": "DataFetchingException"
       }

Test plan

Add unit tests to cover the new response format.

Issues