func (i *Items) WithMultipleOf(number float64) *Items {
	i.MultipleOf = &number
	return i
}
WithMultipleOf sets a multiple of value
package spec
import (
	"encoding/json"
	"github.com/go-openapi/swag"
)
type SimpleSchema struct {
	Type             string      `json:"type,omitempty"`
	Format           string      `json:"format,omitempty"`
	Items            *Items      `json:"items,omitempty"`
	CollectionFormat string      `json:"collectionFormat,omitempty"`
	Default          interface{} `json:"default,omitempty"`
}
func (s *SimpleSchema) TypeName() string {
	if s.Format != "" {
		return s.Format
	}
	return s.Type
}
func (s *SimpleSchema) ItemsTypeName() string {
	if s.Items == nil {
		return ""
	}
	return s.Items.TypeName()
}
type CommonValidations struct {
	Maximum          *float64      `json:"maximum,omitempty"`
	ExclusiveMaximum bool          `json:"exclusiveMaximum,omitempty"`
	Minimum          *float64      `json:"minimum,omitempty"`
	ExclusiveMinimum bool          `json:"exclusiveMinimum,omitempty"`
	MaxLength        *int64        `json:"maxLength,omitempty"`
	MinLength        *int64        `json:"minLength,omitempty"`
	Pattern          string        `json:"pattern,omitempty"`
	MaxItems         *int64        `json:"maxItems,omitempty"`
	MinItems         *int64        `json:"minItems,omitempty"`
	UniqueItems      bool          `json:"uniqueItems,omitempty"`
	MultipleOf       *float64      `json:"multipleOf,omitempty"`
	Enum             []interface{} `json:"enum,omitempty"`
}
type Items struct {
	Refable
	CommonValidations
	SimpleSchema
}
func NewItems() *Items {
	return &Items{}
}
func (i *Items) Typed(tpe, format string) *Items {
	i.Type = tpe
	i.Format = format
	return i
}
func (i *Items) CollectionOf(items *Items, format string) *Items {
	i.Type = "array"
	i.Items = items
	i.CollectionFormat = format
	return i
}
func (i *Items) WithDefault(defaultValue interface{}) *Items {
	i.Default = defaultValue
	return i
}
func (i *Items) WithMaxLength(max int64) *Items {
	i.MaxLength = &max
	return i
}
func (i *Items) WithMinLength(min int64) *Items {
	i.MinLength = &min
	return i
}
func (i *Items) WithPattern(pattern string) *Items {
	i.Pattern = pattern
	return i
}