openapi-generator/samples/client/petstore/go/go-petstore/name.go
Valentin Valchev 96ed41a29c Fixed issue #4665 [go] required object parameters are marked omitempty. (#4682)
* 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.
2017-02-01 23:56:22 +08:00

24 lines
589 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
// Model for testing model name same as property name
type Name struct {
Name int32 `json:"name"`
SnakeCase int32 `json:"snake_case,omitempty"`
Property string `json:"property,omitempty"`
Var123Number int32 `json:"123Number,omitempty"`
}