opsgenie / opsgenie-go-sdk-v2

Opsgenie GO SDK v2
Apache License 2.0
34 stars 63 forks source link

🐛 ChangeOrderRequest: Allow zero as targetIndex #92

Open twink0r opened 2 years ago

twink0r commented 2 years ago

This fixes the Issue that not allows to use zero as targetIndex for ChangeOrderRequest.

Error response from API

ERRO[2021-11-29T16:44:29.619653+01:00] Error occurred with Status code: 422, Message: Request body is not processable. Please check the errors., Took: 0.004000, RequestId: 5b0c3b63-743c-466d-8518-63bbfc7f36bf, Error Detail: map[targetIndex:must not be null] ERRO[0014] error while changing the new policy: %vError occurred with Status code: 422, Message: Request body is not processable. Please check the errors., Took: 0.004000, RequestId: 5b0c3b63-743c-466d-8518-63bbfc7f36bf, Error Detail: map[targetIndex:must not be null]