You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hei, i'm trying to use create rotation (with time restrict) from the sdk. But there error: Error occurred with Status code: 422, Message: Request body is not processable. Please check the errors., Took: 0.005000, RequestId: efeac8ca-a11f-4e5d-aceb-5eb3ca8cefab, Error Detail: map[endMin:may not be null startMin:may not be null]
I set the restrict StartMin, and EndMin to 0. But i think it was omitted by json: omitempty.
I think the StartMin, and EndMin should not set as omitempty, because it makes no value when requesting to the opsgenie api.
I think, we must change / remove the omitempty tags of StartMin and EndMin on Restriction struct
Thanks!
The text was updated successfully, but these errors were encountered:
imamfzn
changed the title
Zero StartMin, EndMin omitempty
Zero StartMin, EndMin omitempty on Restriction
Jul 17, 2019
Hei, i'm trying to use create rotation (with time restrict) from the sdk. But there error:
Error occurred with Status code: 422, Message: Request body is not processable. Please check the errors., Took: 0.005000, RequestId: efeac8ca-a11f-4e5d-aceb-5eb3ca8cefab, Error Detail: map[endMin:may not be null startMin:may not be null]
I set the restrict
StartMin
, andEndMin
to0
. But i think it was omitted byjson: omitempty
.I think the
StartMin
, andEndMin
should not set as omitempty, because it makes no value when requesting to the opsgenie api.I think, we must change / remove the
omitempty
tags ofStartMin
andEndMin
on Restriction structThanks!
The text was updated successfully, but these errors were encountered: