未验证 提交 9e3324d5 编写于 作者: K KubeSphere CI Bot 提交者: GitHub

Merge pull request #3431 from LinuxSuRen/fix-boolean-param

Fix unmarshal bool into Go struct due to the boolean parameter
......@@ -504,9 +504,9 @@ type PipelineBranchItem struct {
Parameters []struct {
Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
DefaultParameterValue struct {
Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Name string `json:"name,omitempty" description:"name"`
Value string `json:"value,omitempty" description:"value"`
Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Name string `json:"name,omitempty" description:"name"`
Value interface{} `json:"value,omitempty" description:"value"`
} `json:"defaultParameterValue,omitempty"`
Description string `json:"description,omitempty" description:"description"`
Name string `json:"name,omitempty" description:"name"`
......@@ -536,8 +536,8 @@ type PipelineBranchItem struct {
// RunPipeline
type RunPayload struct {
Parameters []struct {
Name string `json:"name,omitempty" description:"name"`
Value string `json:"value,omitempty" description:"value"`
Name string `json:"name,omitempty" description:"name"`
Value interface{} `json:"value,omitempty" description:"value"`
} `json:"parameters,omitempty"`
}
......@@ -1036,8 +1036,8 @@ type ResJson struct {
Arguments []struct {
Key string `json:"key,omitempty" description:"key"`
Value struct {
IsLiteral bool `json:"isLiteral,omitempty" description:"is literal or not"`
Value string `json:"value,omitempty" description:"value"`
IsLiteral bool `json:"isLiteral,omitempty" description:"is literal or not"`
Value interface{} `json:"value,omitempty" description:"value"`
} `json:"value,omitempty"`
} `json:"arguments,omitempty"`
} `json:"parameters,omitempty"`
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册