fix: add yaml tags to models so we can unmarshal camelCase (#148)
This commit is contained in:
@ -16,19 +16,19 @@ import (
|
||||
|
||||
// TaskUpdateRequest struct for TaskUpdateRequest
|
||||
type TaskUpdateRequest struct {
|
||||
Status *TaskStatusType `json:"status,omitempty"`
|
||||
Status *TaskStatusType `json:"status,omitempty" yaml:"status,omitempty"`
|
||||
// The Flux script to run for this task.
|
||||
Flux *string `json:"flux,omitempty"`
|
||||
Flux *string `json:"flux,omitempty" yaml:"flux,omitempty"`
|
||||
// Override the 'name' option in the flux script.
|
||||
Name *string `json:"name,omitempty"`
|
||||
Name *string `json:"name,omitempty" yaml:"name,omitempty"`
|
||||
// Override the 'every' option in the flux script.
|
||||
Every *string `json:"every,omitempty"`
|
||||
Every *string `json:"every,omitempty" yaml:"every,omitempty"`
|
||||
// Override the 'cron' option in the flux script.
|
||||
Cron *string `json:"cron,omitempty"`
|
||||
Cron *string `json:"cron,omitempty" yaml:"cron,omitempty"`
|
||||
// Override the 'offset' option in the flux script.
|
||||
Offset *string `json:"offset,omitempty"`
|
||||
Offset *string `json:"offset,omitempty" yaml:"offset,omitempty"`
|
||||
// An optional description of the task.
|
||||
Description *string `json:"description,omitempty"`
|
||||
Description *string `json:"description,omitempty" yaml:"description,omitempty"`
|
||||
}
|
||||
|
||||
// NewTaskUpdateRequest instantiates a new TaskUpdateRequest object
|
||||
|
Reference in New Issue
Block a user