Fix CRD validation error for 'items' field
Signed-off-by: He Xiaoxi <xxhe@alauda.io>
This commit is contained in:
15
vendor/github.com/go-openapi/strfmt/bson.go
generated
vendored
15
vendor/github.com/go-openapi/strfmt/bson.go
generated
vendored
@@ -125,3 +125,18 @@ func (id *ObjectId) SetBSON(raw bson.Raw) error {
|
||||
|
||||
return errors.New("couldn't unmarshal bson raw value as ObjectId")
|
||||
}
|
||||
|
||||
// DeepCopyInto copies the receiver and writes its value into out.
|
||||
func (id *ObjectId) DeepCopyInto(out *ObjectId) {
|
||||
*out = *id
|
||||
}
|
||||
|
||||
// DeepCopy copies the receiver into a new ObjectId.
|
||||
func (id *ObjectId) DeepCopy() *ObjectId {
|
||||
if id == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ObjectId)
|
||||
id.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
Reference in New Issue
Block a user