Documentation
¶
Index ¶
- func GetOpenAPISpecJSON() ([]byte, error)
- type Cat
- type Dog
- type GetPets200ResponseJSON1
- type GetPets200ResponseJSON2
- func (t *GetPets200ResponseJSON2) ApplyDefaults()
- func (t GetPets200ResponseJSON2) AsCat() (Cat, error)
- func (t GetPets200ResponseJSON2) AsDog() (Dog, error)
- func (t GetPets200ResponseJSON2) AsRat() (Rat, error)
- func (t *GetPets200ResponseJSON2) FromCat(v Cat) error
- func (t *GetPets200ResponseJSON2) FromDog(v Dog) error
- func (t *GetPets200ResponseJSON2) FromRat(v Rat) error
- func (t GetPets200ResponseJSON2) MarshalJSON() ([]byte, error)
- func (t *GetPets200ResponseJSON2) MergeCat(v Cat) error
- func (t *GetPets200ResponseJSON2) MergeDog(v Dog) error
- func (t *GetPets200ResponseJSON2) MergeRat(v Rat) error
- func (t *GetPets200ResponseJSON2) UnmarshalJSON(b []byte) error
- type GetPetsJSONResponse
- type Rat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOpenAPISpecJSON ¶
GetOpenAPISpecJSON returns the raw OpenAPI spec as JSON bytes.
Types ¶
type Cat ¶
type Cat struct {
ID *string `form:"id,omitempty" json:"id,omitempty"`
Name *string `form:"name,omitempty" json:"name,omitempty"`
Breed *string `form:"breed,omitempty" json:"breed,omitempty"`
Color *string `form:"color,omitempty" json:"color,omitempty"`
Purrs *bool `form:"purrs,omitempty" json:"purrs,omitempty"`
}
#/components/schemas/Cat This is a cat
func (*Cat) ApplyDefaults ¶
func (s *Cat) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
type Dog ¶
type Dog struct {
ID *string `form:"id,omitempty" json:"id,omitempty"`
Name *string `form:"name,omitempty" json:"name,omitempty"`
Breed *string `form:"breed,omitempty" json:"breed,omitempty"`
Color *string `form:"color,omitempty" json:"color,omitempty"`
Barks *bool `form:"barks,omitempty" json:"barks,omitempty"`
}
#/components/schemas/Dog This is a dog
func (*Dog) ApplyDefaults ¶
func (s *Dog) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
type GetPets200ResponseJSON1 ¶
type GetPets200ResponseJSON1 = []GetPets200ResponseJSON2
#/paths//pets/get/responses/200/content/application/json/schema/properties/data
type GetPets200ResponseJSON2 ¶
type GetPets200ResponseJSON2 struct {
// contains filtered or unexported fields
}
func (*GetPets200ResponseJSON2) ApplyDefaults ¶
func (t *GetPets200ResponseJSON2) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
func (GetPets200ResponseJSON2) AsCat ¶
func (t GetPets200ResponseJSON2) AsCat() (Cat, error)
AsCat returns the union data inside the GetPets200ResponseJSON2 as a Cat.
func (GetPets200ResponseJSON2) AsDog ¶
func (t GetPets200ResponseJSON2) AsDog() (Dog, error)
AsDog returns the union data inside the GetPets200ResponseJSON2 as a Dog.
func (GetPets200ResponseJSON2) AsRat ¶
func (t GetPets200ResponseJSON2) AsRat() (Rat, error)
AsRat returns the union data inside the GetPets200ResponseJSON2 as a Rat.
func (*GetPets200ResponseJSON2) FromCat ¶
func (t *GetPets200ResponseJSON2) FromCat(v Cat) error
FromCat overwrites any union data inside the GetPets200ResponseJSON2 as the provided Cat.
func (*GetPets200ResponseJSON2) FromDog ¶
func (t *GetPets200ResponseJSON2) FromDog(v Dog) error
FromDog overwrites any union data inside the GetPets200ResponseJSON2 as the provided Dog.
func (*GetPets200ResponseJSON2) FromRat ¶
func (t *GetPets200ResponseJSON2) FromRat(v Rat) error
FromRat overwrites any union data inside the GetPets200ResponseJSON2 as the provided Rat.
func (GetPets200ResponseJSON2) MarshalJSON ¶
func (t GetPets200ResponseJSON2) MarshalJSON() ([]byte, error)
func (*GetPets200ResponseJSON2) MergeCat ¶
func (t *GetPets200ResponseJSON2) MergeCat(v Cat) error
MergeCat performs a merge with any union data inside the GetPets200ResponseJSON2, using the provided Cat.
func (*GetPets200ResponseJSON2) MergeDog ¶
func (t *GetPets200ResponseJSON2) MergeDog(v Dog) error
MergeDog performs a merge with any union data inside the GetPets200ResponseJSON2, using the provided Dog.
func (*GetPets200ResponseJSON2) MergeRat ¶
func (t *GetPets200ResponseJSON2) MergeRat(v Rat) error
MergeRat performs a merge with any union data inside the GetPets200ResponseJSON2, using the provided Rat.
func (*GetPets200ResponseJSON2) UnmarshalJSON ¶
func (t *GetPets200ResponseJSON2) UnmarshalJSON(b []byte) error
type GetPetsJSONResponse ¶
type GetPetsJSONResponse struct {
Data []GetPets200ResponseJSON2 `form:"data,omitempty" json:"data,omitempty"`
}
#/paths//pets/get/responses/200/content/application/json/schema
func (*GetPetsJSONResponse) ApplyDefaults ¶
func (s *GetPetsJSONResponse) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
type Rat ¶
type Rat struct {
ID *string `form:"id,omitempty" json:"id,omitempty"`
Name *string `form:"name,omitempty" json:"name,omitempty"`
Color *string `form:"color,omitempty" json:"color,omitempty"`
Squeaks *bool `form:"squeaks,omitempty" json:"squeaks,omitempty"`
}
#/components/schemas/Rat This is a rat
func (*Rat) ApplyDefaults ¶
func (s *Rat) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.