Documentation
¶
Index ¶
- Constants
- func ParseArrayTypes(taggers []parsers.TagParser, name string, expr ast.Expr, items *spec.Items, ...) ([]parsers.TagParser, error)
- func Taggers(items *spec.Items, level int) []parsers.TagParser
- type Typable
- func (pt Typable) AddExtension(key string, value any)
- func (pt Typable) In() string
- func (pt Typable) Items() ifaces.SwaggerTypable
- func (pt Typable) Level() int
- func (pt Typable) Schema() *oaispec.Schema
- func (pt Typable) SetRef(ref oaispec.Ref)
- func (pt Typable) Typed(tpe, format string)
- func (pt Typable) WithEnum(values ...any)
- func (pt Typable) WithEnumDescription(_ string)
- type Validations
- func (sv Validations) SetCollectionFormat(val string)
- func (sv Validations) SetDefault(val any)
- func (sv Validations) SetEnum(val string)
- func (sv Validations) SetExample(val any)
- func (sv Validations) SetMaxItems(val int64)
- func (sv Validations) SetMaxLength(val int64)
- func (sv Validations) SetMaximum(val float64, exclusive bool)
- func (sv Validations) SetMinItems(val int64)
- func (sv Validations) SetMinLength(val int64)
- func (sv Validations) SetMinimum(val float64, exclusive bool)
- func (sv Validations) SetMultipleOf(val float64)
- func (sv Validations) SetPattern(val string)
- func (sv Validations) SetUnique(val bool)
Constants ¶
View Source
const (
// ErrItems is the sentinel error for all errors originating from the items package.
ErrItems itemsError = "builders:items"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Typable ¶
type Typable struct {
// contains filtered or unexported fields
}
func (Typable) AddExtension ¶
func (Typable) Items ¶
func (pt Typable) Items() ifaces.SwaggerTypable
func (Typable) WithEnumDescription ¶
type Validations ¶
type Validations struct {
// contains filtered or unexported fields
}
func (Validations) SetCollectionFormat ¶
func (sv Validations) SetCollectionFormat(val string)
func (Validations) SetDefault ¶
func (sv Validations) SetDefault(val any)
func (Validations) SetEnum ¶
func (sv Validations) SetEnum(val string)
func (Validations) SetExample ¶
func (sv Validations) SetExample(val any)
func (Validations) SetMaxItems ¶
func (sv Validations) SetMaxItems(val int64)
func (Validations) SetMaxLength ¶
func (sv Validations) SetMaxLength(val int64)
func (Validations) SetMaximum ¶
func (sv Validations) SetMaximum(val float64, exclusive bool)
func (Validations) SetMinItems ¶
func (sv Validations) SetMinItems(val int64)
func (Validations) SetMinLength ¶
func (sv Validations) SetMinLength(val int64)
func (Validations) SetMinimum ¶
func (sv Validations) SetMinimum(val float64, exclusive bool)
func (Validations) SetMultipleOf ¶
func (sv Validations) SetMultipleOf(val float64)
func (Validations) SetPattern ¶
func (sv Validations) SetPattern(val string)
func (Validations) SetUnique ¶
func (sv Validations) SetUnique(val bool)
Click to show internal directories.
Click to hide internal directories.