Revision control
Copy as Markdown
/*
* OpenAPI Petstore
*
* This is a sample of Petstore application. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* API version: 1.0.0
*/
package openapi
// Pet - A pet for sale in the pet store
type Pet struct {
Id int64 `json:"id,omitempty"`
Category Category `json:"category,omitempty"`
Name string `json:"name"`
PhotoUrls []string `json:"photoUrls"`
Tags []Tag `json:"tags,omitempty"`
// pet status in the store
// Deprecated
Status PetStatus `json:"status,omitempty"`
Age int32 `json:"age,omitempty"`
// Do not use omitempty, because we use 0 as a valid value in tests
Patience int32 `json:"patience"`
}