mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 19:08:52 +00:00
96ed41a29c
* 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.
24 lines
589 B
Go
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"`
|
|
}
|