Commit 811c11f2 authored by Sindre Paulsrud Moe's avatar Sindre Paulsrud Moe Committed by Sander van Harmelen

add omitempty (#214)

parent 8264730a
...@@ -91,7 +91,7 @@ func (s *BuildVariablesService) GetBuildVariable(pid interface{}, key string, op ...@@ -91,7 +91,7 @@ func (s *BuildVariablesService) GetBuildVariable(pid interface{}, key string, op
type CreateBuildVariableOptions struct { type CreateBuildVariableOptions struct {
Key *string `url:"key" json:"key"` Key *string `url:"key" json:"key"`
Value *string `url:"value" json:"value"` Value *string `url:"value" json:"value"`
Protected *bool `url:"protected" json:"protected"` Protected *bool `url:"protected,omitempty" json:"protected,omitempty"`
} }
// CreateBuildVariable creates a variable for a given project // CreateBuildVariable creates a variable for a given project
...@@ -126,7 +126,7 @@ func (s *BuildVariablesService) CreateBuildVariable(pid interface{}, opt *Create ...@@ -126,7 +126,7 @@ func (s *BuildVariablesService) CreateBuildVariable(pid interface{}, opt *Create
type UpdateBuildVariableOptions struct { type UpdateBuildVariableOptions struct {
Key *string `url:"key" json:"key"` Key *string `url:"key" json:"key"`
Value *string `url:"value" json:"value"` Value *string `url:"value" json:"value"`
Protected *bool `url:"protected" json:"protected"` Protected *bool `url:"protected,omitempty" json:"protected,omitempty"`
} }
// UpdateBuildVariable updates an existing project variable // UpdateBuildVariable updates an existing project variable
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment