-
Notifications
You must be signed in to change notification settings - Fork 850
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
Create Automation Schedule, Interval field type problem #725
Comments
Howdy @Kemyke, The type Now, that doesn't mean that the situation is hopeless! I'll open an issue in the azure-specs-repository asking to improve the definition of the Interval field. In the mean time, to unblock you, I tinkered around with Go and didn't find a good way to json.Serialize a |
Because there aren't any more actionable items in this issue, I'm going to close it out. However, feel free to keep commenting here and ping me if needed. |
I know it is dirty but isn't it a possible workaround to modify the models.go and change the type of the Interval field manually on this type until the rest api spec fixed? |
And one more thing, may i ask why you use |
You're free to do that in a vendored copy of our SDK, and that may be easier for you than building a preparer. Do note though, that beyond just feeling dirty, the consequence of doing so is that updating your dependency will wipe away your work. In terms of the choice of @jhendrixMSFT, @mcardosos, @salameer have any thoughts on this? I think it probably merits someone spending a little time next sprint evaluating whether or not switching to json.RawMessage would be safe. |
In the type ScheduleCreateOrUpdateProperties there is an Interval field. It's type is *map[string]interface{}. I couldn't find any documentation what kind of map should i use there. I checked the powershell and the c# SDKs and they use a simple byte field there.
If this is the proper type of Interval can you someone provide some information what keys and values should i add to that dictionary?
The text was updated successfully, but these errors were encountered: