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

Bugfix: handle bad OData Links and always reassign resp.Body #332

Merged
merged 2 commits into from
Feb 23, 2023

Conversation

manicminer
Copy link
Contributor

  1. When parsing a response like this:

Screenshot 2023-02-23 at 13 24 41

the unmarshaler for *Link would error out. Instead we'd rather leave *Link as nil and return early.

  1. When receiving an error whilst parsing OData, odata.FromResponse() would return early without reassigning *resp.Body, this fixes that so the body is always readable.

@manicminer manicminer added the bug Something isn't working label Feb 23, 2023
@manicminer manicminer requested a review from a team as a code owner February 23, 2023 11:26
@manicminer manicminer added the release-once-merged The SDK should be released once this PR is merged label Feb 23, 2023
@manicminer manicminer merged commit e991ecc into main Feb 23, 2023
@manicminer manicminer deleted the bugfix/bad-odata branch February 23, 2023 13:15
manicminer added a commit to manicminer/hamilton that referenced this pull request Feb 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working release-once-merged The SDK should be released once this PR is merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants