Skip to content

Commit

Permalink
BuildSource: mark secrets field as omitempty.
Browse files Browse the repository at this point in the history
  • Loading branch information
php-coder committed Jul 27, 2016
1 parent 970b73a commit 7f52ce2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions api/swagger-spec/oapi-v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -20051,8 +20051,7 @@
"id": "v1.BuildSource",
"description": "BuildSource is the SCM used for the build.",
"required": [
"type",
"secrets"
"type"
],
"properties": {
"type": {
Expand Down
2 changes: 1 addition & 1 deletion pkg/build/api/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ type BuildSource struct {

// secrets represents a list of secrets and their destinations that will
// be used only for the build.
Secrets []SecretBuildSource `json:"secrets" protobuf:"bytes,8,rep,name=secrets"`
Secrets []SecretBuildSource `json:"secrets,omitempty" protobuf:"bytes,8,rep,name=secrets"`
}

// ImageSource describes an image that is used as source for the build
Expand Down

0 comments on commit 7f52ce2

Please sign in to comment.