Documentation
¶
Index ¶
Constants ¶
View Source
const DateFormat = "2006-01-02"
Variables ¶
This section is empty.
Functions ¶
func GetOpenAPISpecJSON ¶
GetOpenAPISpecJSON returns the raw OpenAPI spec as JSON bytes.
Types ¶
type Date ¶
func (Date) MarshalJSON ¶
func (Date) MarshalText ¶
MarshalText implements encoding.TextMarshaler for Date.
func (*Date) UnmarshalJSON ¶
func (*Date) UnmarshalText ¶
type Pet ¶
type Pet struct {
Born *AliasedDate `json:"born,omitempty" form:"born,omitempty"`
BornAt *Date `json:"born_at,omitempty" form:"born_at,omitempty"`
}
#/components/schemas/Pet
func (*Pet) ApplyDefaults ¶
func (s *Pet) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
Click to show internal directories.
Click to hide internal directories.