Closed luk355 closed 1 year ago
Hey @luk355, we might need to rethink this one since I believe this will break local evaluation mode. The environment document is currently built without the id (and then stored in our DynamoDB database so it would be a painful migration to add it). As far as I'm aware the deserialization would therefore fail if the id doesn't exist, although I'm confused why the tests have passed on this PR. I would have expected the tests to fail at this point, perhaps there's something I'm missing in the way in which .net deserializes data? Is it not strict perhaps?
Aside from the above, I'm also not keen on diverging the engine schemas in our server side SDKs. Is there another way around this problem?
If it's helpful, you can see an example of an environment document here.
Fair enough. Thanks for the comment. I have found a way how to lookup data from the DB model so this PR is not needed.
Add missing properties to engine model so that engine flagState result can be mapped to API /identities response.