forked from loafle/openapi-generator-original
* Fixed issue #4665 [go] required object parameters are marked omitempty. * Run ./bin/go-petstore.sh as suggested by @wing328. Please note, that there are quite few changes, that doesn’t come from the diff I’ve applied. Seems the script wasn’t run on the previous commit.
21 lines
485 B
Go
21 lines
485 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 Cat struct {
|
|
|
|
ClassName string `json:"className"`
|
|
|
|
Color string `json:"color,omitempty"`
|
|
|
|
Declawed bool `json:"declawed,omitempty"`
|
|
}
|