Skip to content

Conversation

@FrodeSolheim
Copy link
Contributor

Currently, the SDK validates all keys in the server response against a whitelist in the model. This makes sense for input from the user - to give useful errors when the SDK is used incorrectly, but validating the server response like this makes it hard to add more information to the server response in the future without breaking existing clients.

This has already happened, which is why I created this fix (for example, eTag is now returned, and rejected by the model, so get_transaction does not work currently).

This change still uses the whitelist by default, but turns it off when returning data from get_strex_transaction.

(It probably needs to be done to other server responses as well, but I don't want to modify code I don't use/test).

Copy link
Contributor

@HansOlavS HansOlavS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Frode :)

@HansOlavS HansOlavS merged commit bfae1a7 into Target365:master Feb 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants