upgrade swagger version to v0.27.0 (#798)

This commit is contained in:
Harshavardhana
2021-06-08 12:35:39 -07:00
committed by GitHub
parent 6f0df68200
commit 6791631904
400 changed files with 5257 additions and 1128 deletions

View File

@@ -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
}