Documentation
¶
Overview ¶
Package petstore provides generated types for the Petstore API.
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 Error ¶
type Error struct {
// Error code
Code int32 `json:"code" form:"code"`
// Error message
Message string `json:"message" form:"message"`
}
#/components/schemas/Error
func (*Error) ApplyDefaults ¶
func (s *Error) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
type FindPetsJSONResponse ¶
type FindPetsJSONResponse = []Pet
#/paths//pets/get/responses/200/content/application/json/schema
type NewPet ¶
type NewPet struct {
// Name of the pet
Name string `json:"name" form:"name"`
// Type of the pet
Tag *string `json:"tag,omitempty" form:"tag,omitempty"`
}
#/components/schemas/NewPet
func (*NewPet) ApplyDefaults ¶
func (s *NewPet) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
type Pet ¶
type Pet struct {
// Name of the pet
Name string `json:"name" form:"name"`
// Type of the pet
Tag *string `json:"tag,omitempty" form:"tag,omitempty"`
// Unique id of the pet
ID int64 `json:"id" form:"id"`
}
#/components/schemas/Pet
func (*Pet) ApplyDefaults ¶
func (s *Pet) ApplyDefaults()
ApplyDefaults sets default values for fields that are nil.
Click to show internal directories.
Click to hide internal directories.