Documentation
¶
Index ¶
- func GetOpenAPISpecJSON() ([]byte, error)
- type GetTestParameter
- type Test
- func (t *Test) ApplyDefaults()
- func (t Test) AsTestAnyOf0() (TestAnyOf0, error)
- func (t Test) AsTestAnyOf1() (TestAnyOf1, error)
- func (t *Test) FromTestAnyOf0(v TestAnyOf0) error
- func (t *Test) FromTestAnyOf1(v TestAnyOf1) error
- func (t Test) MarshalJSON() ([]byte, error)
- func (t *Test) MergeTestAnyOf0(v TestAnyOf0) error
- func (t *Test) MergeTestAnyOf1(v TestAnyOf1) error
- func (t *Test) UnmarshalJSON(b []byte) error
- type Test2
- func (t *Test2) ApplyDefaults()
- func (t Test2) AsInt0() (int, error)
- func (t Test2) AsString1() (string, error)
- func (t *Test2) FromInt0(v int) error
- func (t *Test2) FromString1(v string) error
- func (t Test2) MarshalJSON() ([]byte, error)
- func (t *Test2) MergeInt0(v int) error
- func (t *Test2) MergeString1(v string) error
- func (t *Test2) UnmarshalJSON(b []byte) error
- type TestAnyOf0
- type TestAnyOf1
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 {
// contains filtered or unexported fields
}
func (*Test) ApplyDefaults ¶
func (t *Test) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
func (Test) AsTestAnyOf0 ¶
func (t Test) AsTestAnyOf0() (TestAnyOf0, error)
AsTestAnyOf0 returns the union data inside the Test as a TestAnyOf0.
func (Test) AsTestAnyOf1 ¶
func (t Test) AsTestAnyOf1() (TestAnyOf1, error)
AsTestAnyOf1 returns the union data inside the Test as a TestAnyOf1.
func (*Test) FromTestAnyOf0 ¶
func (t *Test) FromTestAnyOf0(v TestAnyOf0) error
FromTestAnyOf0 overwrites any union data inside the Test as the provided TestAnyOf0.
func (*Test) FromTestAnyOf1 ¶
func (t *Test) FromTestAnyOf1(v TestAnyOf1) error
FromTestAnyOf1 overwrites any union data inside the Test as the provided TestAnyOf1.
func (Test) MarshalJSON ¶
func (*Test) MergeTestAnyOf0 ¶
func (t *Test) MergeTestAnyOf0(v TestAnyOf0) error
MergeTestAnyOf0 performs a merge with any union data inside the Test, using the provided TestAnyOf0.
func (*Test) MergeTestAnyOf1 ¶
func (t *Test) MergeTestAnyOf1(v TestAnyOf1) error
MergeTestAnyOf1 performs a merge with any union data inside the Test, using the provided TestAnyOf1.
func (*Test) UnmarshalJSON ¶
type Test2 ¶
type Test2 struct {
// contains filtered or unexported fields
}
func (*Test2) ApplyDefaults ¶
func (t *Test2) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
func (*Test2) FromString1 ¶
FromString1 overwrites any union data inside the Test2 as the provided string.
func (Test2) MarshalJSON ¶
func (*Test2) MergeInt0 ¶
MergeInt0 performs a merge with any union data inside the Test2, using the provided int.
func (*Test2) MergeString1 ¶
MergeString1 performs a merge with any union data inside the Test2, using the provided string.
func (*Test2) UnmarshalJSON ¶
type TestAnyOf0 ¶
type TestAnyOf0 struct {
Item1 string `form:"item1" json:"item1"`
Item2 string `form:"item2" json:"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 `form:"item2,omitempty" json:"item2,omitempty"`
Item3 *string `form:"item3,omitempty" json:"item3,omitempty"`
}
#/components/schemas/test/anyOf/1
func (*TestAnyOf1) ApplyDefaults ¶
func (s *TestAnyOf1) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.