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

Modify ListOverrides and add ListOverridesResponse #185

Merged
merged 1 commit into from
Oct 24, 2019

Conversation

dstevensio
Copy link
Contributor

I repeatedly encountered an error when using ListOverrides as the response from PagerDuty's API could not be correctly marshaled to []PagerDuty.Override

This PR changes the behavior of ListOverrides so that it follows the pattern used by ListSchedules and as a result, allows proper operation of the endpoint.

This is a breaking change in as much as it changes the type returned by the method, but in my testing at least, the current implementation is broken itself.

Fixes #180

Copy link
Contributor

@stmcallister stmcallister left a comment

Choose a reason for hiding this comment

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

Verified that ListOverrides was broken and this PR fixed it. Thank you for your contribution to the project, @dstevensio !

@stmcallister stmcallister merged commit 94ee1c5 into PagerDuty:master Oct 24, 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.

listOverrides result in JSON unmarshall failure
2 participants