forked from loafle/openapi-generator-original
go-server: Support additional properties as command line arguments (#1555)
* Support additionalPorperties as command line arguments * Move Readme into main dir * Update Mustache * Update sample * Test coverage * Move cli options * Revert options * Remove tabs * openapi 3 examples * Update readme * serverPort to int * Move package version cli option to AbstractGoCodegen * Update samples * Tab to spaces * Update docs and sample with xml * Manual update doc * Another doc try * Regenerate go-gin-server doc
This commit is contained in:
committed by
William Cheng
parent
5346eb4c34
commit
c918d7ad64
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* API version: 1.0.0
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
package petstoreserver
|
||||
|
||||
type InlineObject struct {
|
||||
|
||||
// Updated name of the pet
|
||||
Name string `json:"name,omitempty"`
|
||||
|
||||
// Updated status of the pet
|
||||
Status string `json:"status,omitempty"`
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* OpenAPI Petstore
|
||||
*
|
||||
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
|
||||
*
|
||||
* API version: 1.0.0
|
||||
* Generated by: OpenAPI Generator (https://openapi-generator.tech)
|
||||
*/
|
||||
|
||||
package petstoreserver
|
||||
|
||||
import (
|
||||
"os"
|
||||
)
|
||||
|
||||
type InlineObject1 struct {
|
||||
|
||||
// Additional data to pass to server
|
||||
AdditionalMetadata string `json:"additionalMetadata,omitempty"`
|
||||
|
||||
// file to upload
|
||||
File **os.File `json:"file,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user