Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOpenAPISpecJSON ¶
GetOpenAPISpecJSON returns the raw OpenAPI spec as JSON bytes.
Types ¶
type Test ¶
type Test struct {
TestAnyOf0 *TestAnyOf0
TestAnyOf1 *TestAnyOf1
}
#/components/schemas/test
func (*Test) ApplyDefaults ¶
func (u *Test) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
func (Test) MarshalJSON ¶
func (*Test) UnmarshalJSON ¶
type Test2 ¶
#/components/schemas/test2
func (*Test2) ApplyDefaults ¶
func (u *Test2) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
func (Test2) MarshalJSON ¶
func (*Test2) UnmarshalJSON ¶
type TestAnyOf0 ¶
type TestAnyOf0 struct {
Item1 string `json:"item1" form:"item1"`
Item2 string `json:"item2" form:"item2"`
}
#/components/schemas/test/anyOf/0
func (*TestAnyOf0) ApplyDefaults ¶
func (s *TestAnyOf0) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
type TestAnyOf1 ¶
type TestAnyOf1 struct {
Item2 *string `json:"item2,omitempty" form:"item2,omitempty"`
Item3 *string `json:"item3,omitempty" form:"item3,omitempty"`
}
#/components/schemas/test/anyOf/1
func (*TestAnyOf1) ApplyDefaults ¶
func (s *TestAnyOf1) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
Click to show internal directories.
Click to hide internal directories.