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 TestAnyOf0 ¶
type TestAnyOf0 struct {
FieldA *string `json:"fieldA,omitempty" form:"fieldA,omitempty"`
}
#/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 {
FieldA *string `json:"fieldA,omitempty" form:"fieldA,omitempty"`
}
#/components/schemas/test/anyOf/1
func (*TestAnyOf1) ApplyDefaults ¶
func (s *TestAnyOf1) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
type TestAnyOf1FieldA ¶
type TestAnyOf1FieldA string
#/components/schemas/test/anyOf/1/properties/fieldA
const ( Foo TestAnyOf1FieldA = "foo" Bar TestAnyOf1FieldA = "bar" )
Click to show internal directories.
Click to hide internal directories.