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

Expand the possible time formats that can be unmarshalled from JSON payloads #60

Closed
wants to merge 3 commits into from

Conversation

nmiodice
Copy link

@nmiodice nmiodice commented May 4, 2020

The Azure DevOps service does not use a consistent time format across APIs. This change makes response unmarshalling more flexible by adding a number of fallback for a variety of time formats.

Note The azuredevops.Time implementation has been moved from models.go to time.go. Related tests have also moved to time_test.go.

This closes #59

@nmiodice nmiodice requested a review from tedchamb May 14, 2020 15:50
@nmiodice nmiodice force-pushed the niiodice/time-fix branch from 31e58f5 to ff7ae62 Compare May 16, 2020 21:17
@nmiodice
Copy link
Author

I've rebased off of the latest code and also fixed a merge conflict.

@tedchamb tedchamb closed this May 19, 2020
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.

policy.CreatePolicyConfiguration fails with error when trying to unmarshall response from azdo
2 participants