Skip to content

Commit

Permalink
Remove the validate for bool options
Browse files Browse the repository at this point in the history
  • Loading branch information
hwchiu committed Jul 27, 2018
1 parent 547f322 commit 7f703b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entity/pod.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ type Pod struct {
Volumes []PodVolume `bson:"volumes,omitempty" json:"volumes" validate:"required,dive,required"`
Networks []PodNetwork `bson:"networks,omitempty" json:"networks" validate:"required,dive,required"`
RestartPolicy string `bson:"restartPolicy" json:"restartPolicy" validate:"required,eq=Always|eq=OnFailure|eq=Never`
Capability bool `bson:"capability" json:"Capability" validate:"required"`
HostNetwork bool `bson:"hostNetwork" json:"hostNetwork" validate:"required"`
Capability bool `bson:"capability" json:"Capability" validate:"-"`
HostNetwork bool `bson:"hostNetwork" json:"hostNetwork" validate:"-"`
}

// GetCollection - get model mongo collection name.
Expand Down

0 comments on commit 7f703b2

Please sign in to comment.