upgrade swagger version to v0.27.0 (#798)
This commit is contained in:
@@ -23,6 +23,7 @@ package models
|
||||
// Editing this file might prove futile when you re-run the swagger generate command
|
||||
|
||||
import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
|
||||
"github.com/go-openapi/errors"
|
||||
@@ -35,6 +36,11 @@ import (
|
||||
// swagger:model objectRetentionUnit
|
||||
type ObjectRetentionUnit string
|
||||
|
||||
func NewObjectRetentionUnit(value ObjectRetentionUnit) *ObjectRetentionUnit {
|
||||
v := value
|
||||
return &v
|
||||
}
|
||||
|
||||
const (
|
||||
|
||||
// ObjectRetentionUnitDays captures enum value "days"
|
||||
@@ -78,3 +84,8 @@ func (m ObjectRetentionUnit) Validate(formats strfmt.Registry) error {
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// ContextValidate validates this object retention unit based on context it is used
|
||||
func (m ObjectRetentionUnit) ContextValidate(ctx context.Context, formats strfmt.Registry) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user