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 {
FieldA *TestFieldA `json:"fieldA,omitempty" form:"fieldA,omitempty"`
FieldB *TestFieldB `json:"fieldB,omitempty" form:"fieldB,omitempty"`
FieldC *TestFieldC `json:"fieldC,omitempty" form:"fieldC,omitempty"`
}
#/components/schemas/test
func (*Test) ApplyDefaults ¶
func (s *Test) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
type TestFieldA ¶
type TestFieldA struct {
String0 *string
TestFieldAAnyOf1 *TestFieldAAnyOf1
}
#/components/schemas/test/properties/fieldA
func (*TestFieldA) ApplyDefaults ¶
func (u *TestFieldA) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
func (TestFieldA) MarshalJSON ¶
func (u TestFieldA) MarshalJSON() ([]byte, error)
func (*TestFieldA) UnmarshalJSON ¶
func (u *TestFieldA) UnmarshalJSON(data []byte) error
type TestFieldAAnyOf1 ¶
type TestFieldAAnyOf1 string
#/components/schemas/test/properties/fieldA/anyOf/1
const ( TestFieldAAnyOf1Foo TestFieldAAnyOf1 = "foo" TestFieldAAnyOf1Bar TestFieldAAnyOf1 = "bar" )
type TestFieldB ¶
type TestFieldB struct {
}
#/components/schemas/test/properties/fieldB
func (*TestFieldB) ApplyDefaults ¶
func (s *TestFieldB) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
type TestFieldC ¶
type TestFieldC struct {
String0 *string
TestFieldCOneOf1 *TestFieldCOneOf1
}
#/components/schemas/test/properties/fieldC
func (*TestFieldC) ApplyDefaults ¶
func (u *TestFieldC) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
func (TestFieldC) MarshalJSON ¶
func (u TestFieldC) MarshalJSON() ([]byte, error)
func (*TestFieldC) UnmarshalJSON ¶
func (u *TestFieldC) UnmarshalJSON(data []byte) error
type TestFieldCOneOf1 ¶
type TestFieldCOneOf1 string
#/components/schemas/test/properties/fieldC/oneOf/1
const ( TestFieldCOneOf1Foo TestFieldCOneOf1 = "foo" TestFieldCOneOf1Bar TestFieldCOneOf1 = "bar" )
Click to show internal directories.
Click to hide internal directories.