forked from loafle/openapi-generator-original
* Update codegen config * Add templates for Go Echo openapi-codegen * Add the yaml config file! * Add GoEchoServerCodegen.java. This is the first iteration, it works but probably needs a lot of improvements. * Update codegen, adds some comments. * Update GoEchoServerCodegen.java * Update GoEchoServerCodegen.java * Update GoEchoServerCodegen.java and related yaml file * Add the result of generate-samples.sh for CI purposes. * Add the result of bin/utils/ensure-up-to-date for CI purposes. * Update go-echo-server-petstore-new.yaml Fix the outputdir * Update in regard to result of ./bin/generate-samples.sh * Update in regard to result of ./bin/generate-samples.sh * Remove wrongly generated files * Add correct generated files. * Add changes regarding /bin/utils/ensure-up-to-date * Update templates to include comments. * Update/add result of ./bin/generate-samples.sh and ./bin/utils/export_docs_generators.sh
19 lines
333 B
Go
19 lines
333 B
Go
package models
|
|
|
|
// 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
|
|
Status string `json:"status,omitempty"`
|
|
}
|