forked from loafle/openapi-generator-original
* [go][model] Use pointers to avoid circular references Signed-off-by: weiyang <weiyang.ones@gmail.com> * [samples][go][model] Use pointers to avoid circular references Signed-off-by: weiyang <weiyang.ones@gmail.com>
28 lines
620 B
Go
28 lines
620 B
Go
/*
|
|
* Swagger Petstore
|
|
*
|
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
|
*
|
|
* OpenAPI spec version: 1.0.0
|
|
* Contact: apiteam@swagger.io
|
|
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
*/
|
|
|
|
package petstore
|
|
|
|
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
|
|
Status string `json:"status,omitempty"`
|
|
}
|