diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenParameter.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenParameter.java index 874ac93d152f..2266cc48f31b 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenParameter.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/CodegenParameter.java @@ -51,6 +51,7 @@ public class CodegenParameter implements IJsonSchemaValidationProperties { public Map vendorExtensions = new HashMap(); public boolean hasValidation; public boolean isNullable; + public boolean isDeprecated; /** * Determines whether this parameter is mandatory. If the parameter is in "path", * this property is required and its value MUST be true. Otherwise, the property @@ -179,6 +180,7 @@ public CodegenParameter copy() { } output.hasValidation = this.hasValidation; output.isNullable = this.isNullable; + output.isDeprecated = this.isDeprecated; output.isBinary = this.isBinary; output.isByteArray = this.isByteArray; output.isString = this.isString; @@ -211,7 +213,7 @@ public CodegenParameter copy() { @Override public int hashCode() { - return Objects.hash(isFormParam, isQueryParam, isPathParam, isHeaderParam, isCookieParam, isBodyParam, isContainer, isCollectionFormatMulti, isPrimitiveType, isModel, isExplode, baseName, paramName, dataType, datatypeWithEnum, dataFormat, collectionFormat, description, unescapedDescription, baseType, defaultValue, enumName, style, isDeepObject, example, jsonSchema, isString, isNumeric, isInteger, isLong, isNumber, isFloat, isDouble, isDecimal, isByteArray, isBinary, isBoolean, isDate, isDateTime, isUuid, isUri, isEmail, isFreeFormObject, isAnyType, isArray, isMap, isFile, isEnum, _enum, allowableValues, items, mostInnerItems, additionalProperties, vars, requiredVars, vendorExtensions, hasValidation, getMaxProperties(), getMinProperties(), isNullable, required, getMaximum(), getExclusiveMaximum(), getMinimum(), getExclusiveMinimum(), getMaxLength(), getMinLength(), getPattern(), getMaxItems(), getMinItems(), getUniqueItems(), contentType, multipleOf, isNull, additionalPropertiesIsAnyType, hasVars, hasRequired, isShort, isUnboundedInteger); + return Objects.hash(isFormParam, isQueryParam, isPathParam, isHeaderParam, isCookieParam, isBodyParam, isContainer, isCollectionFormatMulti, isPrimitiveType, isModel, isExplode, baseName, paramName, dataType, datatypeWithEnum, dataFormat, collectionFormat, description, unescapedDescription, baseType, defaultValue, enumName, style, isDeepObject, example, jsonSchema, isString, isNumeric, isInteger, isLong, isNumber, isFloat, isDouble, isDecimal, isByteArray, isBinary, isBoolean, isDate, isDateTime, isUuid, isUri, isEmail, isFreeFormObject, isAnyType, isArray, isMap, isFile, isEnum, _enum, allowableValues, items, mostInnerItems, additionalProperties, vars, requiredVars, vendorExtensions, hasValidation, getMaxProperties(), getMinProperties(), isNullable, isDeprecated, required, getMaximum(), getExclusiveMaximum(), getMinimum(), getExclusiveMinimum(), getMaxLength(), getMinLength(), getPattern(), getMaxItems(), getMinItems(), getUniqueItems(), contentType, multipleOf, isNull, additionalPropertiesIsAnyType, hasVars, hasRequired, isShort, isUnboundedInteger); } @Override @@ -256,6 +258,7 @@ public boolean equals(Object o) { isEnum == that.isEnum && hasValidation == that.hasValidation && isNullable == that.isNullable && + isDeprecated == that.isDeprecated && required == that.required && isNull == that.isNull && getAdditionalPropertiesIsAnyType() == that.getAdditionalPropertiesIsAnyType() && @@ -365,6 +368,7 @@ public String toString() { sb.append(", maxProperties=").append(maxProperties); sb.append(", minProperties=").append(minProperties); sb.append(", isNullable=").append(isNullable); + sb.append(", isDeprecated=").append(isDeprecated); sb.append(", required=").append(required); sb.append(", maximum='").append(maximum).append('\''); sb.append(", exclusiveMaximum=").append(exclusiveMaximum); diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java index b17b449893f8..cb8f6ed8d882 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/DefaultCodegen.java @@ -4334,6 +4334,9 @@ public CodegenParameter fromParameter(Parameter parameter, Set imports) if (parameter.getRequired() != null) { codegenParameter.required = parameter.getRequired(); } + if (parameter.getDeprecated() != null) { + codegenParameter.isDeprecated = parameter.getDeprecated(); + } codegenParameter.jsonSchema = Json.pretty(parameter); if (GlobalSettings.getProperty("debugParser") != null) { diff --git a/modules/openapi-generator/src/main/resources/go-echo-server/api.mustache b/modules/openapi-generator/src/main/resources/go-echo-server/api.mustache index 9ac9ad29838a..6045cae08160 100644 --- a/modules/openapi-generator/src/main/resources/go-echo-server/api.mustache +++ b/modules/openapi-generator/src/main/resources/go-echo-server/api.mustache @@ -7,6 +7,9 @@ import ( ){{#operation}} // {{nickname}} - {{{summary}}} +{{#isDeprecated}} +// Deprecated +{{/isDeprecated}} func (c *Container) {{operationId}}(ctx echo.Context) error { return ctx.JSON(http.StatusOK, models.HelloWorld { Message: "Hello World", diff --git a/modules/openapi-generator/src/main/resources/go-echo-server/main.mustache b/modules/openapi-generator/src/main/resources/go-echo-server/main.mustache index ef0421cdd111..e8654aaa3f27 100644 --- a/modules/openapi-generator/src/main/resources/go-echo-server/main.mustache +++ b/modules/openapi-generator/src/main/resources/go-echo-server/main.mustache @@ -17,7 +17,7 @@ func main() { e.Use(middleware.Recover()) {{#apiInfo}}{{#apis}}{{#operations}}{{#operation}} - // {{nickname}} - {{{summary}}} + // {{nickname}} - {{{summary}}}{{#isDeprecated}} (deprecated){{/isDeprecated}} e.{{httpMethod.toUpperCase}}("{{{basePathWithoutHost}}}{{{path}}}", c.{{operationId}}) {{/operation}}{{/operations}}{{/apis}}{{/apiInfo}} diff --git a/modules/openapi-generator/src/main/resources/go-echo-server/model.mustache b/modules/openapi-generator/src/main/resources/go-echo-server/model.mustache index ef59462f11ea..433d848254b2 100644 --- a/modules/openapi-generator/src/main/resources/go-echo-server/model.mustache +++ b/modules/openapi-generator/src/main/resources/go-echo-server/model.mustache @@ -18,6 +18,9 @@ const ( type {{classname}} struct { {{#vars}}{{#description}} // {{{description}}}{{/description}} + {{#deprecated}} + // Deprecated + {{/deprecated}} {{name}} {{#isNullable}}*{{/isNullable}}{{{dataType}}} `json:"{{baseName}}{{^required}},omitempty{{/required}}"{{#vendorExtensions.x-go-custom-tag}} {{{.}}}{{/vendorExtensions.x-go-custom-tag}}` {{/vars}} }{{/isEnum}}{{/model}}{{/models}} diff --git a/modules/openapi-generator/src/main/resources/go-gin-server/controller-api.mustache b/modules/openapi-generator/src/main/resources/go-gin-server/controller-api.mustache index 36eaf59209f9..daad0d7dfff5 100644 --- a/modules/openapi-generator/src/main/resources/go-gin-server/controller-api.mustache +++ b/modules/openapi-generator/src/main/resources/go-gin-server/controller-api.mustache @@ -9,6 +9,9 @@ import ( ){{#operation}} // {{nickname}} - {{{summary}}} +{{#isDeprecated}} +// Deprecated +{{/isDeprecated}} func {{nickname}}(c *gin.Context) { c.JSON(http.StatusOK, gin.H{}) }{{/operation}}{{/operations}} diff --git a/modules/openapi-generator/src/main/resources/go-gin-server/model.mustache b/modules/openapi-generator/src/main/resources/go-gin-server/model.mustache index 2f67ffafc3b8..14993caf01a1 100644 --- a/modules/openapi-generator/src/main/resources/go-gin-server/model.mustache +++ b/modules/openapi-generator/src/main/resources/go-gin-server/model.mustache @@ -19,6 +19,9 @@ const ( type {{classname}} struct { {{#vars}}{{#description}} // {{{description}}}{{/description}} + {{#deprecated}} + // Deprecated + {{/deprecated}} {{name}} {{#isNullable}}*{{/isNullable}}{{{dataType}}} `json:"{{baseName}}{{^required}},omitempty{{/required}}"{{#vendorExtensions.x-go-custom-tag}} {{{.}}}{{/vendorExtensions.x-go-custom-tag}}` {{/vars}} }{{/isEnum}}{{/model}}{{/models}} diff --git a/modules/openapi-generator/src/main/resources/go-server/api.mustache b/modules/openapi-generator/src/main/resources/go-server/api.mustache index 8249ffb38f66..f08e1b270386 100644 --- a/modules/openapi-generator/src/main/resources/go-server/api.mustache +++ b/modules/openapi-generator/src/main/resources/go-server/api.mustache @@ -13,6 +13,9 @@ import ( // The {{classname}}Router implementation should parse necessary information from the http request, // pass the data to a {{classname}}Servicer to perform the required actions, then write the service results to the http response. type {{classname}}Router interface { {{#operations}}{{#operation}} + {{#isDeprecated}} + // Deprecated + {{/isDeprecated}} {{operationId}}(http.ResponseWriter, *http.Request){{/operation}}{{/operations}} }{{/apis}}{{/apiInfo}}{{#apiInfo}}{{#apis}} @@ -22,5 +25,8 @@ type {{classname}}Router interface { {{#operations}}{{#operation}} // while the service implementation can ignored with the .openapi-generator-ignore file // and updated with the logic required for the API. type {{classname}}Servicer interface { {{#operations}}{{#operation}} + {{#isDeprecated}} + // Deprecated + {{/isDeprecated}} {{operationId}}(context.Context{{#allParams}}, {{dataType}}{{/allParams}}) (ImplResponse, error){{/operation}}{{/operations}} }{{/apis}}{{/apiInfo}} diff --git a/modules/openapi-generator/src/main/resources/go-server/controller-api.mustache b/modules/openapi-generator/src/main/resources/go-server/controller-api.mustache index 7a7b12623087..2bfa53cd5035 100644 --- a/modules/openapi-generator/src/main/resources/go-server/controller-api.mustache +++ b/modules/openapi-generator/src/main/resources/go-server/controller-api.mustache @@ -59,6 +59,9 @@ func (c *{{classname}}Controller) Routes() Routes { }{{#operations}}{{#operation}} // {{nickname}} - {{{summary}}} +{{#isDeprecated}} +// Deprecated +{{/isDeprecated}} func (c *{{classname}}Controller) {{nickname}}(w http.ResponseWriter, r *http.Request) { {{#hasFormParams}} {{#isMultipart}} diff --git a/modules/openapi-generator/src/main/resources/go-server/model.mustache b/modules/openapi-generator/src/main/resources/go-server/model.mustache index 89860a8fe72e..afcfcf7338e0 100644 --- a/modules/openapi-generator/src/main/resources/go-server/model.mustache +++ b/modules/openapi-generator/src/main/resources/go-server/model.mustache @@ -29,6 +29,9 @@ type {{classname}} struct { {{/parent}} {{#vars}}{{#description}} // {{{description}}}{{/description}} + {{#deprecated}} + // Deprecated + {{/deprecated}} {{name}} {{#isNullable}}*{{/isNullable}}{{{dataType}}} `json:"{{baseName}}{{^required}},omitempty{{/required}}"{{#vendorExtensions.x-go-custom-tag}} {{{.}}}{{/vendorExtensions.x-go-custom-tag}}` {{/vars}} }{{/isEnum}}{{/model}}{{/models}} diff --git a/modules/openapi-generator/src/main/resources/go-server/service.mustache b/modules/openapi-generator/src/main/resources/go-server/service.mustache index a5664b0c3504..2df7298b17ba 100644 --- a/modules/openapi-generator/src/main/resources/go-server/service.mustache +++ b/modules/openapi-generator/src/main/resources/go-server/service.mustache @@ -20,6 +20,9 @@ func New{{classname}}Service() {{classname}}Servicer { }{{#operations}}{{#operation}} // {{nickname}} - {{summary}} +{{#isDeprecated}} +// Deprecated +{{/isDeprecated}} func (s *{{classname}}Service) {{nickname}}(ctx context.Context{{#allParams}}, {{paramName}} {{dataType}}{{/allParams}}) (ImplResponse, error) { // TODO - update {{nickname}} with the required logic for this service method. // Add {{classFilename}}_service.go to the .openapi-generator-ignore to avoid overwriting this service implementation when updating open api generation. diff --git a/modules/openapi-generator/src/main/resources/go/README.mustache b/modules/openapi-generator/src/main/resources/go/README.mustache index 4e9577633d47..de164be1cf81 100644 --- a/modules/openapi-generator/src/main/resources/go/README.mustache +++ b/modules/openapi-generator/src/main/resources/go/README.mustache @@ -86,7 +86,7 @@ All URIs are relative to *{{basePath}}* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -{{#apiInfo}}{{#apis}}{{#operations}}{{#operation}}*{{classname}}* | [**{{operationId}}**]({{apiDocPath}}{{classname}}.md#{{operationIdLowerCase}}) | **{{httpMethod}}** {{path}} | {{#summary}}{{summary}}{{/summary}} +{{#apiInfo}}{{#apis}}{{#operations}}{{#operation}}*{{classname}}* | [**{{operationId}}**]({{apiDocPath}}{{classname}}.md#{{operationIdLowerCase}}) | **{{httpMethod}}** {{path}} | {{summary}} {{/operation}}{{/operations}}{{/apis}}{{/apiInfo}} ## Documentation For Models diff --git a/modules/openapi-generator/src/main/resources/go/api.mustache b/modules/openapi-generator/src/main/resources/go/api.mustache index 3fd1db0c66c2..8b93e7c6b08a 100644 --- a/modules/openapi-generator/src/main/resources/go/api.mustache +++ b/modules/openapi-generator/src/main/resources/go/api.mustache @@ -22,20 +22,27 @@ type {{classname}} interface { {{#operation}} /* - * {{operationId}}{{#summary}} {{{.}}}{{/summary}}{{^summary}} Method for {{operationId}}{{/summary}} + {{operationId}} {{{summary}}}{{^summary}}Method for {{operationId}}{{/summary}} {{#notes}} - * {{{unescapedNotes}}} + + {{{unescapedNotes}}} {{/notes}} - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().{{#pathParams}} - * @param {{paramName}}{{#description}} {{{.}}}{{/description}}{{/pathParams}} - * @return {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request - */ + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().{{#pathParams}} + @param {{paramName}}{{#description}} {{{.}}}{{/description}}{{/pathParams}} + @return {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request + {{#isDeprecated}} + + Deprecated + {{/isDeprecated}} + */ {{{nickname}}}(ctx _context.Context{{#pathParams}}, {{paramName}} {{{dataType}}}{{/pathParams}}) {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request - /* - * {{nickname}}Execute executes the request{{#returnType}} - * @return {{{.}}}{{/returnType}} - */ + // {{nickname}}Execute executes the request{{#returnType}} + // @return {{{.}}}{{/returnType}} + {{#isDeprecated}} + // Deprecated + {{/isDeprecated}} {{nickname}}Execute(r {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request) ({{#returnType}}{{{.}}}, {{/returnType}}*_nethttp.Response, error) {{/operation}} } @@ -46,16 +53,19 @@ type {{classname}}Service service {{#operation}} type {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request struct { - ctx _context.Context{{#generateInterfaces}} - ApiService {{classname}} -{{/generateInterfaces}}{{^generateInterfaces}} - ApiService *{{classname}}Service -{{/generateInterfaces}} + ctx _context.Context + ApiService {{#generateInterfaces}}{{classname}}{{/generateInterfaces}}{{^generateInterfaces}}*{{classname}}Service{{/generateInterfaces}} {{#allParams}} {{paramName}} {{^isPathParam}}*{{/isPathParam}}{{{dataType}}} {{/allParams}} } {{#allParams}}{{^isPathParam}} +{{#description}} +// {{.}} +{{/description}} +{{#isDeprecated}} +// Deprecated +{{/isDeprecated}} func (r {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request) {{vendorExtensions.x-export-param-name}}({{paramName}} {{{dataType}}}) {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request { r.{{paramName}} = &{{paramName}} return r @@ -66,14 +76,20 @@ func (r {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Reques } /* - * {{operationId}}{{#summary}} {{{.}}}{{/summary}}{{^summary}} Method for {{operationId}}{{/summary}} +{{operationId}} {{{summary}}}{{^summary}}Method for {{operationId}}{{/summary}} {{#notes}} - * {{{unescapedNotes}}} + +{{{unescapedNotes}}} {{/notes}} - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().{{#pathParams}} - * @param {{paramName}}{{#description}} {{{.}}}{{/description}}{{/pathParams}} - * @return {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request - */ + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().{{#pathParams}} + @param {{paramName}}{{#description}} {{{.}}}{{/description}}{{/pathParams}} + @return {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request +{{#isDeprecated}} + +Deprecated +{{/isDeprecated}} +*/ func (a *{{{classname}}}Service) {{{nickname}}}(ctx _context.Context{{#pathParams}}, {{paramName}} {{{dataType}}}{{/pathParams}}) {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request { return {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request{ ApiService: a, @@ -84,10 +100,11 @@ func (a *{{{classname}}}Service) {{{nickname}}}(ctx _context.Context{{#pathParam } } -/* - * Execute executes the request{{#returnType}} - * @return {{{.}}}{{/returnType}} - */ +// Execute executes the request{{#returnType}} +// @return {{{.}}}{{/returnType}} +{{#isDeprecated}} +// Deprecated +{{/isDeprecated}} func (a *{{{classname}}}Service) {{nickname}}Execute(r {{#structPrefix}}{{&classname}}{{/structPrefix}}Api{{operationId}}Request) ({{#returnType}}{{{.}}}, {{/returnType}}*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.Method{{httpMethod}} @@ -106,7 +123,7 @@ func (a *{{{classname}}}Service) {{nickname}}Execute(r {{#structPrefix}}{{&class } localVarPath := localBasePath + "{{{path}}}"{{#pathParams}} - localVarPath = strings.Replace(localVarPath, "{"+"{{baseName}}"+"}", _neturl.PathEscape(parameterToString(r.{{paramName}}, "{{#collectionFormat}}{{collectionFormat}}{{/collectionFormat}}")), -1){{/pathParams}} + localVarPath = strings.Replace(localVarPath, "{"+"{{baseName}}"+"}", _neturl.PathEscape(parameterToString(r.{{paramName}}, "{{collectionFormat}}")), -1){{/pathParams}} localVarHeaderParams := make(map[string]string) localVarQueryParams := _neturl.Values{} @@ -171,15 +188,15 @@ func (a *{{{classname}}}Service) {{nickname}}Execute(r {{#structPrefix}}{{&class if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - localVarQueryParams.Add("{{baseName}}", parameterToString(s.Index(i), "{{#collectionFormat}}{{collectionFormat}}{{/collectionFormat}}")) + localVarQueryParams.Add("{{baseName}}", parameterToString(s.Index(i), "{{collectionFormat}}")) } } else { - localVarQueryParams.Add("{{baseName}}", parameterToString(t, "{{#collectionFormat}}{{collectionFormat}}{{/collectionFormat}}")) + localVarQueryParams.Add("{{baseName}}", parameterToString(t, "{{collectionFormat}}")) } } {{/isCollectionFormatMulti}} {{^isCollectionFormatMulti}} - localVarQueryParams.Add("{{baseName}}", parameterToString(*r.{{paramName}}, "{{#collectionFormat}}{{collectionFormat}}{{/collectionFormat}}")) + localVarQueryParams.Add("{{baseName}}", parameterToString(*r.{{paramName}}, "{{collectionFormat}}")) {{/isCollectionFormatMulti}} {{/required}} {{^required}} @@ -189,14 +206,14 @@ func (a *{{{classname}}}Service) {{nickname}}Execute(r {{#structPrefix}}{{&class if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - localVarQueryParams.Add("{{baseName}}", parameterToString(s.Index(i), "{{#collectionFormat}}{{collectionFormat}}{{/collectionFormat}}")) + localVarQueryParams.Add("{{baseName}}", parameterToString(s.Index(i), "{{collectionFormat}}")) } } else { - localVarQueryParams.Add("{{baseName}}", parameterToString(t, "{{#collectionFormat}}{{collectionFormat}}{{/collectionFormat}}")) + localVarQueryParams.Add("{{baseName}}", parameterToString(t, "{{collectionFormat}}")) } {{/isCollectionFormatMulti}} {{^isCollectionFormatMulti}} - localVarQueryParams.Add("{{baseName}}", parameterToString(*r.{{paramName}}, "{{#collectionFormat}}{{collectionFormat}}{{/collectionFormat}}")) + localVarQueryParams.Add("{{baseName}}", parameterToString(*r.{{paramName}}, "{{collectionFormat}}")) {{/isCollectionFormatMulti}} } {{/required}} @@ -224,11 +241,11 @@ func (a *{{{classname}}}Service) {{nickname}}Execute(r {{#structPrefix}}{{&class } {{#headerParams}} {{#required}} - localVarHeaderParams["{{baseName}}"] = parameterToString(*r.{{paramName}}, "{{#collectionFormat}}{{collectionFormat}}{{/collectionFormat}}") + localVarHeaderParams["{{baseName}}"] = parameterToString(*r.{{paramName}}, "{{collectionFormat}}") {{/required}} {{^required}} if r.{{paramName}} != nil { - localVarHeaderParams["{{baseName}}"] = parameterToString(*r.{{paramName}}, "{{#collectionFormat}}{{collectionFormat}}{{/collectionFormat}}") + localVarHeaderParams["{{baseName}}"] = parameterToString(*r.{{paramName}}, "{{collectionFormat}}") } {{/required}} {{/headerParams}} @@ -253,7 +270,7 @@ func (a *{{{classname}}}Service) {{nickname}}Execute(r {{#structPrefix}}{{&class {{/isFile}} {{^isFile}} {{#required}} - localVarFormParams.Add("{{baseName}}", parameterToString(*r.{{paramName}}, "{{#collectionFormat}}{{collectionFormat}}{{/collectionFormat}}")) + localVarFormParams.Add("{{baseName}}", parameterToString(*r.{{paramName}}, "{{collectionFormat}}")) {{/required}} {{^required}} {{#isModel}} @@ -267,7 +284,7 @@ func (a *{{{classname}}}Service) {{nickname}}Execute(r {{#structPrefix}}{{&class {{/isModel}} {{^isModel}} if r.{{paramName}} != nil { - localVarFormParams.Add("{{baseName}}", parameterToString(*r.{{paramName}}, "{{#collectionFormat}}{{collectionFormat}}{{/collectionFormat}}")) + localVarFormParams.Add("{{baseName}}", parameterToString(*r.{{paramName}}, "{{collectionFormat}}")) } {{/isModel}} {{/required}} diff --git a/modules/openapi-generator/src/main/resources/go/api_doc.mustache b/modules/openapi-generator/src/main/resources/go/api_doc.mustache index 458465f89476..c99fff852bb3 100644 --- a/modules/openapi-generator/src/main/resources/go/api_doc.mustache +++ b/modules/openapi-generator/src/main/resources/go/api_doc.mustache @@ -1,12 +1,12 @@ # {{invokerPackage}}\{{classname}}{{#description}} -{{description}}{{/description}} +{{.}}{{/description}} All URIs are relative to *{{basePath}}* Method | HTTP request | Description ------------- | ------------- | ------------- -{{#operations}}{{#operation}}[**{{operationId}}**]({{classname}}.md#{{operationId}}) | **{{httpMethod}}** {{path}} | {{#summary}}{{summary}}{{/summary}} +{{#operations}}{{#operation}}[**{{operationId}}**]({{classname}}.md#{{operationId}}) | **{{httpMethod}}** {{path}} | {{summary}} {{/operation}}{{/operations}} {{#operations}} @@ -60,7 +60,7 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc.{{/-last}}{{/pathParams}}{{#pathParams}} -**{{paramName}}** | {{^isPrimitiveType}}{{^isFile}}[{{/isFile}}{{/isPrimitiveType}}**{{dataType}}**{{^isPrimitiveType}}{{^isFile}}]({{baseType}}.md){{/isFile}}{{/isPrimitiveType}} | {{description}} | {{#defaultValue}}[default to {{defaultValue}}]{{/defaultValue}}{{/pathParams}} +**{{paramName}}** | {{^isPrimitiveType}}{{^isFile}}[{{/isFile}}{{/isPrimitiveType}}**{{dataType}}**{{^isPrimitiveType}}{{^isFile}}]({{baseType}}.md){{/isFile}}{{/isPrimitiveType}} | {{description}} | {{#defaultValue}}[default to {{.}}]{{/defaultValue}}{{/pathParams}} ### Other Parameters @@ -69,7 +69,7 @@ Other parameters are passed through a pointer to a api{{{nickname}}}Request stru Name | Type | Description | Notes ------------- | ------------- | ------------- | -------------{{/-last}}{{/allParams}}{{#allParams}} -{{^isPathParam}} **{{paramName}}** | {{#isContainer}}{{#isArray}}{{#items}}{{^isPrimitiveType}}{{^isFile}}[{{/isFile}}{{/isPrimitiveType}}**[]{{dataType}}**{{^isPrimitiveType}}{{^isFile}}]({{^baseType}}{{dataType}}{{/baseType}}{{baseType}}.md){{/isFile}}{{/isPrimitiveType}}{{/items}}{{/isArray}}{{#isMap}}{{#items}}{{^isPrimitiveType}}{{^isFile}}[{{/isFile}}{{/isPrimitiveType}}**map[string]{{dataType}}**{{^isPrimitiveType}}{{^isFile}}]({{^baseType}}{{dataType}}{{/baseType}}{{baseType}}.md){{/isFile}}{{/isPrimitiveType}}{{/items}}{{/isMap}}{{/isContainer}}{{^isContainer}}{{^isPrimitiveType}}{{^isFile}}[{{/isFile}}{{/isPrimitiveType}}**{{dataType}}**{{^isPrimitiveType}}{{^isFile}}]({{^baseType}}{{dataType}}{{/baseType}}{{baseType}}.md){{/isFile}}{{/isPrimitiveType}}{{/isContainer}} | {{description}} | {{#defaultValue}}[default to {{defaultValue}}]{{/defaultValue}}{{/isPathParam}}{{/allParams}} +{{^isPathParam}} **{{paramName}}** | {{#isContainer}}{{#isArray}}{{#items}}{{^isPrimitiveType}}{{^isFile}}[{{/isFile}}{{/isPrimitiveType}}**[]{{dataType}}**{{^isPrimitiveType}}{{^isFile}}]({{^baseType}}{{dataType}}{{/baseType}}{{baseType}}.md){{/isFile}}{{/isPrimitiveType}}{{/items}}{{/isArray}}{{#isMap}}{{#items}}{{^isPrimitiveType}}{{^isFile}}[{{/isFile}}{{/isPrimitiveType}}**map[string]{{dataType}}**{{^isPrimitiveType}}{{^isFile}}]({{^baseType}}{{dataType}}{{/baseType}}{{baseType}}.md){{/isFile}}{{/isPrimitiveType}}{{/items}}{{/isMap}}{{/isContainer}}{{^isContainer}}{{^isPrimitiveType}}{{^isFile}}[{{/isFile}}{{/isPrimitiveType}}**{{dataType}}**{{^isPrimitiveType}}{{^isFile}}]({{^baseType}}{{dataType}}{{/baseType}}{{baseType}}.md){{/isFile}}{{/isPrimitiveType}}{{/isContainer}} | {{description}} | {{#defaultValue}}[default to {{.}}]{{/defaultValue}}{{/isPathParam}}{{/allParams}} ### Return type diff --git a/modules/openapi-generator/src/main/resources/go/client.mustache b/modules/openapi-generator/src/main/resources/go/client.mustache index 572bd7f800cd..8cc5dfd6009d 100644 --- a/modules/openapi-generator/src/main/resources/go/client.mustache +++ b/modules/openapi-generator/src/main/resources/go/client.mustache @@ -47,12 +47,7 @@ type APIClient struct { {{#apis}} {{#operations}} - {{#generateInterfaces}} - {{classname}} {{classname}} - {{/generateInterfaces}} - {{^generateInterfaces}} - {{classname}} *{{classname}}Service - {{/generateInterfaces}} + {{classname}} {{#generateInterfaces}}{{classname}}{{/generateInterfaces}}{{^generateInterfaces}}*{{classname}}Service{{/generateInterfaces}} {{/operations}} {{/apis}} {{/apiInfo}} diff --git a/modules/openapi-generator/src/main/resources/go/configuration.mustache b/modules/openapi-generator/src/main/resources/go/configuration.mustache index f33b012fc418..610f9edc5d27 100644 --- a/modules/openapi-generator/src/main/resources/go/configuration.mustache +++ b/modules/openapi-generator/src/main/resources/go/configuration.mustache @@ -117,7 +117,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "{{#httpUserAgent}}{{{.}}}{{/httpUserAgent}}{{^httpUserAgent}}OpenAPI-Generator/{{{packageVersion}}}/go{{/httpUserAgent}}", + UserAgent: "{{{httpUserAgent}}}{{^httpUserAgent}}OpenAPI-Generator/{{{packageVersion}}}/go{{/httpUserAgent}}", Debug: false, {{#servers}} {{#-first}} diff --git a/modules/openapi-generator/src/main/resources/go/model_anyof.mustache b/modules/openapi-generator/src/main/resources/go/model_anyof.mustache index 5dfa75302f13..d0738523a2a0 100644 --- a/modules/openapi-generator/src/main/resources/go/model_anyof.mustache +++ b/modules/openapi-generator/src/main/resources/go/model_anyof.mustache @@ -1,4 +1,4 @@ -// {{classname}}{{#description}} {{{description}}}{{/description}}{{^description}} struct for {{{classname}}}{{/description}} +// {{classname}} {{{description}}}{{^description}}struct for {{{classname}}}{{/description}} type {{classname}} struct { {{#anyOf}} {{{.}}} *{{{.}}} diff --git a/modules/openapi-generator/src/main/resources/go/model_enum.mustache b/modules/openapi-generator/src/main/resources/go/model_enum.mustache index 11dfbfc7d334..2432e5c8b361 100644 --- a/modules/openapi-generator/src/main/resources/go/model_enum.mustache +++ b/modules/openapi-generator/src/main/resources/go/model_enum.mustache @@ -1,5 +1,5 @@ -// {{{classname}}} {{#description}}{{{.}}}{{/description}}{{^description}}the model '{{{classname}}}'{{/description}} -type {{{classname}}} {{^format}}{{dataType}}{{/format}}{{#format}}{{{format}}}{{/format}} +// {{{classname}}} {{{description}}}{{^description}}the model '{{{classname}}}'{{/description}} +type {{{classname}}} {{{format}}}{{^format}}{{dataType}}{{/format}} // List of {{{name}}} const ( @@ -21,7 +21,7 @@ var allowed{{{classname}}}EnumValues = []{{{classname}}}{ } func (v *{{{classname}}}) UnmarshalJSON(src []byte) error { - var value {{^format}}{{dataType}}{{/format}}{{#format}}{{{format}}}{{/format}} + var value {{{format}}}{{^format}}{{dataType}}{{/format}} err := json.Unmarshal(src, &value) if err != nil { return err @@ -39,7 +39,7 @@ func (v *{{{classname}}}) UnmarshalJSON(src []byte) error { // New{{{classname}}}FromValue returns a pointer to a valid {{{classname}}} // for the value passed as argument, or an error if the value passed is not allowed by the enum -func New{{{classname}}}FromValue(v {{^format}}{{dataType}}{{/format}}{{#format}}{{{format}}}{{/format}}) (*{{{classname}}}, error) { +func New{{{classname}}}FromValue(v {{{format}}}{{^format}}{{dataType}}{{/format}}) (*{{{classname}}}, error) { ev := {{{classname}}}(v) if ev.IsValid() { return &ev, nil diff --git a/modules/openapi-generator/src/main/resources/go/model_oneof.mustache b/modules/openapi-generator/src/main/resources/go/model_oneof.mustache index a0322e340743..e67a172de676 100644 --- a/modules/openapi-generator/src/main/resources/go/model_oneof.mustache +++ b/modules/openapi-generator/src/main/resources/go/model_oneof.mustache @@ -1,4 +1,4 @@ -// {{classname}} - {{#description}}{{{description}}}{{/description}}{{^description}}struct for {{{classname}}}{{/description}} +// {{classname}} - {{{description}}}{{^description}}struct for {{{classname}}}{{/description}} type {{classname}} struct { {{#oneOf}} {{{.}}} *{{{.}}} diff --git a/modules/openapi-generator/src/main/resources/go/model_simple.mustache b/modules/openapi-generator/src/main/resources/go/model_simple.mustache index da6512743083..a2e30fc4b8fc 100644 --- a/modules/openapi-generator/src/main/resources/go/model_simple.mustache +++ b/modules/openapi-generator/src/main/resources/go/model_simple.mustache @@ -1,4 +1,4 @@ -// {{classname}}{{#description}} {{{description}}}{{/description}}{{^description}} struct for {{{classname}}}{{/description}} +// {{classname}} {{{description}}}{{^description}}struct for {{{classname}}}{{/description}} type {{classname}} struct { {{#parent}} {{^isMap}} @@ -16,6 +16,9 @@ type {{classname}} struct { {{#description}} // {{{description}}} {{/description}} +{{#deprecated}} + // Deprecated +{{/deprecated}} {{name}} {{^required}}{{^isNullable}}*{{/isNullable}}{{/required}}{{{dataType}}} `json:"{{baseName}}{{^required}},omitempty{{/required}}"{{#withXml}} xml:"{{baseName}}{{#isXmlAttribute}},attr{{/isXmlAttribute}}"{{/withXml}}{{#vendorExtensions.x-go-custom-tag}} {{{.}}}{{/vendorExtensions.x-go-custom-tag}}` {{/vars}} {{#isAdditionalPropertiesTrue}} @@ -84,6 +87,9 @@ func New{{classname}}WithDefaults() *{{classname}} { {{#isNullable}} // If the value is explicit nil, the zero value for {{vendorExtensions.x-go-base-type}} will be returned {{/isNullable}} +{{#deprecated}} +// Deprecated +{{/deprecated}} func (o *{{classname}}) Get{{name}}() {{vendorExtensions.x-go-base-type}} { if o == nil{{#isNullable}}{{^vendorExtensions.x-golang-is-container}} || o.{{name}}.Get() == nil{{/vendorExtensions.x-golang-is-container}}{{/isNullable}} { var ret {{vendorExtensions.x-go-base-type}} @@ -108,6 +114,9 @@ func (o *{{classname}}) Get{{name}}() {{vendorExtensions.x-go-base-type}} { {{#isNullable}} // NOTE: If the value is an explicit nil, `nil, true` will be returned {{/isNullable}} +{{#deprecated}} +// Deprecated +{{/deprecated}} func (o *{{classname}}) Get{{name}}Ok() (*{{vendorExtensions.x-go-base-type}}, bool) { if o == nil {{#isNullable}}{{#vendorExtensions.x-golang-is-container}}|| o.{{name}} == nil{{/vendorExtensions.x-golang-is-container}}{{/isNullable}} { return nil, false @@ -126,6 +135,9 @@ func (o *{{classname}}) Get{{name}}Ok() (*{{vendorExtensions.x-go-base-type}}, b } // Set{{name}} sets field value +{{#deprecated}} +// Deprecated +{{/deprecated}} func (o *{{classname}}) Set{{name}}(v {{vendorExtensions.x-go-base-type}}) { {{#isNullable}} {{#vendorExtensions.x-golang-is-container}} @@ -143,6 +155,9 @@ func (o *{{classname}}) Set{{name}}(v {{vendorExtensions.x-go-base-type}}) { {{/required}} {{^required}} // Get{{name}} returns the {{name}} field value if set, zero value otherwise{{#isNullable}} (both if not set or set to explicit null){{/isNullable}}. +{{#deprecated}} +// Deprecated +{{/deprecated}} func (o *{{classname}}) Get{{name}}() {{vendorExtensions.x-go-base-type}} { if o == nil {{^isNullable}}|| o.{{name}} == nil{{/isNullable}}{{#isNullable}}{{^vendorExtensions.x-golang-is-container}}|| o.{{name}}.Get() == nil{{/vendorExtensions.x-golang-is-container}}{{/isNullable}} { var ret {{vendorExtensions.x-go-base-type}} @@ -166,6 +181,9 @@ func (o *{{classname}}) Get{{name}}() {{vendorExtensions.x-go-base-type}} { {{#isNullable}} // NOTE: If the value is an explicit nil, `nil, true` will be returned {{/isNullable}} +{{#deprecated}} +// Deprecated +{{/deprecated}} func (o *{{classname}}) Get{{name}}Ok() (*{{vendorExtensions.x-go-base-type}}, bool) { if o == nil {{^isNullable}}|| o.{{name}} == nil{{/isNullable}}{{#isNullable}}{{#vendorExtensions.x-golang-is-container}}|| o.{{name}} == nil{{/vendorExtensions.x-golang-is-container}}{{/isNullable}} { return nil, false @@ -193,6 +211,9 @@ func (o *{{classname}}) Has{{name}}() bool { } // Set{{name}} gets a reference to the given {{dataType}} and assigns it to the {{name}} field. +{{#deprecated}} +// Deprecated +{{/deprecated}} func (o *{{classname}}) Set{{name}}(v {{vendorExtensions.x-go-base-type}}) { {{#isNullable}} {{#vendorExtensions.x-golang-is-container}} @@ -286,6 +307,9 @@ func (o *{{{classname}}}) UnmarshalJSON(bytes []byte) (err error) { {{#description}} // {{{description}}} {{/description}} + {{#deprecated}} + // Deprecated + {{/deprecated}} {{name}} {{^required}}{{^isNullable}}*{{/isNullable}}{{/required}}{{{dataType}}} `json:"{{baseName}}{{^required}},omitempty{{/required}}"{{#withXml}} xml:"{{baseName}}{{#isXmlAttribute}},attr{{/isXmlAttribute}}"{{/withXml}}{{#vendorExtensions.x-go-custom-tag}} {{{.}}}{{/vendorExtensions.x-go-custom-tag}}` {{/vars}} } diff --git a/modules/openapi-generator/src/main/resources/go/partial_header.mustache b/modules/openapi-generator/src/main/resources/go/partial_header.mustache index ee1ead4cf395..d8f219cdfc4c 100644 --- a/modules/openapi-generator/src/main/resources/go/partial_header.mustache +++ b/modules/openapi-generator/src/main/resources/go/partial_header.mustache @@ -1,18 +1,18 @@ /* - {{#appName}} - * {{{appName}}} - * - {{/appName}} - {{#appDescription}} - * {{{appDescription}}} - * - {{/appDescription}} - {{#version}} - * API version: {{{version}}} - {{/version}} - {{#infoEmail}} - * Contact: {{{infoEmail}}} - {{/infoEmail}} - */ +{{#appName}} +{{{.}}} + +{{/appName}} +{{#appDescription}} +{{{.}}} + +{{/appDescription}} +{{#version}} +API version: {{{.}}} +{{/version}} +{{#infoEmail}} +Contact: {{{.}}} +{{/infoEmail}} +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml b/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml index 27083db4ad70..65be255ab753 100644 --- a/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml +++ b/modules/openapi-generator/src/test/resources/2_0/petstore-with-fake-endpoints-models-for-testing.yaml @@ -1252,6 +1252,7 @@ definitions: status: type: string description: pet status in the store + deprecated: true enum: - available - pending diff --git a/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml b/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml index b1490fa67987..eb0cbbda7f53 100644 --- a/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/petstore-with-fake-endpoints-models-for-testing-with-http-signature.yaml @@ -83,6 +83,7 @@ paths: required: true style: form explode: false + deprecated: true schema: type: array items: @@ -1346,6 +1347,7 @@ components: status: type: string description: pet status in the store + deprecated: true enum: - available - pending diff --git a/modules/openapi-generator/src/test/resources/3_0/petstore.yaml b/modules/openapi-generator/src/test/resources/3_0/petstore.yaml index f5e98eec38da..c95d6dd6f557 100644 --- a/modules/openapi-generator/src/test/resources/3_0/petstore.yaml +++ b/modules/openapi-generator/src/test/resources/3_0/petstore.yaml @@ -85,6 +85,7 @@ paths: required: true style: form explode: false + deprecated: true schema: type: array items: @@ -716,6 +717,7 @@ components: status: type: string description: pet status in the store + deprecated: true enum: - available - pending diff --git a/samples/client/petstore/go/go-petstore/api_another_fake.go b/samples/client/petstore/go/go-petstore/api_another_fake.go index f97f8b7bcb18..c460926ef23b 100644 --- a/samples/client/petstore/go/go-petstore/api_another_fake.go +++ b/samples/client/petstore/go/go-petstore/api_another_fake.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,17 +26,17 @@ var ( type AnotherFakeApi interface { /* - * Call123TestSpecialTags To test special tags - * To test special tags and operation ID starting with number - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCall123TestSpecialTagsRequest - */ + Call123TestSpecialTags To test special tags + + To test special tags and operation ID starting with number + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCall123TestSpecialTagsRequest + */ Call123TestSpecialTags(ctx _context.Context) ApiCall123TestSpecialTagsRequest - /* - * Call123TestSpecialTagsExecute executes the request - * @return Client - */ + // Call123TestSpecialTagsExecute executes the request + // @return Client Call123TestSpecialTagsExecute(r ApiCall123TestSpecialTagsRequest) (Client, *_nethttp.Response, error) } @@ -49,6 +49,7 @@ type ApiCall123TestSpecialTagsRequest struct { body *Client } +// client model func (r ApiCall123TestSpecialTagsRequest) Body(body Client) ApiCall123TestSpecialTagsRequest { r.body = &body return r @@ -59,11 +60,13 @@ func (r ApiCall123TestSpecialTagsRequest) Execute() (Client, *_nethttp.Response, } /* - * Call123TestSpecialTags To test special tags - * To test special tags and operation ID starting with number - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCall123TestSpecialTagsRequest - */ +Call123TestSpecialTags To test special tags + +To test special tags and operation ID starting with number + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCall123TestSpecialTagsRequest +*/ func (a *AnotherFakeApiService) Call123TestSpecialTags(ctx _context.Context) ApiCall123TestSpecialTagsRequest { return ApiCall123TestSpecialTagsRequest{ ApiService: a, @@ -71,10 +74,8 @@ func (a *AnotherFakeApiService) Call123TestSpecialTags(ctx _context.Context) Api } } -/* - * Execute executes the request - * @return Client - */ +// Execute executes the request +// @return Client func (a *AnotherFakeApiService) Call123TestSpecialTagsExecute(r ApiCall123TestSpecialTagsRequest) (Client, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch diff --git a/samples/client/petstore/go/go-petstore/api_fake.go b/samples/client/petstore/go/go-petstore/api_fake.go index 286d8c357ef1..1ac3eb496a14 100644 --- a/samples/client/petstore/go/go-petstore/api_fake.go +++ b/samples/client/petstore/go/go-petstore/api_fake.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -29,190 +29,187 @@ var ( type FakeApi interface { /* - * CreateXmlItem creates an XmlItem - * this route creates an XmlItem - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateXmlItemRequest - */ + CreateXmlItem creates an XmlItem + + this route creates an XmlItem + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateXmlItemRequest + */ CreateXmlItem(ctx _context.Context) ApiCreateXmlItemRequest - /* - * CreateXmlItemExecute executes the request - */ + // CreateXmlItemExecute executes the request CreateXmlItemExecute(r ApiCreateXmlItemRequest) (*_nethttp.Response, error) /* - * FakeOuterBooleanSerialize Method for FakeOuterBooleanSerialize - * Test serialization of outer boolean types - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFakeOuterBooleanSerializeRequest - */ + FakeOuterBooleanSerialize Method for FakeOuterBooleanSerialize + + Test serialization of outer boolean types + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFakeOuterBooleanSerializeRequest + */ FakeOuterBooleanSerialize(ctx _context.Context) ApiFakeOuterBooleanSerializeRequest - /* - * FakeOuterBooleanSerializeExecute executes the request - * @return bool - */ + // FakeOuterBooleanSerializeExecute executes the request + // @return bool FakeOuterBooleanSerializeExecute(r ApiFakeOuterBooleanSerializeRequest) (bool, *_nethttp.Response, error) /* - * FakeOuterCompositeSerialize Method for FakeOuterCompositeSerialize - * Test serialization of object with outer number type - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFakeOuterCompositeSerializeRequest - */ + FakeOuterCompositeSerialize Method for FakeOuterCompositeSerialize + + Test serialization of object with outer number type + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFakeOuterCompositeSerializeRequest + */ FakeOuterCompositeSerialize(ctx _context.Context) ApiFakeOuterCompositeSerializeRequest - /* - * FakeOuterCompositeSerializeExecute executes the request - * @return OuterComposite - */ + // FakeOuterCompositeSerializeExecute executes the request + // @return OuterComposite FakeOuterCompositeSerializeExecute(r ApiFakeOuterCompositeSerializeRequest) (OuterComposite, *_nethttp.Response, error) /* - * FakeOuterNumberSerialize Method for FakeOuterNumberSerialize - * Test serialization of outer number types - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFakeOuterNumberSerializeRequest - */ + FakeOuterNumberSerialize Method for FakeOuterNumberSerialize + + Test serialization of outer number types + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFakeOuterNumberSerializeRequest + */ FakeOuterNumberSerialize(ctx _context.Context) ApiFakeOuterNumberSerializeRequest - /* - * FakeOuterNumberSerializeExecute executes the request - * @return float32 - */ + // FakeOuterNumberSerializeExecute executes the request + // @return float32 FakeOuterNumberSerializeExecute(r ApiFakeOuterNumberSerializeRequest) (float32, *_nethttp.Response, error) /* - * FakeOuterStringSerialize Method for FakeOuterStringSerialize - * Test serialization of outer string types - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFakeOuterStringSerializeRequest - */ + FakeOuterStringSerialize Method for FakeOuterStringSerialize + + Test serialization of outer string types + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFakeOuterStringSerializeRequest + */ FakeOuterStringSerialize(ctx _context.Context) ApiFakeOuterStringSerializeRequest - /* - * FakeOuterStringSerializeExecute executes the request - * @return string - */ + // FakeOuterStringSerializeExecute executes the request + // @return string FakeOuterStringSerializeExecute(r ApiFakeOuterStringSerializeRequest) (string, *_nethttp.Response, error) /* - * TestBodyWithFileSchema Method for TestBodyWithFileSchema - * For this test, the body for this request much reference a schema named `File`. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestBodyWithFileSchemaRequest - */ + TestBodyWithFileSchema Method for TestBodyWithFileSchema + + For this test, the body for this request much reference a schema named `File`. + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestBodyWithFileSchemaRequest + */ TestBodyWithFileSchema(ctx _context.Context) ApiTestBodyWithFileSchemaRequest - /* - * TestBodyWithFileSchemaExecute executes the request - */ + // TestBodyWithFileSchemaExecute executes the request TestBodyWithFileSchemaExecute(r ApiTestBodyWithFileSchemaRequest) (*_nethttp.Response, error) /* - * TestBodyWithQueryParams Method for TestBodyWithQueryParams - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestBodyWithQueryParamsRequest - */ + TestBodyWithQueryParams Method for TestBodyWithQueryParams + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestBodyWithQueryParamsRequest + */ TestBodyWithQueryParams(ctx _context.Context) ApiTestBodyWithQueryParamsRequest - /* - * TestBodyWithQueryParamsExecute executes the request - */ + // TestBodyWithQueryParamsExecute executes the request TestBodyWithQueryParamsExecute(r ApiTestBodyWithQueryParamsRequest) (*_nethttp.Response, error) /* - * TestClientModel To test \"client\" model - * To test "client" model - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestClientModelRequest - */ + TestClientModel To test \"client\" model + + To test "client" model + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestClientModelRequest + */ TestClientModel(ctx _context.Context) ApiTestClientModelRequest - /* - * TestClientModelExecute executes the request - * @return Client - */ + // TestClientModelExecute executes the request + // @return Client TestClientModelExecute(r ApiTestClientModelRequest) (Client, *_nethttp.Response, error) /* - * TestEndpointParameters Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Fake endpoint for testing various parameters + TestEndpointParameters Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + + Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestEndpointParametersRequest - */ + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestEndpointParametersRequest + */ TestEndpointParameters(ctx _context.Context) ApiTestEndpointParametersRequest - /* - * TestEndpointParametersExecute executes the request - */ + // TestEndpointParametersExecute executes the request TestEndpointParametersExecute(r ApiTestEndpointParametersRequest) (*_nethttp.Response, error) /* - * TestEnumParameters To test enum parameters - * To test enum parameters - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestEnumParametersRequest - */ + TestEnumParameters To test enum parameters + + To test enum parameters + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestEnumParametersRequest + */ TestEnumParameters(ctx _context.Context) ApiTestEnumParametersRequest - /* - * TestEnumParametersExecute executes the request - */ + // TestEnumParametersExecute executes the request TestEnumParametersExecute(r ApiTestEnumParametersRequest) (*_nethttp.Response, error) /* - * TestGroupParameters Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestGroupParametersRequest - */ + TestGroupParameters Fake endpoint to test group parameters (optional) + + Fake endpoint to test group parameters (optional) + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestGroupParametersRequest + */ TestGroupParameters(ctx _context.Context) ApiTestGroupParametersRequest - /* - * TestGroupParametersExecute executes the request - */ + // TestGroupParametersExecute executes the request TestGroupParametersExecute(r ApiTestGroupParametersRequest) (*_nethttp.Response, error) /* - * TestInlineAdditionalProperties test inline additionalProperties - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestInlineAdditionalPropertiesRequest - */ + TestInlineAdditionalProperties test inline additionalProperties + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestInlineAdditionalPropertiesRequest + */ TestInlineAdditionalProperties(ctx _context.Context) ApiTestInlineAdditionalPropertiesRequest - /* - * TestInlineAdditionalPropertiesExecute executes the request - */ + // TestInlineAdditionalPropertiesExecute executes the request TestInlineAdditionalPropertiesExecute(r ApiTestInlineAdditionalPropertiesRequest) (*_nethttp.Response, error) /* - * TestJsonFormData test json serialization of form data - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestJsonFormDataRequest - */ + TestJsonFormData test json serialization of form data + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestJsonFormDataRequest + */ TestJsonFormData(ctx _context.Context) ApiTestJsonFormDataRequest - /* - * TestJsonFormDataExecute executes the request - */ + // TestJsonFormDataExecute executes the request TestJsonFormDataExecute(r ApiTestJsonFormDataRequest) (*_nethttp.Response, error) /* - * TestQueryParameterCollectionFormat Method for TestQueryParameterCollectionFormat - * To test the collection format in query parameters - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestQueryParameterCollectionFormatRequest - */ + TestQueryParameterCollectionFormat Method for TestQueryParameterCollectionFormat + + To test the collection format in query parameters + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestQueryParameterCollectionFormatRequest + */ TestQueryParameterCollectionFormat(ctx _context.Context) ApiTestQueryParameterCollectionFormatRequest - /* - * TestQueryParameterCollectionFormatExecute executes the request - */ + // TestQueryParameterCollectionFormatExecute executes the request TestQueryParameterCollectionFormatExecute(r ApiTestQueryParameterCollectionFormatRequest) (*_nethttp.Response, error) } @@ -225,6 +222,7 @@ type ApiCreateXmlItemRequest struct { xmlItem *XmlItem } +// XmlItem Body func (r ApiCreateXmlItemRequest) XmlItem(xmlItem XmlItem) ApiCreateXmlItemRequest { r.xmlItem = &xmlItem return r @@ -235,11 +233,13 @@ func (r ApiCreateXmlItemRequest) Execute() (*_nethttp.Response, error) { } /* - * CreateXmlItem creates an XmlItem - * this route creates an XmlItem - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateXmlItemRequest - */ +CreateXmlItem creates an XmlItem + +this route creates an XmlItem + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateXmlItemRequest +*/ func (a *FakeApiService) CreateXmlItem(ctx _context.Context) ApiCreateXmlItemRequest { return ApiCreateXmlItemRequest{ ApiService: a, @@ -247,9 +247,7 @@ func (a *FakeApiService) CreateXmlItem(ctx _context.Context) ApiCreateXmlItemReq } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *FakeApiService) CreateXmlItemExecute(r ApiCreateXmlItemRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -326,6 +324,7 @@ type ApiFakeOuterBooleanSerializeRequest struct { body *bool } +// Input boolean as post body func (r ApiFakeOuterBooleanSerializeRequest) Body(body bool) ApiFakeOuterBooleanSerializeRequest { r.body = &body return r @@ -336,11 +335,13 @@ func (r ApiFakeOuterBooleanSerializeRequest) Execute() (bool, *_nethttp.Response } /* - * FakeOuterBooleanSerialize Method for FakeOuterBooleanSerialize - * Test serialization of outer boolean types - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFakeOuterBooleanSerializeRequest - */ +FakeOuterBooleanSerialize Method for FakeOuterBooleanSerialize + +Test serialization of outer boolean types + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFakeOuterBooleanSerializeRequest +*/ func (a *FakeApiService) FakeOuterBooleanSerialize(ctx _context.Context) ApiFakeOuterBooleanSerializeRequest { return ApiFakeOuterBooleanSerializeRequest{ ApiService: a, @@ -348,10 +349,8 @@ func (a *FakeApiService) FakeOuterBooleanSerialize(ctx _context.Context) ApiFake } } -/* - * Execute executes the request - * @return bool - */ +// Execute executes the request +// @return bool func (a *FakeApiService) FakeOuterBooleanSerializeExecute(r ApiFakeOuterBooleanSerializeRequest) (bool, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -435,6 +434,7 @@ type ApiFakeOuterCompositeSerializeRequest struct { body *OuterComposite } +// Input composite as post body func (r ApiFakeOuterCompositeSerializeRequest) Body(body OuterComposite) ApiFakeOuterCompositeSerializeRequest { r.body = &body return r @@ -445,11 +445,13 @@ func (r ApiFakeOuterCompositeSerializeRequest) Execute() (OuterComposite, *_neth } /* - * FakeOuterCompositeSerialize Method for FakeOuterCompositeSerialize - * Test serialization of object with outer number type - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFakeOuterCompositeSerializeRequest - */ +FakeOuterCompositeSerialize Method for FakeOuterCompositeSerialize + +Test serialization of object with outer number type + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFakeOuterCompositeSerializeRequest +*/ func (a *FakeApiService) FakeOuterCompositeSerialize(ctx _context.Context) ApiFakeOuterCompositeSerializeRequest { return ApiFakeOuterCompositeSerializeRequest{ ApiService: a, @@ -457,10 +459,8 @@ func (a *FakeApiService) FakeOuterCompositeSerialize(ctx _context.Context) ApiFa } } -/* - * Execute executes the request - * @return OuterComposite - */ +// Execute executes the request +// @return OuterComposite func (a *FakeApiService) FakeOuterCompositeSerializeExecute(r ApiFakeOuterCompositeSerializeRequest) (OuterComposite, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -544,6 +544,7 @@ type ApiFakeOuterNumberSerializeRequest struct { body *float32 } +// Input number as post body func (r ApiFakeOuterNumberSerializeRequest) Body(body float32) ApiFakeOuterNumberSerializeRequest { r.body = &body return r @@ -554,11 +555,13 @@ func (r ApiFakeOuterNumberSerializeRequest) Execute() (float32, *_nethttp.Respon } /* - * FakeOuterNumberSerialize Method for FakeOuterNumberSerialize - * Test serialization of outer number types - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFakeOuterNumberSerializeRequest - */ +FakeOuterNumberSerialize Method for FakeOuterNumberSerialize + +Test serialization of outer number types + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFakeOuterNumberSerializeRequest +*/ func (a *FakeApiService) FakeOuterNumberSerialize(ctx _context.Context) ApiFakeOuterNumberSerializeRequest { return ApiFakeOuterNumberSerializeRequest{ ApiService: a, @@ -566,10 +569,8 @@ func (a *FakeApiService) FakeOuterNumberSerialize(ctx _context.Context) ApiFakeO } } -/* - * Execute executes the request - * @return float32 - */ +// Execute executes the request +// @return float32 func (a *FakeApiService) FakeOuterNumberSerializeExecute(r ApiFakeOuterNumberSerializeRequest) (float32, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -653,6 +654,7 @@ type ApiFakeOuterStringSerializeRequest struct { body *string } +// Input string as post body func (r ApiFakeOuterStringSerializeRequest) Body(body string) ApiFakeOuterStringSerializeRequest { r.body = &body return r @@ -663,11 +665,13 @@ func (r ApiFakeOuterStringSerializeRequest) Execute() (string, *_nethttp.Respons } /* - * FakeOuterStringSerialize Method for FakeOuterStringSerialize - * Test serialization of outer string types - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFakeOuterStringSerializeRequest - */ +FakeOuterStringSerialize Method for FakeOuterStringSerialize + +Test serialization of outer string types + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFakeOuterStringSerializeRequest +*/ func (a *FakeApiService) FakeOuterStringSerialize(ctx _context.Context) ApiFakeOuterStringSerializeRequest { return ApiFakeOuterStringSerializeRequest{ ApiService: a, @@ -675,10 +679,8 @@ func (a *FakeApiService) FakeOuterStringSerialize(ctx _context.Context) ApiFakeO } } -/* - * Execute executes the request - * @return string - */ +// Execute executes the request +// @return string func (a *FakeApiService) FakeOuterStringSerializeExecute(r ApiFakeOuterStringSerializeRequest) (string, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -772,11 +774,13 @@ func (r ApiTestBodyWithFileSchemaRequest) Execute() (*_nethttp.Response, error) } /* - * TestBodyWithFileSchema Method for TestBodyWithFileSchema - * For this test, the body for this request much reference a schema named `File`. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestBodyWithFileSchemaRequest - */ +TestBodyWithFileSchema Method for TestBodyWithFileSchema + +For this test, the body for this request much reference a schema named `File`. + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestBodyWithFileSchemaRequest +*/ func (a *FakeApiService) TestBodyWithFileSchema(ctx _context.Context) ApiTestBodyWithFileSchemaRequest { return ApiTestBodyWithFileSchemaRequest{ ApiService: a, @@ -784,9 +788,7 @@ func (a *FakeApiService) TestBodyWithFileSchema(ctx _context.Context) ApiTestBod } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *FakeApiService) TestBodyWithFileSchemaExecute(r ApiTestBodyWithFileSchemaRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPut @@ -878,10 +880,11 @@ func (r ApiTestBodyWithQueryParamsRequest) Execute() (*_nethttp.Response, error) } /* - * TestBodyWithQueryParams Method for TestBodyWithQueryParams - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestBodyWithQueryParamsRequest - */ +TestBodyWithQueryParams Method for TestBodyWithQueryParams + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestBodyWithQueryParamsRequest +*/ func (a *FakeApiService) TestBodyWithQueryParams(ctx _context.Context) ApiTestBodyWithQueryParamsRequest { return ApiTestBodyWithQueryParamsRequest{ ApiService: a, @@ -889,9 +892,7 @@ func (a *FakeApiService) TestBodyWithQueryParams(ctx _context.Context) ApiTestBo } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *FakeApiService) TestBodyWithQueryParamsExecute(r ApiTestBodyWithQueryParamsRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPut @@ -972,6 +973,7 @@ type ApiTestClientModelRequest struct { body *Client } +// client model func (r ApiTestClientModelRequest) Body(body Client) ApiTestClientModelRequest { r.body = &body return r @@ -982,11 +984,13 @@ func (r ApiTestClientModelRequest) Execute() (Client, *_nethttp.Response, error) } /* - * TestClientModel To test \"client\" model - * To test "client" model - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestClientModelRequest - */ +TestClientModel To test \"client\" model + +To test "client" model + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestClientModelRequest +*/ func (a *FakeApiService) TestClientModel(ctx _context.Context) ApiTestClientModelRequest { return ApiTestClientModelRequest{ ApiService: a, @@ -994,10 +998,8 @@ func (a *FakeApiService) TestClientModel(ctx _context.Context) ApiTestClientMode } } -/* - * Execute executes the request - * @return Client - */ +// Execute executes the request +// @return Client func (a *FakeApiService) TestClientModelExecute(r ApiTestClientModelRequest) (Client, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch @@ -1097,58 +1099,72 @@ type ApiTestEndpointParametersRequest struct { callback *string } +// None func (r ApiTestEndpointParametersRequest) Number(number float32) ApiTestEndpointParametersRequest { r.number = &number return r } +// None func (r ApiTestEndpointParametersRequest) Double(double float64) ApiTestEndpointParametersRequest { r.double = &double return r } +// None func (r ApiTestEndpointParametersRequest) PatternWithoutDelimiter(patternWithoutDelimiter string) ApiTestEndpointParametersRequest { r.patternWithoutDelimiter = &patternWithoutDelimiter return r } +// None func (r ApiTestEndpointParametersRequest) Byte_(byte_ string) ApiTestEndpointParametersRequest { r.byte_ = &byte_ return r } +// None func (r ApiTestEndpointParametersRequest) Integer(integer int32) ApiTestEndpointParametersRequest { r.integer = &integer return r } +// None func (r ApiTestEndpointParametersRequest) Int32_(int32_ int32) ApiTestEndpointParametersRequest { r.int32_ = &int32_ return r } +// None func (r ApiTestEndpointParametersRequest) Int64_(int64_ int64) ApiTestEndpointParametersRequest { r.int64_ = &int64_ return r } +// None func (r ApiTestEndpointParametersRequest) Float(float float32) ApiTestEndpointParametersRequest { r.float = &float return r } +// None func (r ApiTestEndpointParametersRequest) String_(string_ string) ApiTestEndpointParametersRequest { r.string_ = &string_ return r } +// None func (r ApiTestEndpointParametersRequest) Binary(binary *os.File) ApiTestEndpointParametersRequest { r.binary = &binary return r } +// None func (r ApiTestEndpointParametersRequest) Date(date string) ApiTestEndpointParametersRequest { r.date = &date return r } +// None func (r ApiTestEndpointParametersRequest) DateTime(dateTime time.Time) ApiTestEndpointParametersRequest { r.dateTime = &dateTime return r } +// None func (r ApiTestEndpointParametersRequest) Password(password string) ApiTestEndpointParametersRequest { r.password = &password return r } +// None func (r ApiTestEndpointParametersRequest) Callback(callback string) ApiTestEndpointParametersRequest { r.callback = &callback return r @@ -1159,14 +1175,16 @@ func (r ApiTestEndpointParametersRequest) Execute() (*_nethttp.Response, error) } /* - * TestEndpointParameters Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Fake endpoint for testing various parameters +TestEndpointParameters Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + +Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestEndpointParametersRequest - */ + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestEndpointParametersRequest +*/ func (a *FakeApiService) TestEndpointParameters(ctx _context.Context) ApiTestEndpointParametersRequest { return ApiTestEndpointParametersRequest{ ApiService: a, @@ -1174,9 +1192,7 @@ func (a *FakeApiService) TestEndpointParameters(ctx _context.Context) ApiTestEnd } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *FakeApiService) TestEndpointParametersExecute(r ApiTestEndpointParametersRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -1321,34 +1337,42 @@ type ApiTestEnumParametersRequest struct { enumFormString *string } +// Header parameter enum test (string array) func (r ApiTestEnumParametersRequest) EnumHeaderStringArray(enumHeaderStringArray []string) ApiTestEnumParametersRequest { r.enumHeaderStringArray = &enumHeaderStringArray return r } +// Header parameter enum test (string) func (r ApiTestEnumParametersRequest) EnumHeaderString(enumHeaderString string) ApiTestEnumParametersRequest { r.enumHeaderString = &enumHeaderString return r } +// Query parameter enum test (string array) func (r ApiTestEnumParametersRequest) EnumQueryStringArray(enumQueryStringArray []string) ApiTestEnumParametersRequest { r.enumQueryStringArray = &enumQueryStringArray return r } +// Query parameter enum test (string) func (r ApiTestEnumParametersRequest) EnumQueryString(enumQueryString string) ApiTestEnumParametersRequest { r.enumQueryString = &enumQueryString return r } +// Query parameter enum test (double) func (r ApiTestEnumParametersRequest) EnumQueryInteger(enumQueryInteger int32) ApiTestEnumParametersRequest { r.enumQueryInteger = &enumQueryInteger return r } +// Query parameter enum test (double) func (r ApiTestEnumParametersRequest) EnumQueryDouble(enumQueryDouble float64) ApiTestEnumParametersRequest { r.enumQueryDouble = &enumQueryDouble return r } +// Form parameter enum test (string array) func (r ApiTestEnumParametersRequest) EnumFormStringArray(enumFormStringArray []string) ApiTestEnumParametersRequest { r.enumFormStringArray = &enumFormStringArray return r } +// Form parameter enum test (string) func (r ApiTestEnumParametersRequest) EnumFormString(enumFormString string) ApiTestEnumParametersRequest { r.enumFormString = &enumFormString return r @@ -1359,11 +1383,13 @@ func (r ApiTestEnumParametersRequest) Execute() (*_nethttp.Response, error) { } /* - * TestEnumParameters To test enum parameters - * To test enum parameters - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestEnumParametersRequest - */ +TestEnumParameters To test enum parameters + +To test enum parameters + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestEnumParametersRequest +*/ func (a *FakeApiService) TestEnumParameters(ctx _context.Context) ApiTestEnumParametersRequest { return ApiTestEnumParametersRequest{ ApiService: a, @@ -1371,9 +1397,7 @@ func (a *FakeApiService) TestEnumParameters(ctx _context.Context) ApiTestEnumPar } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *FakeApiService) TestEnumParametersExecute(r ApiTestEnumParametersRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -1474,26 +1498,32 @@ type ApiTestGroupParametersRequest struct { int64Group *int64 } +// Required String in group parameters func (r ApiTestGroupParametersRequest) RequiredStringGroup(requiredStringGroup int32) ApiTestGroupParametersRequest { r.requiredStringGroup = &requiredStringGroup return r } +// Required Boolean in group parameters func (r ApiTestGroupParametersRequest) RequiredBooleanGroup(requiredBooleanGroup bool) ApiTestGroupParametersRequest { r.requiredBooleanGroup = &requiredBooleanGroup return r } +// Required Integer in group parameters func (r ApiTestGroupParametersRequest) RequiredInt64Group(requiredInt64Group int64) ApiTestGroupParametersRequest { r.requiredInt64Group = &requiredInt64Group return r } +// String in group parameters func (r ApiTestGroupParametersRequest) StringGroup(stringGroup int32) ApiTestGroupParametersRequest { r.stringGroup = &stringGroup return r } +// Boolean in group parameters func (r ApiTestGroupParametersRequest) BooleanGroup(booleanGroup bool) ApiTestGroupParametersRequest { r.booleanGroup = &booleanGroup return r } +// Integer in group parameters func (r ApiTestGroupParametersRequest) Int64Group(int64Group int64) ApiTestGroupParametersRequest { r.int64Group = &int64Group return r @@ -1504,11 +1534,13 @@ func (r ApiTestGroupParametersRequest) Execute() (*_nethttp.Response, error) { } /* - * TestGroupParameters Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestGroupParametersRequest - */ +TestGroupParameters Fake endpoint to test group parameters (optional) + +Fake endpoint to test group parameters (optional) + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestGroupParametersRequest +*/ func (a *FakeApiService) TestGroupParameters(ctx _context.Context) ApiTestGroupParametersRequest { return ApiTestGroupParametersRequest{ ApiService: a, @@ -1516,9 +1548,7 @@ func (a *FakeApiService) TestGroupParameters(ctx _context.Context) ApiTestGroupP } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *FakeApiService) TestGroupParametersExecute(r ApiTestGroupParametersRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -1611,6 +1641,7 @@ type ApiTestInlineAdditionalPropertiesRequest struct { param *map[string]string } +// request body func (r ApiTestInlineAdditionalPropertiesRequest) Param(param map[string]string) ApiTestInlineAdditionalPropertiesRequest { r.param = ¶m return r @@ -1621,10 +1652,11 @@ func (r ApiTestInlineAdditionalPropertiesRequest) Execute() (*_nethttp.Response, } /* - * TestInlineAdditionalProperties test inline additionalProperties - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestInlineAdditionalPropertiesRequest - */ +TestInlineAdditionalProperties test inline additionalProperties + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestInlineAdditionalPropertiesRequest +*/ func (a *FakeApiService) TestInlineAdditionalProperties(ctx _context.Context) ApiTestInlineAdditionalPropertiesRequest { return ApiTestInlineAdditionalPropertiesRequest{ ApiService: a, @@ -1632,9 +1664,7 @@ func (a *FakeApiService) TestInlineAdditionalProperties(ctx _context.Context) Ap } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *FakeApiService) TestInlineAdditionalPropertiesExecute(r ApiTestInlineAdditionalPropertiesRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -1712,10 +1742,12 @@ type ApiTestJsonFormDataRequest struct { param2 *string } +// field1 func (r ApiTestJsonFormDataRequest) Param(param string) ApiTestJsonFormDataRequest { r.param = ¶m return r } +// field2 func (r ApiTestJsonFormDataRequest) Param2(param2 string) ApiTestJsonFormDataRequest { r.param2 = ¶m2 return r @@ -1726,10 +1758,11 @@ func (r ApiTestJsonFormDataRequest) Execute() (*_nethttp.Response, error) { } /* - * TestJsonFormData test json serialization of form data - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestJsonFormDataRequest - */ +TestJsonFormData test json serialization of form data + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestJsonFormDataRequest +*/ func (a *FakeApiService) TestJsonFormData(ctx _context.Context) ApiTestJsonFormDataRequest { return ApiTestJsonFormDataRequest{ ApiService: a, @@ -1737,9 +1770,7 @@ func (a *FakeApiService) TestJsonFormData(ctx _context.Context) ApiTestJsonFormD } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *FakeApiService) TestJsonFormDataExecute(r ApiTestJsonFormDataRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -1849,11 +1880,13 @@ func (r ApiTestQueryParameterCollectionFormatRequest) Execute() (*_nethttp.Respo } /* - * TestQueryParameterCollectionFormat Method for TestQueryParameterCollectionFormat - * To test the collection format in query parameters - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestQueryParameterCollectionFormatRequest - */ +TestQueryParameterCollectionFormat Method for TestQueryParameterCollectionFormat + +To test the collection format in query parameters + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestQueryParameterCollectionFormatRequest +*/ func (a *FakeApiService) TestQueryParameterCollectionFormat(ctx _context.Context) ApiTestQueryParameterCollectionFormatRequest { return ApiTestQueryParameterCollectionFormatRequest{ ApiService: a, @@ -1861,9 +1894,7 @@ func (a *FakeApiService) TestQueryParameterCollectionFormat(ctx _context.Context } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *FakeApiService) TestQueryParameterCollectionFormatExecute(r ApiTestQueryParameterCollectionFormatRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPut diff --git a/samples/client/petstore/go/go-petstore/api_fake_classname_tags123.go b/samples/client/petstore/go/go-petstore/api_fake_classname_tags123.go index 967fd856e41c..cc8592a1a785 100644 --- a/samples/client/petstore/go/go-petstore/api_fake_classname_tags123.go +++ b/samples/client/petstore/go/go-petstore/api_fake_classname_tags123.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,17 +26,17 @@ var ( type FakeClassnameTags123Api interface { /* - * TestClassname To test class name in snake case - * To test class name in snake case - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestClassnameRequest - */ + TestClassname To test class name in snake case + + To test class name in snake case + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestClassnameRequest + */ TestClassname(ctx _context.Context) ApiTestClassnameRequest - /* - * TestClassnameExecute executes the request - * @return Client - */ + // TestClassnameExecute executes the request + // @return Client TestClassnameExecute(r ApiTestClassnameRequest) (Client, *_nethttp.Response, error) } @@ -49,6 +49,7 @@ type ApiTestClassnameRequest struct { body *Client } +// client model func (r ApiTestClassnameRequest) Body(body Client) ApiTestClassnameRequest { r.body = &body return r @@ -59,11 +60,13 @@ func (r ApiTestClassnameRequest) Execute() (Client, *_nethttp.Response, error) { } /* - * TestClassname To test class name in snake case - * To test class name in snake case - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestClassnameRequest - */ +TestClassname To test class name in snake case + +To test class name in snake case + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestClassnameRequest +*/ func (a *FakeClassnameTags123ApiService) TestClassname(ctx _context.Context) ApiTestClassnameRequest { return ApiTestClassnameRequest{ ApiService: a, @@ -71,10 +74,8 @@ func (a *FakeClassnameTags123ApiService) TestClassname(ctx _context.Context) Api } } -/* - * Execute executes the request - * @return Client - */ +// Execute executes the request +// @return Client func (a *FakeClassnameTags123ApiService) TestClassnameExecute(r ApiTestClassnameRequest) (Client, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch diff --git a/samples/client/petstore/go/go-petstore/api_pet.go b/samples/client/petstore/go/go-petstore/api_pet.go index 73cf522a982b..9e806f501e58 100644 --- a/samples/client/petstore/go/go-petstore/api_pet.go +++ b/samples/client/petstore/go/go-petstore/api_pet.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -28,124 +28,121 @@ var ( type PetApi interface { /* - * AddPet Add a new pet to the store - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiAddPetRequest - */ + AddPet Add a new pet to the store + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAddPetRequest + */ AddPet(ctx _context.Context) ApiAddPetRequest - /* - * AddPetExecute executes the request - */ + // AddPetExecute executes the request AddPetExecute(r ApiAddPetRequest) (*_nethttp.Response, error) /* - * DeletePet Deletes a pet - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param petId Pet id to delete - * @return ApiDeletePetRequest - */ + DeletePet Deletes a pet + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param petId Pet id to delete + @return ApiDeletePetRequest + */ DeletePet(ctx _context.Context, petId int64) ApiDeletePetRequest - /* - * DeletePetExecute executes the request - */ + // DeletePetExecute executes the request DeletePetExecute(r ApiDeletePetRequest) (*_nethttp.Response, error) /* - * FindPetsByStatus Finds Pets by status - * Multiple status values can be provided with comma separated strings - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFindPetsByStatusRequest - */ + FindPetsByStatus Finds Pets by status + + Multiple status values can be provided with comma separated strings + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFindPetsByStatusRequest + */ FindPetsByStatus(ctx _context.Context) ApiFindPetsByStatusRequest - /* - * FindPetsByStatusExecute executes the request - * @return []Pet - */ + // FindPetsByStatusExecute executes the request + // @return []Pet FindPetsByStatusExecute(r ApiFindPetsByStatusRequest) ([]Pet, *_nethttp.Response, error) /* - * FindPetsByTags Finds Pets by tags - * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFindPetsByTagsRequest - */ + FindPetsByTags Finds Pets by tags + + Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFindPetsByTagsRequest + + Deprecated + */ FindPetsByTags(ctx _context.Context) ApiFindPetsByTagsRequest - /* - * FindPetsByTagsExecute executes the request - * @return []Pet - */ + // FindPetsByTagsExecute executes the request + // @return []Pet + // Deprecated FindPetsByTagsExecute(r ApiFindPetsByTagsRequest) ([]Pet, *_nethttp.Response, error) /* - * GetPetById Find pet by ID - * Returns a single pet - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param petId ID of pet to return - * @return ApiGetPetByIdRequest - */ + GetPetById Find pet by ID + + Returns a single pet + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param petId ID of pet to return + @return ApiGetPetByIdRequest + */ GetPetById(ctx _context.Context, petId int64) ApiGetPetByIdRequest - /* - * GetPetByIdExecute executes the request - * @return Pet - */ + // GetPetByIdExecute executes the request + // @return Pet GetPetByIdExecute(r ApiGetPetByIdRequest) (Pet, *_nethttp.Response, error) /* - * UpdatePet Update an existing pet - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiUpdatePetRequest - */ + UpdatePet Update an existing pet + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdatePetRequest + */ UpdatePet(ctx _context.Context) ApiUpdatePetRequest - /* - * UpdatePetExecute executes the request - */ + // UpdatePetExecute executes the request UpdatePetExecute(r ApiUpdatePetRequest) (*_nethttp.Response, error) /* - * UpdatePetWithForm Updates a pet in the store with form data - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param petId ID of pet that needs to be updated - * @return ApiUpdatePetWithFormRequest - */ + UpdatePetWithForm Updates a pet in the store with form data + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param petId ID of pet that needs to be updated + @return ApiUpdatePetWithFormRequest + */ UpdatePetWithForm(ctx _context.Context, petId int64) ApiUpdatePetWithFormRequest - /* - * UpdatePetWithFormExecute executes the request - */ + // UpdatePetWithFormExecute executes the request UpdatePetWithFormExecute(r ApiUpdatePetWithFormRequest) (*_nethttp.Response, error) /* - * UploadFile uploads an image - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param petId ID of pet to update - * @return ApiUploadFileRequest - */ + UploadFile uploads an image + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param petId ID of pet to update + @return ApiUploadFileRequest + */ UploadFile(ctx _context.Context, petId int64) ApiUploadFileRequest - /* - * UploadFileExecute executes the request - * @return ApiResponse - */ + // UploadFileExecute executes the request + // @return ApiResponse UploadFileExecute(r ApiUploadFileRequest) (ApiResponse, *_nethttp.Response, error) /* - * UploadFileWithRequiredFile uploads an image (required) - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param petId ID of pet to update - * @return ApiUploadFileWithRequiredFileRequest - */ + UploadFileWithRequiredFile uploads an image (required) + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param petId ID of pet to update + @return ApiUploadFileWithRequiredFileRequest + */ UploadFileWithRequiredFile(ctx _context.Context, petId int64) ApiUploadFileWithRequiredFileRequest - /* - * UploadFileWithRequiredFileExecute executes the request - * @return ApiResponse - */ + // UploadFileWithRequiredFileExecute executes the request + // @return ApiResponse UploadFileWithRequiredFileExecute(r ApiUploadFileWithRequiredFileRequest) (ApiResponse, *_nethttp.Response, error) } @@ -158,6 +155,7 @@ type ApiAddPetRequest struct { body *Pet } +// Pet object that needs to be added to the store func (r ApiAddPetRequest) Body(body Pet) ApiAddPetRequest { r.body = &body return r @@ -168,10 +166,11 @@ func (r ApiAddPetRequest) Execute() (*_nethttp.Response, error) { } /* - * AddPet Add a new pet to the store - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiAddPetRequest - */ +AddPet Add a new pet to the store + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAddPetRequest +*/ func (a *PetApiService) AddPet(ctx _context.Context) ApiAddPetRequest { return ApiAddPetRequest{ ApiService: a, @@ -179,9 +178,7 @@ func (a *PetApiService) AddPet(ctx _context.Context) ApiAddPetRequest { } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *PetApiService) AddPetExecute(r ApiAddPetRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -269,11 +266,12 @@ func (r ApiDeletePetRequest) Execute() (*_nethttp.Response, error) { } /* - * DeletePet Deletes a pet - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param petId Pet id to delete - * @return ApiDeletePetRequest - */ +DeletePet Deletes a pet + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param petId Pet id to delete + @return ApiDeletePetRequest +*/ func (a *PetApiService) DeletePet(ctx _context.Context, petId int64) ApiDeletePetRequest { return ApiDeletePetRequest{ ApiService: a, @@ -282,9 +280,7 @@ func (a *PetApiService) DeletePet(ctx _context.Context, petId int64) ApiDeletePe } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *PetApiService) DeletePetExecute(r ApiDeletePetRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -360,6 +356,7 @@ type ApiFindPetsByStatusRequest struct { status *[]string } +// Status values that need to be considered for filter func (r ApiFindPetsByStatusRequest) Status(status []string) ApiFindPetsByStatusRequest { r.status = &status return r @@ -370,11 +367,13 @@ func (r ApiFindPetsByStatusRequest) Execute() ([]Pet, *_nethttp.Response, error) } /* - * FindPetsByStatus Finds Pets by status - * Multiple status values can be provided with comma separated strings - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFindPetsByStatusRequest - */ +FindPetsByStatus Finds Pets by status + +Multiple status values can be provided with comma separated strings + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFindPetsByStatusRequest +*/ func (a *PetApiService) FindPetsByStatus(ctx _context.Context) ApiFindPetsByStatusRequest { return ApiFindPetsByStatusRequest{ ApiService: a, @@ -382,10 +381,8 @@ func (a *PetApiService) FindPetsByStatus(ctx _context.Context) ApiFindPetsByStat } } -/* - * Execute executes the request - * @return []Pet - */ +// Execute executes the request +// @return []Pet func (a *PetApiService) FindPetsByStatusExecute(r ApiFindPetsByStatusRequest) ([]Pet, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -471,6 +468,7 @@ type ApiFindPetsByTagsRequest struct { tags *[]string } +// Tags to filter by func (r ApiFindPetsByTagsRequest) Tags(tags []string) ApiFindPetsByTagsRequest { r.tags = &tags return r @@ -481,11 +479,15 @@ func (r ApiFindPetsByTagsRequest) Execute() ([]Pet, *_nethttp.Response, error) { } /* - * FindPetsByTags Finds Pets by tags - * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFindPetsByTagsRequest - */ +FindPetsByTags Finds Pets by tags + +Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFindPetsByTagsRequest + +Deprecated +*/ func (a *PetApiService) FindPetsByTags(ctx _context.Context) ApiFindPetsByTagsRequest { return ApiFindPetsByTagsRequest{ ApiService: a, @@ -493,10 +495,9 @@ func (a *PetApiService) FindPetsByTags(ctx _context.Context) ApiFindPetsByTagsRe } } -/* - * Execute executes the request - * @return []Pet - */ +// Execute executes the request +// @return []Pet +// Deprecated func (a *PetApiService) FindPetsByTagsExecute(r ApiFindPetsByTagsRequest) ([]Pet, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -588,12 +589,14 @@ func (r ApiGetPetByIdRequest) Execute() (Pet, *_nethttp.Response, error) { } /* - * GetPetById Find pet by ID - * Returns a single pet - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param petId ID of pet to return - * @return ApiGetPetByIdRequest - */ +GetPetById Find pet by ID + +Returns a single pet + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param petId ID of pet to return + @return ApiGetPetByIdRequest +*/ func (a *PetApiService) GetPetById(ctx _context.Context, petId int64) ApiGetPetByIdRequest { return ApiGetPetByIdRequest{ ApiService: a, @@ -602,10 +605,8 @@ func (a *PetApiService) GetPetById(ctx _context.Context, petId int64) ApiGetPetB } } -/* - * Execute executes the request - * @return Pet - */ +// Execute executes the request +// @return Pet func (a *PetApiService) GetPetByIdExecute(r ApiGetPetByIdRequest) (Pet, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -702,6 +703,7 @@ type ApiUpdatePetRequest struct { body *Pet } +// Pet object that needs to be added to the store func (r ApiUpdatePetRequest) Body(body Pet) ApiUpdatePetRequest { r.body = &body return r @@ -712,10 +714,11 @@ func (r ApiUpdatePetRequest) Execute() (*_nethttp.Response, error) { } /* - * UpdatePet Update an existing pet - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiUpdatePetRequest - */ +UpdatePet Update an existing pet + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdatePetRequest +*/ func (a *PetApiService) UpdatePet(ctx _context.Context) ApiUpdatePetRequest { return ApiUpdatePetRequest{ ApiService: a, @@ -723,9 +726,7 @@ func (a *PetApiService) UpdatePet(ctx _context.Context) ApiUpdatePetRequest { } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *PetApiService) UpdatePetExecute(r ApiUpdatePetRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPut @@ -804,10 +805,12 @@ type ApiUpdatePetWithFormRequest struct { status *string } +// Updated name of the pet func (r ApiUpdatePetWithFormRequest) Name(name string) ApiUpdatePetWithFormRequest { r.name = &name return r } +// Updated status of the pet func (r ApiUpdatePetWithFormRequest) Status(status string) ApiUpdatePetWithFormRequest { r.status = &status return r @@ -818,11 +821,12 @@ func (r ApiUpdatePetWithFormRequest) Execute() (*_nethttp.Response, error) { } /* - * UpdatePetWithForm Updates a pet in the store with form data - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param petId ID of pet that needs to be updated - * @return ApiUpdatePetWithFormRequest - */ +UpdatePetWithForm Updates a pet in the store with form data + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param petId ID of pet that needs to be updated + @return ApiUpdatePetWithFormRequest +*/ func (a *PetApiService) UpdatePetWithForm(ctx _context.Context, petId int64) ApiUpdatePetWithFormRequest { return ApiUpdatePetWithFormRequest{ ApiService: a, @@ -831,9 +835,7 @@ func (a *PetApiService) UpdatePetWithForm(ctx _context.Context, petId int64) Api } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *PetApiService) UpdatePetWithFormExecute(r ApiUpdatePetWithFormRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -914,10 +916,12 @@ type ApiUploadFileRequest struct { file **os.File } +// Additional data to pass to server func (r ApiUploadFileRequest) AdditionalMetadata(additionalMetadata string) ApiUploadFileRequest { r.additionalMetadata = &additionalMetadata return r } +// file to upload func (r ApiUploadFileRequest) File(file *os.File) ApiUploadFileRequest { r.file = &file return r @@ -928,11 +932,12 @@ func (r ApiUploadFileRequest) Execute() (ApiResponse, *_nethttp.Response, error) } /* - * UploadFile uploads an image - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param petId ID of pet to update - * @return ApiUploadFileRequest - */ +UploadFile uploads an image + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param petId ID of pet to update + @return ApiUploadFileRequest +*/ func (a *PetApiService) UploadFile(ctx _context.Context, petId int64) ApiUploadFileRequest { return ApiUploadFileRequest{ ApiService: a, @@ -941,10 +946,8 @@ func (a *PetApiService) UploadFile(ctx _context.Context, petId int64) ApiUploadF } } -/* - * Execute executes the request - * @return ApiResponse - */ +// Execute executes the request +// @return ApiResponse func (a *PetApiService) UploadFileExecute(r ApiUploadFileRequest) (ApiResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -1043,10 +1046,12 @@ type ApiUploadFileWithRequiredFileRequest struct { additionalMetadata *string } +// file to upload func (r ApiUploadFileWithRequiredFileRequest) RequiredFile(requiredFile *os.File) ApiUploadFileWithRequiredFileRequest { r.requiredFile = &requiredFile return r } +// Additional data to pass to server func (r ApiUploadFileWithRequiredFileRequest) AdditionalMetadata(additionalMetadata string) ApiUploadFileWithRequiredFileRequest { r.additionalMetadata = &additionalMetadata return r @@ -1057,11 +1062,12 @@ func (r ApiUploadFileWithRequiredFileRequest) Execute() (ApiResponse, *_nethttp. } /* - * UploadFileWithRequiredFile uploads an image (required) - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param petId ID of pet to update - * @return ApiUploadFileWithRequiredFileRequest - */ +UploadFileWithRequiredFile uploads an image (required) + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param petId ID of pet to update + @return ApiUploadFileWithRequiredFileRequest +*/ func (a *PetApiService) UploadFileWithRequiredFile(ctx _context.Context, petId int64) ApiUploadFileWithRequiredFileRequest { return ApiUploadFileWithRequiredFileRequest{ ApiService: a, @@ -1070,10 +1076,8 @@ func (a *PetApiService) UploadFileWithRequiredFile(ctx _context.Context, petId i } } -/* - * Execute executes the request - * @return ApiResponse - */ +// Execute executes the request +// @return ApiResponse func (a *PetApiService) UploadFileWithRequiredFileExecute(r ApiUploadFileWithRequiredFileRequest) (ApiResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost diff --git a/samples/client/petstore/go/go-petstore/api_store.go b/samples/client/petstore/go/go-petstore/api_store.go index e3120f0b246f..0d31a9d574a5 100644 --- a/samples/client/petstore/go/go-petstore/api_store.go +++ b/samples/client/petstore/go/go-petstore/api_store.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -27,59 +27,58 @@ var ( type StoreApi interface { /* - * DeleteOrder Delete purchase order by ID - * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param orderId ID of the order that needs to be deleted - * @return ApiDeleteOrderRequest - */ + DeleteOrder Delete purchase order by ID + + For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId ID of the order that needs to be deleted + @return ApiDeleteOrderRequest + */ DeleteOrder(ctx _context.Context, orderId string) ApiDeleteOrderRequest - /* - * DeleteOrderExecute executes the request - */ + // DeleteOrderExecute executes the request DeleteOrderExecute(r ApiDeleteOrderRequest) (*_nethttp.Response, error) /* - * GetInventory Returns pet inventories by status - * Returns a map of status codes to quantities - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiGetInventoryRequest - */ + GetInventory Returns pet inventories by status + + Returns a map of status codes to quantities + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetInventoryRequest + */ GetInventory(ctx _context.Context) ApiGetInventoryRequest - /* - * GetInventoryExecute executes the request - * @return map[string]int32 - */ + // GetInventoryExecute executes the request + // @return map[string]int32 GetInventoryExecute(r ApiGetInventoryRequest) (map[string]int32, *_nethttp.Response, error) /* - * GetOrderById Find purchase order by ID - * For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param orderId ID of pet that needs to be fetched - * @return ApiGetOrderByIdRequest - */ + GetOrderById Find purchase order by ID + + For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId ID of pet that needs to be fetched + @return ApiGetOrderByIdRequest + */ GetOrderById(ctx _context.Context, orderId int64) ApiGetOrderByIdRequest - /* - * GetOrderByIdExecute executes the request - * @return Order - */ + // GetOrderByIdExecute executes the request + // @return Order GetOrderByIdExecute(r ApiGetOrderByIdRequest) (Order, *_nethttp.Response, error) /* - * PlaceOrder Place an order for a pet - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiPlaceOrderRequest - */ + PlaceOrder Place an order for a pet + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPlaceOrderRequest + */ PlaceOrder(ctx _context.Context) ApiPlaceOrderRequest - /* - * PlaceOrderExecute executes the request - * @return Order - */ + // PlaceOrderExecute executes the request + // @return Order PlaceOrderExecute(r ApiPlaceOrderRequest) (Order, *_nethttp.Response, error) } @@ -98,12 +97,14 @@ func (r ApiDeleteOrderRequest) Execute() (*_nethttp.Response, error) { } /* - * DeleteOrder Delete purchase order by ID - * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param orderId ID of the order that needs to be deleted - * @return ApiDeleteOrderRequest - */ +DeleteOrder Delete purchase order by ID + +For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId ID of the order that needs to be deleted + @return ApiDeleteOrderRequest +*/ func (a *StoreApiService) DeleteOrder(ctx _context.Context, orderId string) ApiDeleteOrderRequest { return ApiDeleteOrderRequest{ ApiService: a, @@ -112,9 +113,7 @@ func (a *StoreApiService) DeleteOrder(ctx _context.Context, orderId string) ApiD } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *StoreApiService) DeleteOrderExecute(r ApiDeleteOrderRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -192,11 +191,13 @@ func (r ApiGetInventoryRequest) Execute() (map[string]int32, *_nethttp.Response, } /* - * GetInventory Returns pet inventories by status - * Returns a map of status codes to quantities - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiGetInventoryRequest - */ +GetInventory Returns pet inventories by status + +Returns a map of status codes to quantities + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetInventoryRequest +*/ func (a *StoreApiService) GetInventory(ctx _context.Context) ApiGetInventoryRequest { return ApiGetInventoryRequest{ ApiService: a, @@ -204,10 +205,8 @@ func (a *StoreApiService) GetInventory(ctx _context.Context) ApiGetInventoryRequ } } -/* - * Execute executes the request - * @return map[string]int32 - */ +// Execute executes the request +// @return map[string]int32 func (a *StoreApiService) GetInventoryExecute(r ApiGetInventoryRequest) (map[string]int32, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -309,12 +308,14 @@ func (r ApiGetOrderByIdRequest) Execute() (Order, *_nethttp.Response, error) { } /* - * GetOrderById Find purchase order by ID - * For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param orderId ID of pet that needs to be fetched - * @return ApiGetOrderByIdRequest - */ +GetOrderById Find purchase order by ID + +For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId ID of pet that needs to be fetched + @return ApiGetOrderByIdRequest +*/ func (a *StoreApiService) GetOrderById(ctx _context.Context, orderId int64) ApiGetOrderByIdRequest { return ApiGetOrderByIdRequest{ ApiService: a, @@ -323,10 +324,8 @@ func (a *StoreApiService) GetOrderById(ctx _context.Context, orderId int64) ApiG } } -/* - * Execute executes the request - * @return Order - */ +// Execute executes the request +// @return Order func (a *StoreApiService) GetOrderByIdExecute(r ApiGetOrderByIdRequest) (Order, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -415,6 +414,7 @@ type ApiPlaceOrderRequest struct { body *Order } +// order placed for purchasing the pet func (r ApiPlaceOrderRequest) Body(body Order) ApiPlaceOrderRequest { r.body = &body return r @@ -425,10 +425,11 @@ func (r ApiPlaceOrderRequest) Execute() (Order, *_nethttp.Response, error) { } /* - * PlaceOrder Place an order for a pet - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiPlaceOrderRequest - */ +PlaceOrder Place an order for a pet + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPlaceOrderRequest +*/ func (a *StoreApiService) PlaceOrder(ctx _context.Context) ApiPlaceOrderRequest { return ApiPlaceOrderRequest{ ApiService: a, @@ -436,10 +437,8 @@ func (a *StoreApiService) PlaceOrder(ctx _context.Context) ApiPlaceOrderRequest } } -/* - * Execute executes the request - * @return Order - */ +// Execute executes the request +// @return Order func (a *StoreApiService) PlaceOrderExecute(r ApiPlaceOrderRequest) (Order, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost diff --git a/samples/client/petstore/go/go-petstore/api_user.go b/samples/client/petstore/go/go-petstore/api_user.go index 7e6d6991b800..b1f6a57f9c4e 100644 --- a/samples/client/petstore/go/go-petstore/api_user.go +++ b/samples/client/petstore/go/go-petstore/api_user.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -27,107 +27,102 @@ var ( type UserApi interface { /* - * CreateUser Create user - * This can only be done by the logged in user. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateUserRequest - */ + CreateUser Create user + + This can only be done by the logged in user. + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateUserRequest + */ CreateUser(ctx _context.Context) ApiCreateUserRequest - /* - * CreateUserExecute executes the request - */ + // CreateUserExecute executes the request CreateUserExecute(r ApiCreateUserRequest) (*_nethttp.Response, error) /* - * CreateUsersWithArrayInput Creates list of users with given input array - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateUsersWithArrayInputRequest - */ + CreateUsersWithArrayInput Creates list of users with given input array + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateUsersWithArrayInputRequest + */ CreateUsersWithArrayInput(ctx _context.Context) ApiCreateUsersWithArrayInputRequest - /* - * CreateUsersWithArrayInputExecute executes the request - */ + // CreateUsersWithArrayInputExecute executes the request CreateUsersWithArrayInputExecute(r ApiCreateUsersWithArrayInputRequest) (*_nethttp.Response, error) /* - * CreateUsersWithListInput Creates list of users with given input array - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateUsersWithListInputRequest - */ + CreateUsersWithListInput Creates list of users with given input array + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateUsersWithListInputRequest + */ CreateUsersWithListInput(ctx _context.Context) ApiCreateUsersWithListInputRequest - /* - * CreateUsersWithListInputExecute executes the request - */ + // CreateUsersWithListInputExecute executes the request CreateUsersWithListInputExecute(r ApiCreateUsersWithListInputRequest) (*_nethttp.Response, error) /* - * DeleteUser Delete user - * This can only be done by the logged in user. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param username The name that needs to be deleted - * @return ApiDeleteUserRequest - */ + DeleteUser Delete user + + This can only be done by the logged in user. + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param username The name that needs to be deleted + @return ApiDeleteUserRequest + */ DeleteUser(ctx _context.Context, username string) ApiDeleteUserRequest - /* - * DeleteUserExecute executes the request - */ + // DeleteUserExecute executes the request DeleteUserExecute(r ApiDeleteUserRequest) (*_nethttp.Response, error) /* - * GetUserByName Get user by user name - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param username The name that needs to be fetched. Use user1 for testing. - * @return ApiGetUserByNameRequest - */ + GetUserByName Get user by user name + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param username The name that needs to be fetched. Use user1 for testing. + @return ApiGetUserByNameRequest + */ GetUserByName(ctx _context.Context, username string) ApiGetUserByNameRequest - /* - * GetUserByNameExecute executes the request - * @return User - */ + // GetUserByNameExecute executes the request + // @return User GetUserByNameExecute(r ApiGetUserByNameRequest) (User, *_nethttp.Response, error) /* - * LoginUser Logs user into the system - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiLoginUserRequest - */ + LoginUser Logs user into the system + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLoginUserRequest + */ LoginUser(ctx _context.Context) ApiLoginUserRequest - /* - * LoginUserExecute executes the request - * @return string - */ + // LoginUserExecute executes the request + // @return string LoginUserExecute(r ApiLoginUserRequest) (string, *_nethttp.Response, error) /* - * LogoutUser Logs out current logged in user session - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiLogoutUserRequest - */ + LogoutUser Logs out current logged in user session + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLogoutUserRequest + */ LogoutUser(ctx _context.Context) ApiLogoutUserRequest - /* - * LogoutUserExecute executes the request - */ + // LogoutUserExecute executes the request LogoutUserExecute(r ApiLogoutUserRequest) (*_nethttp.Response, error) /* - * UpdateUser Updated user - * This can only be done by the logged in user. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param username name that need to be deleted - * @return ApiUpdateUserRequest - */ + UpdateUser Updated user + + This can only be done by the logged in user. + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param username name that need to be deleted + @return ApiUpdateUserRequest + */ UpdateUser(ctx _context.Context, username string) ApiUpdateUserRequest - /* - * UpdateUserExecute executes the request - */ + // UpdateUserExecute executes the request UpdateUserExecute(r ApiUpdateUserRequest) (*_nethttp.Response, error) } @@ -140,6 +135,7 @@ type ApiCreateUserRequest struct { body *User } +// Created user object func (r ApiCreateUserRequest) Body(body User) ApiCreateUserRequest { r.body = &body return r @@ -150,11 +146,13 @@ func (r ApiCreateUserRequest) Execute() (*_nethttp.Response, error) { } /* - * CreateUser Create user - * This can only be done by the logged in user. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateUserRequest - */ +CreateUser Create user + +This can only be done by the logged in user. + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateUserRequest +*/ func (a *UserApiService) CreateUser(ctx _context.Context) ApiCreateUserRequest { return ApiCreateUserRequest{ ApiService: a, @@ -162,9 +160,7 @@ func (a *UserApiService) CreateUser(ctx _context.Context) ApiCreateUserRequest { } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *UserApiService) CreateUserExecute(r ApiCreateUserRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -241,6 +237,7 @@ type ApiCreateUsersWithArrayInputRequest struct { body *[]User } +// List of user object func (r ApiCreateUsersWithArrayInputRequest) Body(body []User) ApiCreateUsersWithArrayInputRequest { r.body = &body return r @@ -251,10 +248,11 @@ func (r ApiCreateUsersWithArrayInputRequest) Execute() (*_nethttp.Response, erro } /* - * CreateUsersWithArrayInput Creates list of users with given input array - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateUsersWithArrayInputRequest - */ +CreateUsersWithArrayInput Creates list of users with given input array + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateUsersWithArrayInputRequest +*/ func (a *UserApiService) CreateUsersWithArrayInput(ctx _context.Context) ApiCreateUsersWithArrayInputRequest { return ApiCreateUsersWithArrayInputRequest{ ApiService: a, @@ -262,9 +260,7 @@ func (a *UserApiService) CreateUsersWithArrayInput(ctx _context.Context) ApiCrea } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *UserApiService) CreateUsersWithArrayInputExecute(r ApiCreateUsersWithArrayInputRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -341,6 +337,7 @@ type ApiCreateUsersWithListInputRequest struct { body *[]User } +// List of user object func (r ApiCreateUsersWithListInputRequest) Body(body []User) ApiCreateUsersWithListInputRequest { r.body = &body return r @@ -351,10 +348,11 @@ func (r ApiCreateUsersWithListInputRequest) Execute() (*_nethttp.Response, error } /* - * CreateUsersWithListInput Creates list of users with given input array - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateUsersWithListInputRequest - */ +CreateUsersWithListInput Creates list of users with given input array + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateUsersWithListInputRequest +*/ func (a *UserApiService) CreateUsersWithListInput(ctx _context.Context) ApiCreateUsersWithListInputRequest { return ApiCreateUsersWithListInputRequest{ ApiService: a, @@ -362,9 +360,7 @@ func (a *UserApiService) CreateUsersWithListInput(ctx _context.Context) ApiCreat } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *UserApiService) CreateUsersWithListInputExecute(r ApiCreateUsersWithListInputRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -447,12 +443,14 @@ func (r ApiDeleteUserRequest) Execute() (*_nethttp.Response, error) { } /* - * DeleteUser Delete user - * This can only be done by the logged in user. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param username The name that needs to be deleted - * @return ApiDeleteUserRequest - */ +DeleteUser Delete user + +This can only be done by the logged in user. + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param username The name that needs to be deleted + @return ApiDeleteUserRequest +*/ func (a *UserApiService) DeleteUser(ctx _context.Context, username string) ApiDeleteUserRequest { return ApiDeleteUserRequest{ ApiService: a, @@ -461,9 +459,7 @@ func (a *UserApiService) DeleteUser(ctx _context.Context, username string) ApiDe } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *UserApiService) DeleteUserExecute(r ApiDeleteUserRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -542,11 +538,12 @@ func (r ApiGetUserByNameRequest) Execute() (User, *_nethttp.Response, error) { } /* - * GetUserByName Get user by user name - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param username The name that needs to be fetched. Use user1 for testing. - * @return ApiGetUserByNameRequest - */ +GetUserByName Get user by user name + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param username The name that needs to be fetched. Use user1 for testing. + @return ApiGetUserByNameRequest +*/ func (a *UserApiService) GetUserByName(ctx _context.Context, username string) ApiGetUserByNameRequest { return ApiGetUserByNameRequest{ ApiService: a, @@ -555,10 +552,8 @@ func (a *UserApiService) GetUserByName(ctx _context.Context, username string) Ap } } -/* - * Execute executes the request - * @return User - */ +// Execute executes the request +// @return User func (a *UserApiService) GetUserByNameExecute(r ApiGetUserByNameRequest) (User, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -642,10 +637,12 @@ type ApiLoginUserRequest struct { password *string } +// The user name for login func (r ApiLoginUserRequest) Username(username string) ApiLoginUserRequest { r.username = &username return r } +// The password for login in clear text func (r ApiLoginUserRequest) Password(password string) ApiLoginUserRequest { r.password = &password return r @@ -656,10 +653,11 @@ func (r ApiLoginUserRequest) Execute() (string, *_nethttp.Response, error) { } /* - * LoginUser Logs user into the system - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiLoginUserRequest - */ +LoginUser Logs user into the system + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLoginUserRequest +*/ func (a *UserApiService) LoginUser(ctx _context.Context) ApiLoginUserRequest { return ApiLoginUserRequest{ ApiService: a, @@ -667,10 +665,8 @@ func (a *UserApiService) LoginUser(ctx _context.Context) ApiLoginUserRequest { } } -/* - * Execute executes the request - * @return string - */ +// Execute executes the request +// @return string func (a *UserApiService) LoginUserExecute(r ApiLoginUserRequest) (string, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -765,10 +761,11 @@ func (r ApiLogoutUserRequest) Execute() (*_nethttp.Response, error) { } /* - * LogoutUser Logs out current logged in user session - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiLogoutUserRequest - */ +LogoutUser Logs out current logged in user session + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLogoutUserRequest +*/ func (a *UserApiService) LogoutUser(ctx _context.Context) ApiLogoutUserRequest { return ApiLogoutUserRequest{ ApiService: a, @@ -776,9 +773,7 @@ func (a *UserApiService) LogoutUser(ctx _context.Context) ApiLogoutUserRequest { } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *UserApiService) LogoutUserExecute(r ApiLogoutUserRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -851,6 +846,7 @@ type ApiUpdateUserRequest struct { body *User } +// Updated user object func (r ApiUpdateUserRequest) Body(body User) ApiUpdateUserRequest { r.body = &body return r @@ -861,12 +857,14 @@ func (r ApiUpdateUserRequest) Execute() (*_nethttp.Response, error) { } /* - * UpdateUser Updated user - * This can only be done by the logged in user. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param username name that need to be deleted - * @return ApiUpdateUserRequest - */ +UpdateUser Updated user + +This can only be done by the logged in user. + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param username name that need to be deleted + @return ApiUpdateUserRequest +*/ func (a *UserApiService) UpdateUser(ctx _context.Context, username string) ApiUpdateUserRequest { return ApiUpdateUserRequest{ ApiService: a, @@ -875,9 +873,7 @@ func (a *UserApiService) UpdateUser(ctx _context.Context, username string) ApiUp } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *UserApiService) UpdateUserExecute(r ApiUpdateUserRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPut diff --git a/samples/client/petstore/go/go-petstore/client.go b/samples/client/petstore/go/go-petstore/client.go index 411570ac8719..47bde2f86907 100644 --- a/samples/client/petstore/go/go-petstore/client.go +++ b/samples/client/petstore/go/go-petstore/client.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/configuration.go b/samples/client/petstore/go/go-petstore/configuration.go index 80e1594314eb..326eb245319e 100644 --- a/samples/client/petstore/go/go-petstore/configuration.go +++ b/samples/client/petstore/go/go-petstore/configuration.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_200_response.go b/samples/client/petstore/go/go-petstore/model_200_response.go index d81033d6c1fe..68e469454aeb 100644 --- a/samples/client/petstore/go/go-petstore/model_200_response.go +++ b/samples/client/petstore/go/go-petstore/model_200_response.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_additional_properties_any_type.go b/samples/client/petstore/go/go-petstore/model_additional_properties_any_type.go index e64cd6da8e81..ee9be1b1d873 100644 --- a/samples/client/petstore/go/go-petstore/model_additional_properties_any_type.go +++ b/samples/client/petstore/go/go-petstore/model_additional_properties_any_type.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_additional_properties_array.go b/samples/client/petstore/go/go-petstore/model_additional_properties_array.go index 79ab0de4922e..5d2cd29a4fca 100644 --- a/samples/client/petstore/go/go-petstore/model_additional_properties_array.go +++ b/samples/client/petstore/go/go-petstore/model_additional_properties_array.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_additional_properties_boolean.go b/samples/client/petstore/go/go-petstore/model_additional_properties_boolean.go index ef9220a184b8..eaa524de6a61 100644 --- a/samples/client/petstore/go/go-petstore/model_additional_properties_boolean.go +++ b/samples/client/petstore/go/go-petstore/model_additional_properties_boolean.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_additional_properties_class.go b/samples/client/petstore/go/go-petstore/model_additional_properties_class.go index 70f862dd4c60..5b44d7e51ff8 100644 --- a/samples/client/petstore/go/go-petstore/model_additional_properties_class.go +++ b/samples/client/petstore/go/go-petstore/model_additional_properties_class.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_additional_properties_integer.go b/samples/client/petstore/go/go-petstore/model_additional_properties_integer.go index e69c3917200e..d1e86c00c626 100644 --- a/samples/client/petstore/go/go-petstore/model_additional_properties_integer.go +++ b/samples/client/petstore/go/go-petstore/model_additional_properties_integer.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_additional_properties_number.go b/samples/client/petstore/go/go-petstore/model_additional_properties_number.go index 7b126bb7608e..6db900c29fcd 100644 --- a/samples/client/petstore/go/go-petstore/model_additional_properties_number.go +++ b/samples/client/petstore/go/go-petstore/model_additional_properties_number.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_additional_properties_object.go b/samples/client/petstore/go/go-petstore/model_additional_properties_object.go index c7755491ad19..ec78c54ca630 100644 --- a/samples/client/petstore/go/go-petstore/model_additional_properties_object.go +++ b/samples/client/petstore/go/go-petstore/model_additional_properties_object.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_additional_properties_string.go b/samples/client/petstore/go/go-petstore/model_additional_properties_string.go index 9e8cf98a0c06..7856fc315580 100644 --- a/samples/client/petstore/go/go-petstore/model_additional_properties_string.go +++ b/samples/client/petstore/go/go-petstore/model_additional_properties_string.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_animal.go b/samples/client/petstore/go/go-petstore/model_animal.go index e6968a95e153..0c942ae9b860 100644 --- a/samples/client/petstore/go/go-petstore/model_animal.go +++ b/samples/client/petstore/go/go-petstore/model_animal.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_api_response.go b/samples/client/petstore/go/go-petstore/model_api_response.go index 1927c67baebd..216600a1e388 100644 --- a/samples/client/petstore/go/go-petstore/model_api_response.go +++ b/samples/client/petstore/go/go-petstore/model_api_response.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_array_of_array_of_number_only.go b/samples/client/petstore/go/go-petstore/model_array_of_array_of_number_only.go index 09f460e3677b..29fbda5bfc80 100644 --- a/samples/client/petstore/go/go-petstore/model_array_of_array_of_number_only.go +++ b/samples/client/petstore/go/go-petstore/model_array_of_array_of_number_only.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_array_of_number_only.go b/samples/client/petstore/go/go-petstore/model_array_of_number_only.go index 2872f6e50bb0..1c6b5b2374b9 100644 --- a/samples/client/petstore/go/go-petstore/model_array_of_number_only.go +++ b/samples/client/petstore/go/go-petstore/model_array_of_number_only.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_array_test_.go b/samples/client/petstore/go/go-petstore/model_array_test_.go index 393c2161a636..54f72759d3f1 100644 --- a/samples/client/petstore/go/go-petstore/model_array_test_.go +++ b/samples/client/petstore/go/go-petstore/model_array_test_.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_big_cat.go b/samples/client/petstore/go/go-petstore/model_big_cat.go index 7400d27f62ea..70a5e4c76c27 100644 --- a/samples/client/petstore/go/go-petstore/model_big_cat.go +++ b/samples/client/petstore/go/go-petstore/model_big_cat.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_big_cat_all_of.go b/samples/client/petstore/go/go-petstore/model_big_cat_all_of.go index fc6347884633..4d36af2a2039 100644 --- a/samples/client/petstore/go/go-petstore/model_big_cat_all_of.go +++ b/samples/client/petstore/go/go-petstore/model_big_cat_all_of.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_capitalization.go b/samples/client/petstore/go/go-petstore/model_capitalization.go index d9d718c80e0f..39d8987dd5c7 100644 --- a/samples/client/petstore/go/go-petstore/model_capitalization.go +++ b/samples/client/petstore/go/go-petstore/model_capitalization.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_cat.go b/samples/client/petstore/go/go-petstore/model_cat.go index 88ebf1b620a3..75f71f076233 100644 --- a/samples/client/petstore/go/go-petstore/model_cat.go +++ b/samples/client/petstore/go/go-petstore/model_cat.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_cat_all_of.go b/samples/client/petstore/go/go-petstore/model_cat_all_of.go index 5eb12f897e8a..0a08b6b34760 100644 --- a/samples/client/petstore/go/go-petstore/model_cat_all_of.go +++ b/samples/client/petstore/go/go-petstore/model_cat_all_of.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_category.go b/samples/client/petstore/go/go-petstore/model_category.go index 91be54e66e4f..53d14123e61a 100644 --- a/samples/client/petstore/go/go-petstore/model_category.go +++ b/samples/client/petstore/go/go-petstore/model_category.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_class_model.go b/samples/client/petstore/go/go-petstore/model_class_model.go index 48328a82b858..b1d328e883f0 100644 --- a/samples/client/petstore/go/go-petstore/model_class_model.go +++ b/samples/client/petstore/go/go-petstore/model_class_model.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_client.go b/samples/client/petstore/go/go-petstore/model_client.go index 37a83eefa326..0a441819fe17 100644 --- a/samples/client/petstore/go/go-petstore/model_client.go +++ b/samples/client/petstore/go/go-petstore/model_client.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_dog.go b/samples/client/petstore/go/go-petstore/model_dog.go index e920fc4a987a..526597b6a66f 100644 --- a/samples/client/petstore/go/go-petstore/model_dog.go +++ b/samples/client/petstore/go/go-petstore/model_dog.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_dog_all_of.go b/samples/client/petstore/go/go-petstore/model_dog_all_of.go index ab1f8b040c85..b73240b7ccec 100644 --- a/samples/client/petstore/go/go-petstore/model_dog_all_of.go +++ b/samples/client/petstore/go/go-petstore/model_dog_all_of.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_enum_arrays.go b/samples/client/petstore/go/go-petstore/model_enum_arrays.go index 9dd9477a3b5c..ed2f6e8b145f 100644 --- a/samples/client/petstore/go/go-petstore/model_enum_arrays.go +++ b/samples/client/petstore/go/go-petstore/model_enum_arrays.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_enum_class.go b/samples/client/petstore/go/go-petstore/model_enum_class.go index 512004b7904b..03f680f6ff30 100644 --- a/samples/client/petstore/go/go-petstore/model_enum_class.go +++ b/samples/client/petstore/go/go-petstore/model_enum_class.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_enum_test_.go b/samples/client/petstore/go/go-petstore/model_enum_test_.go index f8dda4314bc3..c6d96da3d722 100644 --- a/samples/client/petstore/go/go-petstore/model_enum_test_.go +++ b/samples/client/petstore/go/go-petstore/model_enum_test_.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_file.go b/samples/client/petstore/go/go-petstore/model_file.go index 9d110b00a067..54a580b87eac 100644 --- a/samples/client/petstore/go/go-petstore/model_file.go +++ b/samples/client/petstore/go/go-petstore/model_file.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_file_schema_test_class.go b/samples/client/petstore/go/go-petstore/model_file_schema_test_class.go index c9ea7666caac..78fbc5aa2c24 100644 --- a/samples/client/petstore/go/go-petstore/model_file_schema_test_class.go +++ b/samples/client/petstore/go/go-petstore/model_file_schema_test_class.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_format_test_.go b/samples/client/petstore/go/go-petstore/model_format_test_.go index cbf31097f5df..67f9fff47af6 100644 --- a/samples/client/petstore/go/go-petstore/model_format_test_.go +++ b/samples/client/petstore/go/go-petstore/model_format_test_.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_has_only_read_only.go b/samples/client/petstore/go/go-petstore/model_has_only_read_only.go index 7db904fae11d..364faf15a4d1 100644 --- a/samples/client/petstore/go/go-petstore/model_has_only_read_only.go +++ b/samples/client/petstore/go/go-petstore/model_has_only_read_only.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_list.go b/samples/client/petstore/go/go-petstore/model_list.go index 740d4585d1ee..75487f7b0306 100644 --- a/samples/client/petstore/go/go-petstore/model_list.go +++ b/samples/client/petstore/go/go-petstore/model_list.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_map_test_.go b/samples/client/petstore/go/go-petstore/model_map_test_.go index 28f299efba89..71e56a27d89e 100644 --- a/samples/client/petstore/go/go-petstore/model_map_test_.go +++ b/samples/client/petstore/go/go-petstore/model_map_test_.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_mixed_properties_and_additional_properties_class.go b/samples/client/petstore/go/go-petstore/model_mixed_properties_and_additional_properties_class.go index ac54c8008348..3d2a9b1dcaf2 100644 --- a/samples/client/petstore/go/go-petstore/model_mixed_properties_and_additional_properties_class.go +++ b/samples/client/petstore/go/go-petstore/model_mixed_properties_and_additional_properties_class.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_name.go b/samples/client/petstore/go/go-petstore/model_name.go index f9638d476b9b..d423411e2397 100644 --- a/samples/client/petstore/go/go-petstore/model_name.go +++ b/samples/client/petstore/go/go-petstore/model_name.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_number_only.go b/samples/client/petstore/go/go-petstore/model_number_only.go index aca9784bc881..5635629f38f4 100644 --- a/samples/client/petstore/go/go-petstore/model_number_only.go +++ b/samples/client/petstore/go/go-petstore/model_number_only.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_order.go b/samples/client/petstore/go/go-petstore/model_order.go index bef34a6c8594..fe097aa01cad 100644 --- a/samples/client/petstore/go/go-petstore/model_order.go +++ b/samples/client/petstore/go/go-petstore/model_order.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_outer_composite.go b/samples/client/petstore/go/go-petstore/model_outer_composite.go index 8679bfa7c96e..77a0e226f70a 100644 --- a/samples/client/petstore/go/go-petstore/model_outer_composite.go +++ b/samples/client/petstore/go/go-petstore/model_outer_composite.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_outer_enum.go b/samples/client/petstore/go/go-petstore/model_outer_enum.go index a381d0e7615c..2c275f56e8d2 100644 --- a/samples/client/petstore/go/go-petstore/model_outer_enum.go +++ b/samples/client/petstore/go/go-petstore/model_outer_enum.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_pet.go b/samples/client/petstore/go/go-petstore/model_pet.go index 6a2e1809e3a2..2d07615cb4fe 100644 --- a/samples/client/petstore/go/go-petstore/model_pet.go +++ b/samples/client/petstore/go/go-petstore/model_pet.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_read_only_first.go b/samples/client/petstore/go/go-petstore/model_read_only_first.go index aac74b8325e9..23766a7a46b4 100644 --- a/samples/client/petstore/go/go-petstore/model_read_only_first.go +++ b/samples/client/petstore/go/go-petstore/model_read_only_first.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_return.go b/samples/client/petstore/go/go-petstore/model_return.go index 7c7f14dbd090..3949d2e26bdf 100644 --- a/samples/client/petstore/go/go-petstore/model_return.go +++ b/samples/client/petstore/go/go-petstore/model_return.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_special_model_name.go b/samples/client/petstore/go/go-petstore/model_special_model_name.go index 6b07421ad310..7f0535ee23c7 100644 --- a/samples/client/petstore/go/go-petstore/model_special_model_name.go +++ b/samples/client/petstore/go/go-petstore/model_special_model_name.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_tag.go b/samples/client/petstore/go/go-petstore/model_tag.go index 68760aa1f806..ae0ed723b7c2 100644 --- a/samples/client/petstore/go/go-petstore/model_tag.go +++ b/samples/client/petstore/go/go-petstore/model_tag.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_type_holder_default.go b/samples/client/petstore/go/go-petstore/model_type_holder_default.go index 11e394454bdf..91d7c3014b6c 100644 --- a/samples/client/petstore/go/go-petstore/model_type_holder_default.go +++ b/samples/client/petstore/go/go-petstore/model_type_holder_default.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_type_holder_example.go b/samples/client/petstore/go/go-petstore/model_type_holder_example.go index 81fbed36ed4c..084c4d4c380c 100644 --- a/samples/client/petstore/go/go-petstore/model_type_holder_example.go +++ b/samples/client/petstore/go/go-petstore/model_type_holder_example.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_user.go b/samples/client/petstore/go/go-petstore/model_user.go index b0591e9c8949..01ab25a523b8 100644 --- a/samples/client/petstore/go/go-petstore/model_user.go +++ b/samples/client/petstore/go/go-petstore/model_user.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/model_xml_item.go b/samples/client/petstore/go/go-petstore/model_xml_item.go index 0e0ccabb4101..4d01502ae73d 100644 --- a/samples/client/petstore/go/go-petstore/model_xml_item.go +++ b/samples/client/petstore/go/go-petstore/model_xml_item.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/response.go b/samples/client/petstore/go/go-petstore/response.go index d8189716b450..60c5d20ba466 100644 --- a/samples/client/petstore/go/go-petstore/response.go +++ b/samples/client/petstore/go/go-petstore/response.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/go/go-petstore/utils.go b/samples/client/petstore/go/go-petstore/utils.go index b35436c11f56..db7f0c4651db 100644 --- a/samples/client/petstore/go/go-petstore/utils.go +++ b/samples/client/petstore/go/go-petstore/utils.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts index afcfb41b2586..75ced82054b4 100644 --- a/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts +++ b/samples/client/petstore/typescript-axios/builds/with-fake-endpoints-models-for-testing-with-http-signature/api.ts @@ -1101,6 +1101,7 @@ export interface Pet { * pet status in the store * @type {string} * @memberof Pet + * @deprecated */ status?: PetStatusEnum; } diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/api_usage.go b/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/api_usage.go index 7afd8dc09c22..d98b721c83d9 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/api_usage.go +++ b/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/api_usage.go @@ -1,10 +1,10 @@ /* - * OpenAPI Extension x-auth-id-alias - * - * This specification shows how to use x-auth-id-alias extension for API keys. - * - * API version: 1.0.0 - */ +OpenAPI Extension x-auth-id-alias + +This specification shows how to use x-auth-id-alias extension for API keys. + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -37,11 +37,13 @@ func (r ApiAnyKeyRequest) Execute() (map[string]interface{}, *_nethttp.Response, } /* - * AnyKey Use any API key - * Use any API key - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiAnyKeyRequest - */ +AnyKey Use any API key + +Use any API key + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAnyKeyRequest +*/ func (a *UsageApiService) AnyKey(ctx _context.Context) ApiAnyKeyRequest { return ApiAnyKeyRequest{ ApiService: a, @@ -49,10 +51,8 @@ func (a *UsageApiService) AnyKey(ctx _context.Context) ApiAnyKeyRequest { } } -/* - * Execute executes the request - * @return map[string]interface{} - */ +// Execute executes the request +// @return map[string]interface{} func (a *UsageApiService) AnyKeyExecute(r ApiAnyKeyRequest) (map[string]interface{}, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -167,11 +167,13 @@ func (r ApiBothKeysRequest) Execute() (map[string]interface{}, *_nethttp.Respons } /* - * BothKeys Use both API keys - * Use both API keys - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiBothKeysRequest - */ +BothKeys Use both API keys + +Use both API keys + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiBothKeysRequest +*/ func (a *UsageApiService) BothKeys(ctx _context.Context) ApiBothKeysRequest { return ApiBothKeysRequest{ ApiService: a, @@ -179,10 +181,8 @@ func (a *UsageApiService) BothKeys(ctx _context.Context) ApiBothKeysRequest { } } -/* - * Execute executes the request - * @return map[string]interface{} - */ +// Execute executes the request +// @return map[string]interface{} func (a *UsageApiService) BothKeysExecute(r ApiBothKeysRequest) (map[string]interface{}, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -297,11 +297,13 @@ func (r ApiKeyInHeaderRequest) Execute() (map[string]interface{}, *_nethttp.Resp } /* - * KeyInHeader Use API key in header - * Use API key in header - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiKeyInHeaderRequest - */ +KeyInHeader Use API key in header + +Use API key in header + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiKeyInHeaderRequest +*/ func (a *UsageApiService) KeyInHeader(ctx _context.Context) ApiKeyInHeaderRequest { return ApiKeyInHeaderRequest{ ApiService: a, @@ -309,10 +311,8 @@ func (a *UsageApiService) KeyInHeader(ctx _context.Context) ApiKeyInHeaderReques } } -/* - * Execute executes the request - * @return map[string]interface{} - */ +// Execute executes the request +// @return map[string]interface{} func (a *UsageApiService) KeyInHeaderExecute(r ApiKeyInHeaderRequest) (map[string]interface{}, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -413,11 +413,13 @@ func (r ApiKeyInQueryRequest) Execute() (map[string]interface{}, *_nethttp.Respo } /* - * KeyInQuery Use API key in query - * Use API key in query - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiKeyInQueryRequest - */ +KeyInQuery Use API key in query + +Use API key in query + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiKeyInQueryRequest +*/ func (a *UsageApiService) KeyInQuery(ctx _context.Context) ApiKeyInQueryRequest { return ApiKeyInQueryRequest{ ApiService: a, @@ -425,10 +427,8 @@ func (a *UsageApiService) KeyInQuery(ctx _context.Context) ApiKeyInQueryRequest } } -/* - * Execute executes the request - * @return map[string]interface{} - */ +// Execute executes the request +// @return map[string]interface{} func (a *UsageApiService) KeyInQueryExecute(r ApiKeyInQueryRequest) (map[string]interface{}, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/client.go b/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/client.go index 1d0dad0e27bd..d025bb35fbcf 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/client.go +++ b/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/client.go @@ -1,10 +1,10 @@ /* - * OpenAPI Extension x-auth-id-alias - * - * This specification shows how to use x-auth-id-alias extension for API keys. - * - * API version: 1.0.0 - */ +OpenAPI Extension x-auth-id-alias + +This specification shows how to use x-auth-id-alias extension for API keys. + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/configuration.go b/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/configuration.go index ebdb153ea4ee..69e73c4ffe0c 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/configuration.go +++ b/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/configuration.go @@ -1,10 +1,10 @@ /* - * OpenAPI Extension x-auth-id-alias - * - * This specification shows how to use x-auth-id-alias extension for API keys. - * - * API version: 1.0.0 - */ +OpenAPI Extension x-auth-id-alias + +This specification shows how to use x-auth-id-alias extension for API keys. + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/response.go b/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/response.go index b7f655ebdf1b..e645f0f8d69e 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/response.go +++ b/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/response.go @@ -1,10 +1,10 @@ /* - * OpenAPI Extension x-auth-id-alias - * - * This specification shows how to use x-auth-id-alias extension for API keys. - * - * API version: 1.0.0 - */ +OpenAPI Extension x-auth-id-alias + +This specification shows how to use x-auth-id-alias extension for API keys. + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/utils.go b/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/utils.go index 6678105bcc0a..333051f2d09d 100644 --- a/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/utils.go +++ b/samples/openapi3/client/extensions/x-auth-id-alias/go-experimental/utils.go @@ -1,10 +1,10 @@ /* - * OpenAPI Extension x-auth-id-alias - * - * This specification shows how to use x-auth-id-alias extension for API keys. - * - * API version: 1.0.0 - */ +OpenAPI Extension x-auth-id-alias + +This specification shows how to use x-auth-id-alias extension for API keys. + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/api/openapi.yaml b/samples/openapi3/client/petstore/go/go-petstore/api/openapi.yaml index e0fba9d45fec..f380af4ae5c5 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/api/openapi.yaml +++ b/samples/openapi3/client/petstore/go/go-petstore/api/openapi.yaml @@ -93,7 +93,8 @@ paths: description: Multiple status values can be provided with comma separated strings operationId: findPetsByStatus parameters: - - description: Status values that need to be considered for filter + - deprecated: true + description: Status values that need to be considered for filter explode: false in: query name: status @@ -1440,6 +1441,7 @@ components: name: tag wrapped: true status: + deprecated: true description: pet status in the store enum: - available diff --git a/samples/openapi3/client/petstore/go/go-petstore/api_another_fake.go b/samples/openapi3/client/petstore/go/go-petstore/api_another_fake.go index dea9b0888f97..7fd48ba7647b 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/api_another_fake.go +++ b/samples/openapi3/client/petstore/go/go-petstore/api_another_fake.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,17 +26,17 @@ var ( type AnotherFakeApi interface { /* - * Call123TestSpecialTags To test special tags - * To test special tags and operation ID starting with number - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCall123TestSpecialTagsRequest - */ + Call123TestSpecialTags To test special tags + + To test special tags and operation ID starting with number + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCall123TestSpecialTagsRequest + */ Call123TestSpecialTags(ctx _context.Context) ApiCall123TestSpecialTagsRequest - /* - * Call123TestSpecialTagsExecute executes the request - * @return Client - */ + // Call123TestSpecialTagsExecute executes the request + // @return Client Call123TestSpecialTagsExecute(r ApiCall123TestSpecialTagsRequest) (Client, *_nethttp.Response, error) } @@ -49,6 +49,7 @@ type ApiCall123TestSpecialTagsRequest struct { client *Client } +// client model func (r ApiCall123TestSpecialTagsRequest) Client(client Client) ApiCall123TestSpecialTagsRequest { r.client = &client return r @@ -59,11 +60,13 @@ func (r ApiCall123TestSpecialTagsRequest) Execute() (Client, *_nethttp.Response, } /* - * Call123TestSpecialTags To test special tags - * To test special tags and operation ID starting with number - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCall123TestSpecialTagsRequest - */ +Call123TestSpecialTags To test special tags + +To test special tags and operation ID starting with number + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCall123TestSpecialTagsRequest +*/ func (a *AnotherFakeApiService) Call123TestSpecialTags(ctx _context.Context) ApiCall123TestSpecialTagsRequest { return ApiCall123TestSpecialTagsRequest{ ApiService: a, @@ -71,10 +74,8 @@ func (a *AnotherFakeApiService) Call123TestSpecialTags(ctx _context.Context) Api } } -/* - * Execute executes the request - * @return Client - */ +// Execute executes the request +// @return Client func (a *AnotherFakeApiService) Call123TestSpecialTagsExecute(r ApiCall123TestSpecialTagsRequest) (Client, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch diff --git a/samples/openapi3/client/petstore/go/go-petstore/api_default.go b/samples/openapi3/client/petstore/go/go-petstore/api_default.go index df07b59b2a79..22d87f429164 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/api_default.go +++ b/samples/openapi3/client/petstore/go/go-petstore/api_default.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,16 +26,15 @@ var ( type DefaultApi interface { /* - * FooGet Method for FooGet - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFooGetRequest - */ + FooGet Method for FooGet + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFooGetRequest + */ FooGet(ctx _context.Context) ApiFooGetRequest - /* - * FooGetExecute executes the request - * @return InlineResponseDefault - */ + // FooGetExecute executes the request + // @return InlineResponseDefault FooGetExecute(r ApiFooGetRequest) (InlineResponseDefault, *_nethttp.Response, error) } @@ -53,10 +52,11 @@ func (r ApiFooGetRequest) Execute() (InlineResponseDefault, *_nethttp.Response, } /* - * FooGet Method for FooGet - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFooGetRequest - */ +FooGet Method for FooGet + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFooGetRequest +*/ func (a *DefaultApiService) FooGet(ctx _context.Context) ApiFooGetRequest { return ApiFooGetRequest{ ApiService: a, @@ -64,10 +64,8 @@ func (a *DefaultApiService) FooGet(ctx _context.Context) ApiFooGetRequest { } } -/* - * Execute executes the request - * @return InlineResponseDefault - */ +// Execute executes the request +// @return InlineResponseDefault func (a *DefaultApiService) FooGetExecute(r ApiFooGetRequest) (InlineResponseDefault, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet diff --git a/samples/openapi3/client/petstore/go/go-petstore/api_fake.go b/samples/openapi3/client/petstore/go/go-petstore/api_fake.go index 0780536bcbbc..ac3055bfb6ef 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/api_fake.go +++ b/samples/openapi3/client/petstore/go/go-petstore/api_fake.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -29,205 +29,201 @@ var ( type FakeApi interface { /* - * FakeHealthGet Health check endpoint - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFakeHealthGetRequest - */ + FakeHealthGet Health check endpoint + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFakeHealthGetRequest + */ FakeHealthGet(ctx _context.Context) ApiFakeHealthGetRequest - /* - * FakeHealthGetExecute executes the request - * @return HealthCheckResult - */ + // FakeHealthGetExecute executes the request + // @return HealthCheckResult FakeHealthGetExecute(r ApiFakeHealthGetRequest) (HealthCheckResult, *_nethttp.Response, error) /* - * FakeOuterBooleanSerialize Method for FakeOuterBooleanSerialize - * Test serialization of outer boolean types - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFakeOuterBooleanSerializeRequest - */ + FakeOuterBooleanSerialize Method for FakeOuterBooleanSerialize + + Test serialization of outer boolean types + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFakeOuterBooleanSerializeRequest + */ FakeOuterBooleanSerialize(ctx _context.Context) ApiFakeOuterBooleanSerializeRequest - /* - * FakeOuterBooleanSerializeExecute executes the request - * @return bool - */ + // FakeOuterBooleanSerializeExecute executes the request + // @return bool FakeOuterBooleanSerializeExecute(r ApiFakeOuterBooleanSerializeRequest) (bool, *_nethttp.Response, error) /* - * FakeOuterCompositeSerialize Method for FakeOuterCompositeSerialize - * Test serialization of object with outer number type - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFakeOuterCompositeSerializeRequest - */ + FakeOuterCompositeSerialize Method for FakeOuterCompositeSerialize + + Test serialization of object with outer number type + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFakeOuterCompositeSerializeRequest + */ FakeOuterCompositeSerialize(ctx _context.Context) ApiFakeOuterCompositeSerializeRequest - /* - * FakeOuterCompositeSerializeExecute executes the request - * @return OuterComposite - */ + // FakeOuterCompositeSerializeExecute executes the request + // @return OuterComposite FakeOuterCompositeSerializeExecute(r ApiFakeOuterCompositeSerializeRequest) (OuterComposite, *_nethttp.Response, error) /* - * FakeOuterNumberSerialize Method for FakeOuterNumberSerialize - * Test serialization of outer number types - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFakeOuterNumberSerializeRequest - */ + FakeOuterNumberSerialize Method for FakeOuterNumberSerialize + + Test serialization of outer number types + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFakeOuterNumberSerializeRequest + */ FakeOuterNumberSerialize(ctx _context.Context) ApiFakeOuterNumberSerializeRequest - /* - * FakeOuterNumberSerializeExecute executes the request - * @return float32 - */ + // FakeOuterNumberSerializeExecute executes the request + // @return float32 FakeOuterNumberSerializeExecute(r ApiFakeOuterNumberSerializeRequest) (float32, *_nethttp.Response, error) /* - * FakeOuterStringSerialize Method for FakeOuterStringSerialize - * Test serialization of outer string types - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFakeOuterStringSerializeRequest - */ + FakeOuterStringSerialize Method for FakeOuterStringSerialize + + Test serialization of outer string types + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFakeOuterStringSerializeRequest + */ FakeOuterStringSerialize(ctx _context.Context) ApiFakeOuterStringSerializeRequest - /* - * FakeOuterStringSerializeExecute executes the request - * @return string - */ + // FakeOuterStringSerializeExecute executes the request + // @return string FakeOuterStringSerializeExecute(r ApiFakeOuterStringSerializeRequest) (string, *_nethttp.Response, error) /* - * TestBodyWithFileSchema Method for TestBodyWithFileSchema - * For this test, the body for this request much reference a schema named `File`. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestBodyWithFileSchemaRequest - */ + TestBodyWithFileSchema Method for TestBodyWithFileSchema + + For this test, the body for this request much reference a schema named `File`. + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestBodyWithFileSchemaRequest + */ TestBodyWithFileSchema(ctx _context.Context) ApiTestBodyWithFileSchemaRequest - /* - * TestBodyWithFileSchemaExecute executes the request - */ + // TestBodyWithFileSchemaExecute executes the request TestBodyWithFileSchemaExecute(r ApiTestBodyWithFileSchemaRequest) (*_nethttp.Response, error) /* - * TestBodyWithQueryParams Method for TestBodyWithQueryParams - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestBodyWithQueryParamsRequest - */ + TestBodyWithQueryParams Method for TestBodyWithQueryParams + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestBodyWithQueryParamsRequest + */ TestBodyWithQueryParams(ctx _context.Context) ApiTestBodyWithQueryParamsRequest - /* - * TestBodyWithQueryParamsExecute executes the request - */ + // TestBodyWithQueryParamsExecute executes the request TestBodyWithQueryParamsExecute(r ApiTestBodyWithQueryParamsRequest) (*_nethttp.Response, error) /* - * TestClientModel To test \"client\" model - * To test "client" model - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestClientModelRequest - */ + TestClientModel To test \"client\" model + + To test "client" model + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestClientModelRequest + */ TestClientModel(ctx _context.Context) ApiTestClientModelRequest - /* - * TestClientModelExecute executes the request - * @return Client - */ + // TestClientModelExecute executes the request + // @return Client TestClientModelExecute(r ApiTestClientModelRequest) (Client, *_nethttp.Response, error) /* - * TestEndpointParameters Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Fake endpoint for testing various parameters + TestEndpointParameters Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + + Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestEndpointParametersRequest - */ + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestEndpointParametersRequest + */ TestEndpointParameters(ctx _context.Context) ApiTestEndpointParametersRequest - /* - * TestEndpointParametersExecute executes the request - */ + // TestEndpointParametersExecute executes the request TestEndpointParametersExecute(r ApiTestEndpointParametersRequest) (*_nethttp.Response, error) /* - * TestEnumParameters To test enum parameters - * To test enum parameters - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestEnumParametersRequest - */ + TestEnumParameters To test enum parameters + + To test enum parameters + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestEnumParametersRequest + */ TestEnumParameters(ctx _context.Context) ApiTestEnumParametersRequest - /* - * TestEnumParametersExecute executes the request - */ + // TestEnumParametersExecute executes the request TestEnumParametersExecute(r ApiTestEnumParametersRequest) (*_nethttp.Response, error) /* - * TestGroupParameters Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestGroupParametersRequest - */ + TestGroupParameters Fake endpoint to test group parameters (optional) + + Fake endpoint to test group parameters (optional) + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestGroupParametersRequest + */ TestGroupParameters(ctx _context.Context) ApiTestGroupParametersRequest - /* - * TestGroupParametersExecute executes the request - */ + // TestGroupParametersExecute executes the request TestGroupParametersExecute(r ApiTestGroupParametersRequest) (*_nethttp.Response, error) /* - * TestInlineAdditionalProperties test inline additionalProperties - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestInlineAdditionalPropertiesRequest - */ + TestInlineAdditionalProperties test inline additionalProperties + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestInlineAdditionalPropertiesRequest + */ TestInlineAdditionalProperties(ctx _context.Context) ApiTestInlineAdditionalPropertiesRequest - /* - * TestInlineAdditionalPropertiesExecute executes the request - */ + // TestInlineAdditionalPropertiesExecute executes the request TestInlineAdditionalPropertiesExecute(r ApiTestInlineAdditionalPropertiesRequest) (*_nethttp.Response, error) /* - * TestJsonFormData test json serialization of form data - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestJsonFormDataRequest - */ + TestJsonFormData test json serialization of form data + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestJsonFormDataRequest + */ TestJsonFormData(ctx _context.Context) ApiTestJsonFormDataRequest - /* - * TestJsonFormDataExecute executes the request - */ + // TestJsonFormDataExecute executes the request TestJsonFormDataExecute(r ApiTestJsonFormDataRequest) (*_nethttp.Response, error) /* - * TestQueryParameterCollectionFormat Method for TestQueryParameterCollectionFormat - * To test the collection format in query parameters - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestQueryParameterCollectionFormatRequest - */ + TestQueryParameterCollectionFormat Method for TestQueryParameterCollectionFormat + + To test the collection format in query parameters + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestQueryParameterCollectionFormatRequest + */ TestQueryParameterCollectionFormat(ctx _context.Context) ApiTestQueryParameterCollectionFormatRequest - /* - * TestQueryParameterCollectionFormatExecute executes the request - */ + // TestQueryParameterCollectionFormatExecute executes the request TestQueryParameterCollectionFormatExecute(r ApiTestQueryParameterCollectionFormatRequest) (*_nethttp.Response, error) /* - * TestUniqueItemsHeaderAndQueryParameterCollectionFormat Method for TestUniqueItemsHeaderAndQueryParameterCollectionFormat - * To test unique items in header and query parameters - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest - */ + TestUniqueItemsHeaderAndQueryParameterCollectionFormat Method for TestUniqueItemsHeaderAndQueryParameterCollectionFormat + + To test unique items in header and query parameters + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest + */ TestUniqueItemsHeaderAndQueryParameterCollectionFormat(ctx _context.Context) ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest - /* - * TestUniqueItemsHeaderAndQueryParameterCollectionFormatExecute executes the request - * @return []Pet - */ + // TestUniqueItemsHeaderAndQueryParameterCollectionFormatExecute executes the request + // @return []Pet TestUniqueItemsHeaderAndQueryParameterCollectionFormatExecute(r ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest) ([]Pet, *_nethttp.Response, error) } @@ -245,10 +241,11 @@ func (r ApiFakeHealthGetRequest) Execute() (HealthCheckResult, *_nethttp.Respons } /* - * FakeHealthGet Health check endpoint - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFakeHealthGetRequest - */ +FakeHealthGet Health check endpoint + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFakeHealthGetRequest +*/ func (a *FakeApiService) FakeHealthGet(ctx _context.Context) ApiFakeHealthGetRequest { return ApiFakeHealthGetRequest{ ApiService: a, @@ -256,10 +253,8 @@ func (a *FakeApiService) FakeHealthGet(ctx _context.Context) ApiFakeHealthGetReq } } -/* - * Execute executes the request - * @return HealthCheckResult - */ +// Execute executes the request +// @return HealthCheckResult func (a *FakeApiService) FakeHealthGetExecute(r ApiFakeHealthGetRequest) (HealthCheckResult, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -341,6 +336,7 @@ type ApiFakeOuterBooleanSerializeRequest struct { body *bool } +// Input boolean as post body func (r ApiFakeOuterBooleanSerializeRequest) Body(body bool) ApiFakeOuterBooleanSerializeRequest { r.body = &body return r @@ -351,11 +347,13 @@ func (r ApiFakeOuterBooleanSerializeRequest) Execute() (bool, *_nethttp.Response } /* - * FakeOuterBooleanSerialize Method for FakeOuterBooleanSerialize - * Test serialization of outer boolean types - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFakeOuterBooleanSerializeRequest - */ +FakeOuterBooleanSerialize Method for FakeOuterBooleanSerialize + +Test serialization of outer boolean types + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFakeOuterBooleanSerializeRequest +*/ func (a *FakeApiService) FakeOuterBooleanSerialize(ctx _context.Context) ApiFakeOuterBooleanSerializeRequest { return ApiFakeOuterBooleanSerializeRequest{ ApiService: a, @@ -363,10 +361,8 @@ func (a *FakeApiService) FakeOuterBooleanSerialize(ctx _context.Context) ApiFake } } -/* - * Execute executes the request - * @return bool - */ +// Execute executes the request +// @return bool func (a *FakeApiService) FakeOuterBooleanSerializeExecute(r ApiFakeOuterBooleanSerializeRequest) (bool, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -450,6 +446,7 @@ type ApiFakeOuterCompositeSerializeRequest struct { outerComposite *OuterComposite } +// Input composite as post body func (r ApiFakeOuterCompositeSerializeRequest) OuterComposite(outerComposite OuterComposite) ApiFakeOuterCompositeSerializeRequest { r.outerComposite = &outerComposite return r @@ -460,11 +457,13 @@ func (r ApiFakeOuterCompositeSerializeRequest) Execute() (OuterComposite, *_neth } /* - * FakeOuterCompositeSerialize Method for FakeOuterCompositeSerialize - * Test serialization of object with outer number type - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFakeOuterCompositeSerializeRequest - */ +FakeOuterCompositeSerialize Method for FakeOuterCompositeSerialize + +Test serialization of object with outer number type + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFakeOuterCompositeSerializeRequest +*/ func (a *FakeApiService) FakeOuterCompositeSerialize(ctx _context.Context) ApiFakeOuterCompositeSerializeRequest { return ApiFakeOuterCompositeSerializeRequest{ ApiService: a, @@ -472,10 +471,8 @@ func (a *FakeApiService) FakeOuterCompositeSerialize(ctx _context.Context) ApiFa } } -/* - * Execute executes the request - * @return OuterComposite - */ +// Execute executes the request +// @return OuterComposite func (a *FakeApiService) FakeOuterCompositeSerializeExecute(r ApiFakeOuterCompositeSerializeRequest) (OuterComposite, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -559,6 +556,7 @@ type ApiFakeOuterNumberSerializeRequest struct { body *float32 } +// Input number as post body func (r ApiFakeOuterNumberSerializeRequest) Body(body float32) ApiFakeOuterNumberSerializeRequest { r.body = &body return r @@ -569,11 +567,13 @@ func (r ApiFakeOuterNumberSerializeRequest) Execute() (float32, *_nethttp.Respon } /* - * FakeOuterNumberSerialize Method for FakeOuterNumberSerialize - * Test serialization of outer number types - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFakeOuterNumberSerializeRequest - */ +FakeOuterNumberSerialize Method for FakeOuterNumberSerialize + +Test serialization of outer number types + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFakeOuterNumberSerializeRequest +*/ func (a *FakeApiService) FakeOuterNumberSerialize(ctx _context.Context) ApiFakeOuterNumberSerializeRequest { return ApiFakeOuterNumberSerializeRequest{ ApiService: a, @@ -581,10 +581,8 @@ func (a *FakeApiService) FakeOuterNumberSerialize(ctx _context.Context) ApiFakeO } } -/* - * Execute executes the request - * @return float32 - */ +// Execute executes the request +// @return float32 func (a *FakeApiService) FakeOuterNumberSerializeExecute(r ApiFakeOuterNumberSerializeRequest) (float32, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -668,6 +666,7 @@ type ApiFakeOuterStringSerializeRequest struct { body *string } +// Input string as post body func (r ApiFakeOuterStringSerializeRequest) Body(body string) ApiFakeOuterStringSerializeRequest { r.body = &body return r @@ -678,11 +677,13 @@ func (r ApiFakeOuterStringSerializeRequest) Execute() (string, *_nethttp.Respons } /* - * FakeOuterStringSerialize Method for FakeOuterStringSerialize - * Test serialization of outer string types - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFakeOuterStringSerializeRequest - */ +FakeOuterStringSerialize Method for FakeOuterStringSerialize + +Test serialization of outer string types + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFakeOuterStringSerializeRequest +*/ func (a *FakeApiService) FakeOuterStringSerialize(ctx _context.Context) ApiFakeOuterStringSerializeRequest { return ApiFakeOuterStringSerializeRequest{ ApiService: a, @@ -690,10 +691,8 @@ func (a *FakeApiService) FakeOuterStringSerialize(ctx _context.Context) ApiFakeO } } -/* - * Execute executes the request - * @return string - */ +// Execute executes the request +// @return string func (a *FakeApiService) FakeOuterStringSerializeExecute(r ApiFakeOuterStringSerializeRequest) (string, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -787,11 +786,13 @@ func (r ApiTestBodyWithFileSchemaRequest) Execute() (*_nethttp.Response, error) } /* - * TestBodyWithFileSchema Method for TestBodyWithFileSchema - * For this test, the body for this request much reference a schema named `File`. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestBodyWithFileSchemaRequest - */ +TestBodyWithFileSchema Method for TestBodyWithFileSchema + +For this test, the body for this request much reference a schema named `File`. + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestBodyWithFileSchemaRequest +*/ func (a *FakeApiService) TestBodyWithFileSchema(ctx _context.Context) ApiTestBodyWithFileSchemaRequest { return ApiTestBodyWithFileSchemaRequest{ ApiService: a, @@ -799,9 +800,7 @@ func (a *FakeApiService) TestBodyWithFileSchema(ctx _context.Context) ApiTestBod } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *FakeApiService) TestBodyWithFileSchemaExecute(r ApiTestBodyWithFileSchemaRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPut @@ -893,10 +892,11 @@ func (r ApiTestBodyWithQueryParamsRequest) Execute() (*_nethttp.Response, error) } /* - * TestBodyWithQueryParams Method for TestBodyWithQueryParams - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestBodyWithQueryParamsRequest - */ +TestBodyWithQueryParams Method for TestBodyWithQueryParams + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestBodyWithQueryParamsRequest +*/ func (a *FakeApiService) TestBodyWithQueryParams(ctx _context.Context) ApiTestBodyWithQueryParamsRequest { return ApiTestBodyWithQueryParamsRequest{ ApiService: a, @@ -904,9 +904,7 @@ func (a *FakeApiService) TestBodyWithQueryParams(ctx _context.Context) ApiTestBo } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *FakeApiService) TestBodyWithQueryParamsExecute(r ApiTestBodyWithQueryParamsRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPut @@ -987,6 +985,7 @@ type ApiTestClientModelRequest struct { client *Client } +// client model func (r ApiTestClientModelRequest) Client(client Client) ApiTestClientModelRequest { r.client = &client return r @@ -997,11 +996,13 @@ func (r ApiTestClientModelRequest) Execute() (Client, *_nethttp.Response, error) } /* - * TestClientModel To test \"client\" model - * To test "client" model - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestClientModelRequest - */ +TestClientModel To test \"client\" model + +To test "client" model + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestClientModelRequest +*/ func (a *FakeApiService) TestClientModel(ctx _context.Context) ApiTestClientModelRequest { return ApiTestClientModelRequest{ ApiService: a, @@ -1009,10 +1010,8 @@ func (a *FakeApiService) TestClientModel(ctx _context.Context) ApiTestClientMode } } -/* - * Execute executes the request - * @return Client - */ +// Execute executes the request +// @return Client func (a *FakeApiService) TestClientModelExecute(r ApiTestClientModelRequest) (Client, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch @@ -1112,58 +1111,72 @@ type ApiTestEndpointParametersRequest struct { callback *string } +// None func (r ApiTestEndpointParametersRequest) Number(number float32) ApiTestEndpointParametersRequest { r.number = &number return r } +// None func (r ApiTestEndpointParametersRequest) Double(double float64) ApiTestEndpointParametersRequest { r.double = &double return r } +// None func (r ApiTestEndpointParametersRequest) PatternWithoutDelimiter(patternWithoutDelimiter string) ApiTestEndpointParametersRequest { r.patternWithoutDelimiter = &patternWithoutDelimiter return r } +// None func (r ApiTestEndpointParametersRequest) Byte_(byte_ string) ApiTestEndpointParametersRequest { r.byte_ = &byte_ return r } +// None func (r ApiTestEndpointParametersRequest) Integer(integer int32) ApiTestEndpointParametersRequest { r.integer = &integer return r } +// None func (r ApiTestEndpointParametersRequest) Int32_(int32_ int32) ApiTestEndpointParametersRequest { r.int32_ = &int32_ return r } +// None func (r ApiTestEndpointParametersRequest) Int64_(int64_ int64) ApiTestEndpointParametersRequest { r.int64_ = &int64_ return r } +// None func (r ApiTestEndpointParametersRequest) Float(float float32) ApiTestEndpointParametersRequest { r.float = &float return r } +// None func (r ApiTestEndpointParametersRequest) String_(string_ string) ApiTestEndpointParametersRequest { r.string_ = &string_ return r } +// None func (r ApiTestEndpointParametersRequest) Binary(binary *os.File) ApiTestEndpointParametersRequest { r.binary = &binary return r } +// None func (r ApiTestEndpointParametersRequest) Date(date string) ApiTestEndpointParametersRequest { r.date = &date return r } +// None func (r ApiTestEndpointParametersRequest) DateTime(dateTime time.Time) ApiTestEndpointParametersRequest { r.dateTime = &dateTime return r } +// None func (r ApiTestEndpointParametersRequest) Password(password string) ApiTestEndpointParametersRequest { r.password = &password return r } +// None func (r ApiTestEndpointParametersRequest) Callback(callback string) ApiTestEndpointParametersRequest { r.callback = &callback return r @@ -1174,15 +1187,17 @@ func (r ApiTestEndpointParametersRequest) Execute() (*_nethttp.Response, error) } /* - * TestEndpointParameters Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * Fake endpoint for testing various parameters +TestEndpointParameters Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 + +Fake endpoint for testing various parameters 假端點 偽のエンドポイント 가짜 엔드 포인트 - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestEndpointParametersRequest - */ + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestEndpointParametersRequest +*/ func (a *FakeApiService) TestEndpointParameters(ctx _context.Context) ApiTestEndpointParametersRequest { return ApiTestEndpointParametersRequest{ ApiService: a, @@ -1190,9 +1205,7 @@ func (a *FakeApiService) TestEndpointParameters(ctx _context.Context) ApiTestEnd } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *FakeApiService) TestEndpointParametersExecute(r ApiTestEndpointParametersRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -1337,34 +1350,42 @@ type ApiTestEnumParametersRequest struct { enumFormString *string } +// Header parameter enum test (string array) func (r ApiTestEnumParametersRequest) EnumHeaderStringArray(enumHeaderStringArray []string) ApiTestEnumParametersRequest { r.enumHeaderStringArray = &enumHeaderStringArray return r } +// Header parameter enum test (string) func (r ApiTestEnumParametersRequest) EnumHeaderString(enumHeaderString string) ApiTestEnumParametersRequest { r.enumHeaderString = &enumHeaderString return r } +// Query parameter enum test (string array) func (r ApiTestEnumParametersRequest) EnumQueryStringArray(enumQueryStringArray []string) ApiTestEnumParametersRequest { r.enumQueryStringArray = &enumQueryStringArray return r } +// Query parameter enum test (string) func (r ApiTestEnumParametersRequest) EnumQueryString(enumQueryString string) ApiTestEnumParametersRequest { r.enumQueryString = &enumQueryString return r } +// Query parameter enum test (double) func (r ApiTestEnumParametersRequest) EnumQueryInteger(enumQueryInteger int32) ApiTestEnumParametersRequest { r.enumQueryInteger = &enumQueryInteger return r } +// Query parameter enum test (double) func (r ApiTestEnumParametersRequest) EnumQueryDouble(enumQueryDouble float64) ApiTestEnumParametersRequest { r.enumQueryDouble = &enumQueryDouble return r } +// Form parameter enum test (string array) func (r ApiTestEnumParametersRequest) EnumFormStringArray(enumFormStringArray []string) ApiTestEnumParametersRequest { r.enumFormStringArray = &enumFormStringArray return r } +// Form parameter enum test (string) func (r ApiTestEnumParametersRequest) EnumFormString(enumFormString string) ApiTestEnumParametersRequest { r.enumFormString = &enumFormString return r @@ -1375,11 +1396,13 @@ func (r ApiTestEnumParametersRequest) Execute() (*_nethttp.Response, error) { } /* - * TestEnumParameters To test enum parameters - * To test enum parameters - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestEnumParametersRequest - */ +TestEnumParameters To test enum parameters + +To test enum parameters + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestEnumParametersRequest +*/ func (a *FakeApiService) TestEnumParameters(ctx _context.Context) ApiTestEnumParametersRequest { return ApiTestEnumParametersRequest{ ApiService: a, @@ -1387,9 +1410,7 @@ func (a *FakeApiService) TestEnumParameters(ctx _context.Context) ApiTestEnumPar } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *FakeApiService) TestEnumParametersExecute(r ApiTestEnumParametersRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -1498,26 +1519,32 @@ type ApiTestGroupParametersRequest struct { int64Group *int64 } +// Required String in group parameters func (r ApiTestGroupParametersRequest) RequiredStringGroup(requiredStringGroup int32) ApiTestGroupParametersRequest { r.requiredStringGroup = &requiredStringGroup return r } +// Required Boolean in group parameters func (r ApiTestGroupParametersRequest) RequiredBooleanGroup(requiredBooleanGroup bool) ApiTestGroupParametersRequest { r.requiredBooleanGroup = &requiredBooleanGroup return r } +// Required Integer in group parameters func (r ApiTestGroupParametersRequest) RequiredInt64Group(requiredInt64Group int64) ApiTestGroupParametersRequest { r.requiredInt64Group = &requiredInt64Group return r } +// String in group parameters func (r ApiTestGroupParametersRequest) StringGroup(stringGroup int32) ApiTestGroupParametersRequest { r.stringGroup = &stringGroup return r } +// Boolean in group parameters func (r ApiTestGroupParametersRequest) BooleanGroup(booleanGroup bool) ApiTestGroupParametersRequest { r.booleanGroup = &booleanGroup return r } +// Integer in group parameters func (r ApiTestGroupParametersRequest) Int64Group(int64Group int64) ApiTestGroupParametersRequest { r.int64Group = &int64Group return r @@ -1528,11 +1555,13 @@ func (r ApiTestGroupParametersRequest) Execute() (*_nethttp.Response, error) { } /* - * TestGroupParameters Fake endpoint to test group parameters (optional) - * Fake endpoint to test group parameters (optional) - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestGroupParametersRequest - */ +TestGroupParameters Fake endpoint to test group parameters (optional) + +Fake endpoint to test group parameters (optional) + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestGroupParametersRequest +*/ func (a *FakeApiService) TestGroupParameters(ctx _context.Context) ApiTestGroupParametersRequest { return ApiTestGroupParametersRequest{ ApiService: a, @@ -1540,9 +1569,7 @@ func (a *FakeApiService) TestGroupParameters(ctx _context.Context) ApiTestGroupP } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *FakeApiService) TestGroupParametersExecute(r ApiTestGroupParametersRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -1635,6 +1662,7 @@ type ApiTestInlineAdditionalPropertiesRequest struct { requestBody *map[string]string } +// request body func (r ApiTestInlineAdditionalPropertiesRequest) RequestBody(requestBody map[string]string) ApiTestInlineAdditionalPropertiesRequest { r.requestBody = &requestBody return r @@ -1645,10 +1673,11 @@ func (r ApiTestInlineAdditionalPropertiesRequest) Execute() (*_nethttp.Response, } /* - * TestInlineAdditionalProperties test inline additionalProperties - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestInlineAdditionalPropertiesRequest - */ +TestInlineAdditionalProperties test inline additionalProperties + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestInlineAdditionalPropertiesRequest +*/ func (a *FakeApiService) TestInlineAdditionalProperties(ctx _context.Context) ApiTestInlineAdditionalPropertiesRequest { return ApiTestInlineAdditionalPropertiesRequest{ ApiService: a, @@ -1656,9 +1685,7 @@ func (a *FakeApiService) TestInlineAdditionalProperties(ctx _context.Context) Ap } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *FakeApiService) TestInlineAdditionalPropertiesExecute(r ApiTestInlineAdditionalPropertiesRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -1736,10 +1763,12 @@ type ApiTestJsonFormDataRequest struct { param2 *string } +// field1 func (r ApiTestJsonFormDataRequest) Param(param string) ApiTestJsonFormDataRequest { r.param = ¶m return r } +// field2 func (r ApiTestJsonFormDataRequest) Param2(param2 string) ApiTestJsonFormDataRequest { r.param2 = ¶m2 return r @@ -1750,10 +1779,11 @@ func (r ApiTestJsonFormDataRequest) Execute() (*_nethttp.Response, error) { } /* - * TestJsonFormData test json serialization of form data - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestJsonFormDataRequest - */ +TestJsonFormData test json serialization of form data + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestJsonFormDataRequest +*/ func (a *FakeApiService) TestJsonFormData(ctx _context.Context) ApiTestJsonFormDataRequest { return ApiTestJsonFormDataRequest{ ApiService: a, @@ -1761,9 +1791,7 @@ func (a *FakeApiService) TestJsonFormData(ctx _context.Context) ApiTestJsonFormD } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *FakeApiService) TestJsonFormDataExecute(r ApiTestJsonFormDataRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -1873,11 +1901,13 @@ func (r ApiTestQueryParameterCollectionFormatRequest) Execute() (*_nethttp.Respo } /* - * TestQueryParameterCollectionFormat Method for TestQueryParameterCollectionFormat - * To test the collection format in query parameters - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestQueryParameterCollectionFormatRequest - */ +TestQueryParameterCollectionFormat Method for TestQueryParameterCollectionFormat + +To test the collection format in query parameters + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestQueryParameterCollectionFormatRequest +*/ func (a *FakeApiService) TestQueryParameterCollectionFormat(ctx _context.Context) ApiTestQueryParameterCollectionFormatRequest { return ApiTestQueryParameterCollectionFormatRequest{ ApiService: a, @@ -1885,9 +1915,7 @@ func (a *FakeApiService) TestQueryParameterCollectionFormat(ctx _context.Context } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *FakeApiService) TestQueryParameterCollectionFormatExecute(r ApiTestQueryParameterCollectionFormatRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPut @@ -2014,11 +2042,13 @@ func (r ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest) Execut } /* - * TestUniqueItemsHeaderAndQueryParameterCollectionFormat Method for TestUniqueItemsHeaderAndQueryParameterCollectionFormat - * To test unique items in header and query parameters - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest - */ +TestUniqueItemsHeaderAndQueryParameterCollectionFormat Method for TestUniqueItemsHeaderAndQueryParameterCollectionFormat + +To test unique items in header and query parameters + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest +*/ func (a *FakeApiService) TestUniqueItemsHeaderAndQueryParameterCollectionFormat(ctx _context.Context) ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest { return ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest{ ApiService: a, @@ -2026,10 +2056,8 @@ func (a *FakeApiService) TestUniqueItemsHeaderAndQueryParameterCollectionFormat( } } -/* - * Execute executes the request - * @return []Pet - */ +// Execute executes the request +// @return []Pet func (a *FakeApiService) TestUniqueItemsHeaderAndQueryParameterCollectionFormatExecute(r ApiTestUniqueItemsHeaderAndQueryParameterCollectionFormatRequest) ([]Pet, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPut diff --git a/samples/openapi3/client/petstore/go/go-petstore/api_fake_classname_tags123.go b/samples/openapi3/client/petstore/go/go-petstore/api_fake_classname_tags123.go index f60d6c06e2d0..2ddc5ebf7da7 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/api_fake_classname_tags123.go +++ b/samples/openapi3/client/petstore/go/go-petstore/api_fake_classname_tags123.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,17 +26,17 @@ var ( type FakeClassnameTags123Api interface { /* - * TestClassname To test class name in snake case - * To test class name in snake case - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestClassnameRequest - */ + TestClassname To test class name in snake case + + To test class name in snake case + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestClassnameRequest + */ TestClassname(ctx _context.Context) ApiTestClassnameRequest - /* - * TestClassnameExecute executes the request - * @return Client - */ + // TestClassnameExecute executes the request + // @return Client TestClassnameExecute(r ApiTestClassnameRequest) (Client, *_nethttp.Response, error) } @@ -49,6 +49,7 @@ type ApiTestClassnameRequest struct { client *Client } +// client model func (r ApiTestClassnameRequest) Client(client Client) ApiTestClassnameRequest { r.client = &client return r @@ -59,11 +60,13 @@ func (r ApiTestClassnameRequest) Execute() (Client, *_nethttp.Response, error) { } /* - * TestClassname To test class name in snake case - * To test class name in snake case - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiTestClassnameRequest - */ +TestClassname To test class name in snake case + +To test class name in snake case + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiTestClassnameRequest +*/ func (a *FakeClassnameTags123ApiService) TestClassname(ctx _context.Context) ApiTestClassnameRequest { return ApiTestClassnameRequest{ ApiService: a, @@ -71,10 +74,8 @@ func (a *FakeClassnameTags123ApiService) TestClassname(ctx _context.Context) Api } } -/* - * Execute executes the request - * @return Client - */ +// Execute executes the request +// @return Client func (a *FakeClassnameTags123ApiService) TestClassnameExecute(r ApiTestClassnameRequest) (Client, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPatch diff --git a/samples/openapi3/client/petstore/go/go-petstore/api_pet.go b/samples/openapi3/client/petstore/go/go-petstore/api_pet.go index 06bddb5dc12e..9f172c3cd304 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/api_pet.go +++ b/samples/openapi3/client/petstore/go/go-petstore/api_pet.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -28,124 +28,121 @@ var ( type PetApi interface { /* - * AddPet Add a new pet to the store - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiAddPetRequest - */ + AddPet Add a new pet to the store + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAddPetRequest + */ AddPet(ctx _context.Context) ApiAddPetRequest - /* - * AddPetExecute executes the request - */ + // AddPetExecute executes the request AddPetExecute(r ApiAddPetRequest) (*_nethttp.Response, error) /* - * DeletePet Deletes a pet - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param petId Pet id to delete - * @return ApiDeletePetRequest - */ + DeletePet Deletes a pet + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param petId Pet id to delete + @return ApiDeletePetRequest + */ DeletePet(ctx _context.Context, petId int64) ApiDeletePetRequest - /* - * DeletePetExecute executes the request - */ + // DeletePetExecute executes the request DeletePetExecute(r ApiDeletePetRequest) (*_nethttp.Response, error) /* - * FindPetsByStatus Finds Pets by status - * Multiple status values can be provided with comma separated strings - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFindPetsByStatusRequest - */ + FindPetsByStatus Finds Pets by status + + Multiple status values can be provided with comma separated strings + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFindPetsByStatusRequest + */ FindPetsByStatus(ctx _context.Context) ApiFindPetsByStatusRequest - /* - * FindPetsByStatusExecute executes the request - * @return []Pet - */ + // FindPetsByStatusExecute executes the request + // @return []Pet FindPetsByStatusExecute(r ApiFindPetsByStatusRequest) ([]Pet, *_nethttp.Response, error) /* - * FindPetsByTags Finds Pets by tags - * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFindPetsByTagsRequest - */ + FindPetsByTags Finds Pets by tags + + Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFindPetsByTagsRequest + + Deprecated + */ FindPetsByTags(ctx _context.Context) ApiFindPetsByTagsRequest - /* - * FindPetsByTagsExecute executes the request - * @return []Pet - */ + // FindPetsByTagsExecute executes the request + // @return []Pet + // Deprecated FindPetsByTagsExecute(r ApiFindPetsByTagsRequest) ([]Pet, *_nethttp.Response, error) /* - * GetPetById Find pet by ID - * Returns a single pet - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param petId ID of pet to return - * @return ApiGetPetByIdRequest - */ + GetPetById Find pet by ID + + Returns a single pet + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param petId ID of pet to return + @return ApiGetPetByIdRequest + */ GetPetById(ctx _context.Context, petId int64) ApiGetPetByIdRequest - /* - * GetPetByIdExecute executes the request - * @return Pet - */ + // GetPetByIdExecute executes the request + // @return Pet GetPetByIdExecute(r ApiGetPetByIdRequest) (Pet, *_nethttp.Response, error) /* - * UpdatePet Update an existing pet - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiUpdatePetRequest - */ + UpdatePet Update an existing pet + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdatePetRequest + */ UpdatePet(ctx _context.Context) ApiUpdatePetRequest - /* - * UpdatePetExecute executes the request - */ + // UpdatePetExecute executes the request UpdatePetExecute(r ApiUpdatePetRequest) (*_nethttp.Response, error) /* - * UpdatePetWithForm Updates a pet in the store with form data - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param petId ID of pet that needs to be updated - * @return ApiUpdatePetWithFormRequest - */ + UpdatePetWithForm Updates a pet in the store with form data + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param petId ID of pet that needs to be updated + @return ApiUpdatePetWithFormRequest + */ UpdatePetWithForm(ctx _context.Context, petId int64) ApiUpdatePetWithFormRequest - /* - * UpdatePetWithFormExecute executes the request - */ + // UpdatePetWithFormExecute executes the request UpdatePetWithFormExecute(r ApiUpdatePetWithFormRequest) (*_nethttp.Response, error) /* - * UploadFile uploads an image - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param petId ID of pet to update - * @return ApiUploadFileRequest - */ + UploadFile uploads an image + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param petId ID of pet to update + @return ApiUploadFileRequest + */ UploadFile(ctx _context.Context, petId int64) ApiUploadFileRequest - /* - * UploadFileExecute executes the request - * @return ApiResponse - */ + // UploadFileExecute executes the request + // @return ApiResponse UploadFileExecute(r ApiUploadFileRequest) (ApiResponse, *_nethttp.Response, error) /* - * UploadFileWithRequiredFile uploads an image (required) - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param petId ID of pet to update - * @return ApiUploadFileWithRequiredFileRequest - */ + UploadFileWithRequiredFile uploads an image (required) + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param petId ID of pet to update + @return ApiUploadFileWithRequiredFileRequest + */ UploadFileWithRequiredFile(ctx _context.Context, petId int64) ApiUploadFileWithRequiredFileRequest - /* - * UploadFileWithRequiredFileExecute executes the request - * @return ApiResponse - */ + // UploadFileWithRequiredFileExecute executes the request + // @return ApiResponse UploadFileWithRequiredFileExecute(r ApiUploadFileWithRequiredFileRequest) (ApiResponse, *_nethttp.Response, error) } @@ -158,6 +155,7 @@ type ApiAddPetRequest struct { pet *Pet } +// Pet object that needs to be added to the store func (r ApiAddPetRequest) Pet(pet Pet) ApiAddPetRequest { r.pet = &pet return r @@ -168,10 +166,11 @@ func (r ApiAddPetRequest) Execute() (*_nethttp.Response, error) { } /* - * AddPet Add a new pet to the store - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiAddPetRequest - */ +AddPet Add a new pet to the store + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiAddPetRequest +*/ func (a *PetApiService) AddPet(ctx _context.Context) ApiAddPetRequest { return ApiAddPetRequest{ ApiService: a, @@ -179,9 +178,7 @@ func (a *PetApiService) AddPet(ctx _context.Context) ApiAddPetRequest { } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *PetApiService) AddPetExecute(r ApiAddPetRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -269,11 +266,12 @@ func (r ApiDeletePetRequest) Execute() (*_nethttp.Response, error) { } /* - * DeletePet Deletes a pet - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param petId Pet id to delete - * @return ApiDeletePetRequest - */ +DeletePet Deletes a pet + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param petId Pet id to delete + @return ApiDeletePetRequest +*/ func (a *PetApiService) DeletePet(ctx _context.Context, petId int64) ApiDeletePetRequest { return ApiDeletePetRequest{ ApiService: a, @@ -282,9 +280,7 @@ func (a *PetApiService) DeletePet(ctx _context.Context, petId int64) ApiDeletePe } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *PetApiService) DeletePetExecute(r ApiDeletePetRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -360,6 +356,8 @@ type ApiFindPetsByStatusRequest struct { status *[]string } +// Status values that need to be considered for filter +// Deprecated func (r ApiFindPetsByStatusRequest) Status(status []string) ApiFindPetsByStatusRequest { r.status = &status return r @@ -370,11 +368,13 @@ func (r ApiFindPetsByStatusRequest) Execute() ([]Pet, *_nethttp.Response, error) } /* - * FindPetsByStatus Finds Pets by status - * Multiple status values can be provided with comma separated strings - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFindPetsByStatusRequest - */ +FindPetsByStatus Finds Pets by status + +Multiple status values can be provided with comma separated strings + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFindPetsByStatusRequest +*/ func (a *PetApiService) FindPetsByStatus(ctx _context.Context) ApiFindPetsByStatusRequest { return ApiFindPetsByStatusRequest{ ApiService: a, @@ -382,10 +382,8 @@ func (a *PetApiService) FindPetsByStatus(ctx _context.Context) ApiFindPetsByStat } } -/* - * Execute executes the request - * @return []Pet - */ +// Execute executes the request +// @return []Pet func (a *PetApiService) FindPetsByStatusExecute(r ApiFindPetsByStatusRequest) ([]Pet, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -471,6 +469,7 @@ type ApiFindPetsByTagsRequest struct { tags *[]string } +// Tags to filter by func (r ApiFindPetsByTagsRequest) Tags(tags []string) ApiFindPetsByTagsRequest { r.tags = &tags return r @@ -481,11 +480,15 @@ func (r ApiFindPetsByTagsRequest) Execute() ([]Pet, *_nethttp.Response, error) { } /* - * FindPetsByTags Finds Pets by tags - * Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiFindPetsByTagsRequest - */ +FindPetsByTags Finds Pets by tags + +Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiFindPetsByTagsRequest + +Deprecated +*/ func (a *PetApiService) FindPetsByTags(ctx _context.Context) ApiFindPetsByTagsRequest { return ApiFindPetsByTagsRequest{ ApiService: a, @@ -493,10 +496,9 @@ func (a *PetApiService) FindPetsByTags(ctx _context.Context) ApiFindPetsByTagsRe } } -/* - * Execute executes the request - * @return []Pet - */ +// Execute executes the request +// @return []Pet +// Deprecated func (a *PetApiService) FindPetsByTagsExecute(r ApiFindPetsByTagsRequest) ([]Pet, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -588,12 +590,14 @@ func (r ApiGetPetByIdRequest) Execute() (Pet, *_nethttp.Response, error) { } /* - * GetPetById Find pet by ID - * Returns a single pet - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param petId ID of pet to return - * @return ApiGetPetByIdRequest - */ +GetPetById Find pet by ID + +Returns a single pet + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param petId ID of pet to return + @return ApiGetPetByIdRequest +*/ func (a *PetApiService) GetPetById(ctx _context.Context, petId int64) ApiGetPetByIdRequest { return ApiGetPetByIdRequest{ ApiService: a, @@ -602,10 +606,8 @@ func (a *PetApiService) GetPetById(ctx _context.Context, petId int64) ApiGetPetB } } -/* - * Execute executes the request - * @return Pet - */ +// Execute executes the request +// @return Pet func (a *PetApiService) GetPetByIdExecute(r ApiGetPetByIdRequest) (Pet, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -702,6 +704,7 @@ type ApiUpdatePetRequest struct { pet *Pet } +// Pet object that needs to be added to the store func (r ApiUpdatePetRequest) Pet(pet Pet) ApiUpdatePetRequest { r.pet = &pet return r @@ -712,10 +715,11 @@ func (r ApiUpdatePetRequest) Execute() (*_nethttp.Response, error) { } /* - * UpdatePet Update an existing pet - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiUpdatePetRequest - */ +UpdatePet Update an existing pet + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiUpdatePetRequest +*/ func (a *PetApiService) UpdatePet(ctx _context.Context) ApiUpdatePetRequest { return ApiUpdatePetRequest{ ApiService: a, @@ -723,9 +727,7 @@ func (a *PetApiService) UpdatePet(ctx _context.Context) ApiUpdatePetRequest { } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *PetApiService) UpdatePetExecute(r ApiUpdatePetRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPut @@ -804,10 +806,12 @@ type ApiUpdatePetWithFormRequest struct { status *string } +// Updated name of the pet func (r ApiUpdatePetWithFormRequest) Name(name string) ApiUpdatePetWithFormRequest { r.name = &name return r } +// Updated status of the pet func (r ApiUpdatePetWithFormRequest) Status(status string) ApiUpdatePetWithFormRequest { r.status = &status return r @@ -818,11 +822,12 @@ func (r ApiUpdatePetWithFormRequest) Execute() (*_nethttp.Response, error) { } /* - * UpdatePetWithForm Updates a pet in the store with form data - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param petId ID of pet that needs to be updated - * @return ApiUpdatePetWithFormRequest - */ +UpdatePetWithForm Updates a pet in the store with form data + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param petId ID of pet that needs to be updated + @return ApiUpdatePetWithFormRequest +*/ func (a *PetApiService) UpdatePetWithForm(ctx _context.Context, petId int64) ApiUpdatePetWithFormRequest { return ApiUpdatePetWithFormRequest{ ApiService: a, @@ -831,9 +836,7 @@ func (a *PetApiService) UpdatePetWithForm(ctx _context.Context, petId int64) Api } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *PetApiService) UpdatePetWithFormExecute(r ApiUpdatePetWithFormRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -914,10 +917,12 @@ type ApiUploadFileRequest struct { file **os.File } +// Additional data to pass to server func (r ApiUploadFileRequest) AdditionalMetadata(additionalMetadata string) ApiUploadFileRequest { r.additionalMetadata = &additionalMetadata return r } +// file to upload func (r ApiUploadFileRequest) File(file *os.File) ApiUploadFileRequest { r.file = &file return r @@ -928,11 +933,12 @@ func (r ApiUploadFileRequest) Execute() (ApiResponse, *_nethttp.Response, error) } /* - * UploadFile uploads an image - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param petId ID of pet to update - * @return ApiUploadFileRequest - */ +UploadFile uploads an image + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param petId ID of pet to update + @return ApiUploadFileRequest +*/ func (a *PetApiService) UploadFile(ctx _context.Context, petId int64) ApiUploadFileRequest { return ApiUploadFileRequest{ ApiService: a, @@ -941,10 +947,8 @@ func (a *PetApiService) UploadFile(ctx _context.Context, petId int64) ApiUploadF } } -/* - * Execute executes the request - * @return ApiResponse - */ +// Execute executes the request +// @return ApiResponse func (a *PetApiService) UploadFileExecute(r ApiUploadFileRequest) (ApiResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -1043,10 +1047,12 @@ type ApiUploadFileWithRequiredFileRequest struct { additionalMetadata *string } +// file to upload func (r ApiUploadFileWithRequiredFileRequest) RequiredFile(requiredFile *os.File) ApiUploadFileWithRequiredFileRequest { r.requiredFile = &requiredFile return r } +// Additional data to pass to server func (r ApiUploadFileWithRequiredFileRequest) AdditionalMetadata(additionalMetadata string) ApiUploadFileWithRequiredFileRequest { r.additionalMetadata = &additionalMetadata return r @@ -1057,11 +1063,12 @@ func (r ApiUploadFileWithRequiredFileRequest) Execute() (ApiResponse, *_nethttp. } /* - * UploadFileWithRequiredFile uploads an image (required) - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param petId ID of pet to update - * @return ApiUploadFileWithRequiredFileRequest - */ +UploadFileWithRequiredFile uploads an image (required) + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param petId ID of pet to update + @return ApiUploadFileWithRequiredFileRequest +*/ func (a *PetApiService) UploadFileWithRequiredFile(ctx _context.Context, petId int64) ApiUploadFileWithRequiredFileRequest { return ApiUploadFileWithRequiredFileRequest{ ApiService: a, @@ -1070,10 +1077,8 @@ func (a *PetApiService) UploadFileWithRequiredFile(ctx _context.Context, petId i } } -/* - * Execute executes the request - * @return ApiResponse - */ +// Execute executes the request +// @return ApiResponse func (a *PetApiService) UploadFileWithRequiredFileExecute(r ApiUploadFileWithRequiredFileRequest) (ApiResponse, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost diff --git a/samples/openapi3/client/petstore/go/go-petstore/api_store.go b/samples/openapi3/client/petstore/go/go-petstore/api_store.go index 3f85de0a9d6b..1fb82f576fad 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/api_store.go +++ b/samples/openapi3/client/petstore/go/go-petstore/api_store.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -27,59 +27,58 @@ var ( type StoreApi interface { /* - * DeleteOrder Delete purchase order by ID - * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param orderId ID of the order that needs to be deleted - * @return ApiDeleteOrderRequest - */ + DeleteOrder Delete purchase order by ID + + For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId ID of the order that needs to be deleted + @return ApiDeleteOrderRequest + */ DeleteOrder(ctx _context.Context, orderId string) ApiDeleteOrderRequest - /* - * DeleteOrderExecute executes the request - */ + // DeleteOrderExecute executes the request DeleteOrderExecute(r ApiDeleteOrderRequest) (*_nethttp.Response, error) /* - * GetInventory Returns pet inventories by status - * Returns a map of status codes to quantities - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiGetInventoryRequest - */ + GetInventory Returns pet inventories by status + + Returns a map of status codes to quantities + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetInventoryRequest + */ GetInventory(ctx _context.Context) ApiGetInventoryRequest - /* - * GetInventoryExecute executes the request - * @return map[string]int32 - */ + // GetInventoryExecute executes the request + // @return map[string]int32 GetInventoryExecute(r ApiGetInventoryRequest) (map[string]int32, *_nethttp.Response, error) /* - * GetOrderById Find purchase order by ID - * For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param orderId ID of pet that needs to be fetched - * @return ApiGetOrderByIdRequest - */ + GetOrderById Find purchase order by ID + + For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId ID of pet that needs to be fetched + @return ApiGetOrderByIdRequest + */ GetOrderById(ctx _context.Context, orderId int64) ApiGetOrderByIdRequest - /* - * GetOrderByIdExecute executes the request - * @return Order - */ + // GetOrderByIdExecute executes the request + // @return Order GetOrderByIdExecute(r ApiGetOrderByIdRequest) (Order, *_nethttp.Response, error) /* - * PlaceOrder Place an order for a pet - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiPlaceOrderRequest - */ + PlaceOrder Place an order for a pet + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPlaceOrderRequest + */ PlaceOrder(ctx _context.Context) ApiPlaceOrderRequest - /* - * PlaceOrderExecute executes the request - * @return Order - */ + // PlaceOrderExecute executes the request + // @return Order PlaceOrderExecute(r ApiPlaceOrderRequest) (Order, *_nethttp.Response, error) } @@ -98,12 +97,14 @@ func (r ApiDeleteOrderRequest) Execute() (*_nethttp.Response, error) { } /* - * DeleteOrder Delete purchase order by ID - * For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param orderId ID of the order that needs to be deleted - * @return ApiDeleteOrderRequest - */ +DeleteOrder Delete purchase order by ID + +For valid response try integer IDs with value < 1000. Anything above 1000 or nonintegers will generate API errors + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId ID of the order that needs to be deleted + @return ApiDeleteOrderRequest +*/ func (a *StoreApiService) DeleteOrder(ctx _context.Context, orderId string) ApiDeleteOrderRequest { return ApiDeleteOrderRequest{ ApiService: a, @@ -112,9 +113,7 @@ func (a *StoreApiService) DeleteOrder(ctx _context.Context, orderId string) ApiD } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *StoreApiService) DeleteOrderExecute(r ApiDeleteOrderRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -192,11 +191,13 @@ func (r ApiGetInventoryRequest) Execute() (map[string]int32, *_nethttp.Response, } /* - * GetInventory Returns pet inventories by status - * Returns a map of status codes to quantities - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiGetInventoryRequest - */ +GetInventory Returns pet inventories by status + +Returns a map of status codes to quantities + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiGetInventoryRequest +*/ func (a *StoreApiService) GetInventory(ctx _context.Context) ApiGetInventoryRequest { return ApiGetInventoryRequest{ ApiService: a, @@ -204,10 +205,8 @@ func (a *StoreApiService) GetInventory(ctx _context.Context) ApiGetInventoryRequ } } -/* - * Execute executes the request - * @return map[string]int32 - */ +// Execute executes the request +// @return map[string]int32 func (a *StoreApiService) GetInventoryExecute(r ApiGetInventoryRequest) (map[string]int32, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -309,12 +308,14 @@ func (r ApiGetOrderByIdRequest) Execute() (Order, *_nethttp.Response, error) { } /* - * GetOrderById Find purchase order by ID - * For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param orderId ID of pet that needs to be fetched - * @return ApiGetOrderByIdRequest - */ +GetOrderById Find purchase order by ID + +For valid response try integer IDs with value <= 5 or > 10. Other values will generated exceptions + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param orderId ID of pet that needs to be fetched + @return ApiGetOrderByIdRequest +*/ func (a *StoreApiService) GetOrderById(ctx _context.Context, orderId int64) ApiGetOrderByIdRequest { return ApiGetOrderByIdRequest{ ApiService: a, @@ -323,10 +324,8 @@ func (a *StoreApiService) GetOrderById(ctx _context.Context, orderId int64) ApiG } } -/* - * Execute executes the request - * @return Order - */ +// Execute executes the request +// @return Order func (a *StoreApiService) GetOrderByIdExecute(r ApiGetOrderByIdRequest) (Order, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -415,6 +414,7 @@ type ApiPlaceOrderRequest struct { order *Order } +// order placed for purchasing the pet func (r ApiPlaceOrderRequest) Order(order Order) ApiPlaceOrderRequest { r.order = &order return r @@ -425,10 +425,11 @@ func (r ApiPlaceOrderRequest) Execute() (Order, *_nethttp.Response, error) { } /* - * PlaceOrder Place an order for a pet - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiPlaceOrderRequest - */ +PlaceOrder Place an order for a pet + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiPlaceOrderRequest +*/ func (a *StoreApiService) PlaceOrder(ctx _context.Context) ApiPlaceOrderRequest { return ApiPlaceOrderRequest{ ApiService: a, @@ -436,10 +437,8 @@ func (a *StoreApiService) PlaceOrder(ctx _context.Context) ApiPlaceOrderRequest } } -/* - * Execute executes the request - * @return Order - */ +// Execute executes the request +// @return Order func (a *StoreApiService) PlaceOrderExecute(r ApiPlaceOrderRequest) (Order, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost diff --git a/samples/openapi3/client/petstore/go/go-petstore/api_user.go b/samples/openapi3/client/petstore/go/go-petstore/api_user.go index a844934ae982..0c259b33c4f9 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/api_user.go +++ b/samples/openapi3/client/petstore/go/go-petstore/api_user.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -27,107 +27,102 @@ var ( type UserApi interface { /* - * CreateUser Create user - * This can only be done by the logged in user. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateUserRequest - */ + CreateUser Create user + + This can only be done by the logged in user. + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateUserRequest + */ CreateUser(ctx _context.Context) ApiCreateUserRequest - /* - * CreateUserExecute executes the request - */ + // CreateUserExecute executes the request CreateUserExecute(r ApiCreateUserRequest) (*_nethttp.Response, error) /* - * CreateUsersWithArrayInput Creates list of users with given input array - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateUsersWithArrayInputRequest - */ + CreateUsersWithArrayInput Creates list of users with given input array + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateUsersWithArrayInputRequest + */ CreateUsersWithArrayInput(ctx _context.Context) ApiCreateUsersWithArrayInputRequest - /* - * CreateUsersWithArrayInputExecute executes the request - */ + // CreateUsersWithArrayInputExecute executes the request CreateUsersWithArrayInputExecute(r ApiCreateUsersWithArrayInputRequest) (*_nethttp.Response, error) /* - * CreateUsersWithListInput Creates list of users with given input array - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateUsersWithListInputRequest - */ + CreateUsersWithListInput Creates list of users with given input array + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateUsersWithListInputRequest + */ CreateUsersWithListInput(ctx _context.Context) ApiCreateUsersWithListInputRequest - /* - * CreateUsersWithListInputExecute executes the request - */ + // CreateUsersWithListInputExecute executes the request CreateUsersWithListInputExecute(r ApiCreateUsersWithListInputRequest) (*_nethttp.Response, error) /* - * DeleteUser Delete user - * This can only be done by the logged in user. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param username The name that needs to be deleted - * @return ApiDeleteUserRequest - */ + DeleteUser Delete user + + This can only be done by the logged in user. + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param username The name that needs to be deleted + @return ApiDeleteUserRequest + */ DeleteUser(ctx _context.Context, username string) ApiDeleteUserRequest - /* - * DeleteUserExecute executes the request - */ + // DeleteUserExecute executes the request DeleteUserExecute(r ApiDeleteUserRequest) (*_nethttp.Response, error) /* - * GetUserByName Get user by user name - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param username The name that needs to be fetched. Use user1 for testing. - * @return ApiGetUserByNameRequest - */ + GetUserByName Get user by user name + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param username The name that needs to be fetched. Use user1 for testing. + @return ApiGetUserByNameRequest + */ GetUserByName(ctx _context.Context, username string) ApiGetUserByNameRequest - /* - * GetUserByNameExecute executes the request - * @return User - */ + // GetUserByNameExecute executes the request + // @return User GetUserByNameExecute(r ApiGetUserByNameRequest) (User, *_nethttp.Response, error) /* - * LoginUser Logs user into the system - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiLoginUserRequest - */ + LoginUser Logs user into the system + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLoginUserRequest + */ LoginUser(ctx _context.Context) ApiLoginUserRequest - /* - * LoginUserExecute executes the request - * @return string - */ + // LoginUserExecute executes the request + // @return string LoginUserExecute(r ApiLoginUserRequest) (string, *_nethttp.Response, error) /* - * LogoutUser Logs out current logged in user session - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiLogoutUserRequest - */ + LogoutUser Logs out current logged in user session + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLogoutUserRequest + */ LogoutUser(ctx _context.Context) ApiLogoutUserRequest - /* - * LogoutUserExecute executes the request - */ + // LogoutUserExecute executes the request LogoutUserExecute(r ApiLogoutUserRequest) (*_nethttp.Response, error) /* - * UpdateUser Updated user - * This can only be done by the logged in user. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param username name that need to be deleted - * @return ApiUpdateUserRequest - */ + UpdateUser Updated user + + This can only be done by the logged in user. + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param username name that need to be deleted + @return ApiUpdateUserRequest + */ UpdateUser(ctx _context.Context, username string) ApiUpdateUserRequest - /* - * UpdateUserExecute executes the request - */ + // UpdateUserExecute executes the request UpdateUserExecute(r ApiUpdateUserRequest) (*_nethttp.Response, error) } @@ -140,6 +135,7 @@ type ApiCreateUserRequest struct { user *User } +// Created user object func (r ApiCreateUserRequest) User(user User) ApiCreateUserRequest { r.user = &user return r @@ -150,11 +146,13 @@ func (r ApiCreateUserRequest) Execute() (*_nethttp.Response, error) { } /* - * CreateUser Create user - * This can only be done by the logged in user. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateUserRequest - */ +CreateUser Create user + +This can only be done by the logged in user. + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateUserRequest +*/ func (a *UserApiService) CreateUser(ctx _context.Context) ApiCreateUserRequest { return ApiCreateUserRequest{ ApiService: a, @@ -162,9 +160,7 @@ func (a *UserApiService) CreateUser(ctx _context.Context) ApiCreateUserRequest { } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *UserApiService) CreateUserExecute(r ApiCreateUserRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -241,6 +237,7 @@ type ApiCreateUsersWithArrayInputRequest struct { user *[]User } +// List of user object func (r ApiCreateUsersWithArrayInputRequest) User(user []User) ApiCreateUsersWithArrayInputRequest { r.user = &user return r @@ -251,10 +248,11 @@ func (r ApiCreateUsersWithArrayInputRequest) Execute() (*_nethttp.Response, erro } /* - * CreateUsersWithArrayInput Creates list of users with given input array - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateUsersWithArrayInputRequest - */ +CreateUsersWithArrayInput Creates list of users with given input array + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateUsersWithArrayInputRequest +*/ func (a *UserApiService) CreateUsersWithArrayInput(ctx _context.Context) ApiCreateUsersWithArrayInputRequest { return ApiCreateUsersWithArrayInputRequest{ ApiService: a, @@ -262,9 +260,7 @@ func (a *UserApiService) CreateUsersWithArrayInput(ctx _context.Context) ApiCrea } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *UserApiService) CreateUsersWithArrayInputExecute(r ApiCreateUsersWithArrayInputRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -341,6 +337,7 @@ type ApiCreateUsersWithListInputRequest struct { user *[]User } +// List of user object func (r ApiCreateUsersWithListInputRequest) User(user []User) ApiCreateUsersWithListInputRequest { r.user = &user return r @@ -351,10 +348,11 @@ func (r ApiCreateUsersWithListInputRequest) Execute() (*_nethttp.Response, error } /* - * CreateUsersWithListInput Creates list of users with given input array - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiCreateUsersWithListInputRequest - */ +CreateUsersWithListInput Creates list of users with given input array + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCreateUsersWithListInputRequest +*/ func (a *UserApiService) CreateUsersWithListInput(ctx _context.Context) ApiCreateUsersWithListInputRequest { return ApiCreateUsersWithListInputRequest{ ApiService: a, @@ -362,9 +360,7 @@ func (a *UserApiService) CreateUsersWithListInput(ctx _context.Context) ApiCreat } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *UserApiService) CreateUsersWithListInputExecute(r ApiCreateUsersWithListInputRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPost @@ -447,12 +443,14 @@ func (r ApiDeleteUserRequest) Execute() (*_nethttp.Response, error) { } /* - * DeleteUser Delete user - * This can only be done by the logged in user. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param username The name that needs to be deleted - * @return ApiDeleteUserRequest - */ +DeleteUser Delete user + +This can only be done by the logged in user. + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param username The name that needs to be deleted + @return ApiDeleteUserRequest +*/ func (a *UserApiService) DeleteUser(ctx _context.Context, username string) ApiDeleteUserRequest { return ApiDeleteUserRequest{ ApiService: a, @@ -461,9 +459,7 @@ func (a *UserApiService) DeleteUser(ctx _context.Context, username string) ApiDe } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *UserApiService) DeleteUserExecute(r ApiDeleteUserRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodDelete @@ -542,11 +538,12 @@ func (r ApiGetUserByNameRequest) Execute() (User, *_nethttp.Response, error) { } /* - * GetUserByName Get user by user name - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param username The name that needs to be fetched. Use user1 for testing. - * @return ApiGetUserByNameRequest - */ +GetUserByName Get user by user name + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param username The name that needs to be fetched. Use user1 for testing. + @return ApiGetUserByNameRequest +*/ func (a *UserApiService) GetUserByName(ctx _context.Context, username string) ApiGetUserByNameRequest { return ApiGetUserByNameRequest{ ApiService: a, @@ -555,10 +552,8 @@ func (a *UserApiService) GetUserByName(ctx _context.Context, username string) Ap } } -/* - * Execute executes the request - * @return User - */ +// Execute executes the request +// @return User func (a *UserApiService) GetUserByNameExecute(r ApiGetUserByNameRequest) (User, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -642,10 +637,12 @@ type ApiLoginUserRequest struct { password *string } +// The user name for login func (r ApiLoginUserRequest) Username(username string) ApiLoginUserRequest { r.username = &username return r } +// The password for login in clear text func (r ApiLoginUserRequest) Password(password string) ApiLoginUserRequest { r.password = &password return r @@ -656,10 +653,11 @@ func (r ApiLoginUserRequest) Execute() (string, *_nethttp.Response, error) { } /* - * LoginUser Logs user into the system - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiLoginUserRequest - */ +LoginUser Logs user into the system + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLoginUserRequest +*/ func (a *UserApiService) LoginUser(ctx _context.Context) ApiLoginUserRequest { return ApiLoginUserRequest{ ApiService: a, @@ -667,10 +665,8 @@ func (a *UserApiService) LoginUser(ctx _context.Context) ApiLoginUserRequest { } } -/* - * Execute executes the request - * @return string - */ +// Execute executes the request +// @return string func (a *UserApiService) LoginUserExecute(r ApiLoginUserRequest) (string, *_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -765,10 +761,11 @@ func (r ApiLogoutUserRequest) Execute() (*_nethttp.Response, error) { } /* - * LogoutUser Logs out current logged in user session - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @return ApiLogoutUserRequest - */ +LogoutUser Logs out current logged in user session + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiLogoutUserRequest +*/ func (a *UserApiService) LogoutUser(ctx _context.Context) ApiLogoutUserRequest { return ApiLogoutUserRequest{ ApiService: a, @@ -776,9 +773,7 @@ func (a *UserApiService) LogoutUser(ctx _context.Context) ApiLogoutUserRequest { } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *UserApiService) LogoutUserExecute(r ApiLogoutUserRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodGet @@ -851,6 +846,7 @@ type ApiUpdateUserRequest struct { user *User } +// Updated user object func (r ApiUpdateUserRequest) User(user User) ApiUpdateUserRequest { r.user = &user return r @@ -861,12 +857,14 @@ func (r ApiUpdateUserRequest) Execute() (*_nethttp.Response, error) { } /* - * UpdateUser Updated user - * This can only be done by the logged in user. - * @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - * @param username name that need to be deleted - * @return ApiUpdateUserRequest - */ +UpdateUser Updated user + +This can only be done by the logged in user. + + @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param username name that need to be deleted + @return ApiUpdateUserRequest +*/ func (a *UserApiService) UpdateUser(ctx _context.Context, username string) ApiUpdateUserRequest { return ApiUpdateUserRequest{ ApiService: a, @@ -875,9 +873,7 @@ func (a *UserApiService) UpdateUser(ctx _context.Context, username string) ApiUp } } -/* - * Execute executes the request - */ +// Execute executes the request func (a *UserApiService) UpdateUserExecute(r ApiUpdateUserRequest) (*_nethttp.Response, error) { var ( localVarHTTPMethod = _nethttp.MethodPut diff --git a/samples/openapi3/client/petstore/go/go-petstore/client.go b/samples/openapi3/client/petstore/go/go-petstore/client.go index 4902cfae2150..60262a81cabf 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/client.go +++ b/samples/openapi3/client/petstore/go/go-petstore/client.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/configuration.go b/samples/openapi3/client/petstore/go/go-petstore/configuration.go index 77f753a1bf52..dc41bdcfc29d 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/configuration.go +++ b/samples/openapi3/client/petstore/go/go-petstore/configuration.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_200_response.go b/samples/openapi3/client/petstore/go/go-petstore/model_200_response.go index b7b0355f5b12..27004b3b7278 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_200_response.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_200_response.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model__special_model_name_.go b/samples/openapi3/client/petstore/go/go-petstore/model__special_model_name_.go index f9eb00ea7b1b..9b66df708cb1 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model__special_model_name_.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model__special_model_name_.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_additional_properties_class.go b/samples/openapi3/client/petstore/go/go-petstore/model_additional_properties_class.go index d9b88284fec8..b7b55a2a983b 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_additional_properties_class.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_additional_properties_class.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_animal.go b/samples/openapi3/client/petstore/go/go-petstore/model_animal.go index 0cbab5f9cca0..1452a7259f12 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_animal.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_animal.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_api_response.go b/samples/openapi3/client/petstore/go/go-petstore/model_api_response.go index 65c951cc1da4..6ad5fad605a3 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_api_response.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_api_response.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_apple.go b/samples/openapi3/client/petstore/go/go-petstore/model_apple.go index 848f5bb646d0..443a333234a7 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_apple.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_apple.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_apple_req.go b/samples/openapi3/client/petstore/go/go-petstore/model_apple_req.go index b4173ee93e59..5bed586e0651 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_apple_req.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_apple_req.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_array_of_array_of_number_only.go b/samples/openapi3/client/petstore/go/go-petstore/model_array_of_array_of_number_only.go index cb234513d268..f4f77661d45f 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_array_of_array_of_number_only.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_array_of_array_of_number_only.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_array_of_number_only.go b/samples/openapi3/client/petstore/go/go-petstore/model_array_of_number_only.go index cbfe71fc8642..3f099edff2ab 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_array_of_number_only.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_array_of_number_only.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_array_test_.go b/samples/openapi3/client/petstore/go/go-petstore/model_array_test_.go index fc81fe8070d4..82ab2eaaf84c 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_array_test_.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_array_test_.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_banana.go b/samples/openapi3/client/petstore/go/go-petstore/model_banana.go index 99ef396994ff..bfd1769a6ef5 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_banana.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_banana.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_banana_req.go b/samples/openapi3/client/petstore/go/go-petstore/model_banana_req.go index 71af492ba3c7..67e6d5542b92 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_banana_req.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_banana_req.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_capitalization.go b/samples/openapi3/client/petstore/go/go-petstore/model_capitalization.go index 3f6bb3db20be..88483e6c6c48 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_capitalization.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_capitalization.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_cat.go b/samples/openapi3/client/petstore/go/go-petstore/model_cat.go index 972484d4dbdd..38604e23ea36 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_cat.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_cat.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_cat_all_of.go b/samples/openapi3/client/petstore/go/go-petstore/model_cat_all_of.go index 297bdc075ee9..6e9092bd8135 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_cat_all_of.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_cat_all_of.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_category.go b/samples/openapi3/client/petstore/go/go-petstore/model_category.go index 028a2e896633..f045ffa65669 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_category.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_category.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_class_model.go b/samples/openapi3/client/petstore/go/go-petstore/model_class_model.go index 598de1ee5b13..441570be10fd 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_class_model.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_class_model.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_client.go b/samples/openapi3/client/petstore/go/go-petstore/model_client.go index bc96f5cd46a8..08274685f070 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_client.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_client.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_dog.go b/samples/openapi3/client/petstore/go/go-petstore/model_dog.go index 0da4e82a2635..7dba6c5b5aed 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_dog.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_dog.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_dog_all_of.go b/samples/openapi3/client/petstore/go/go-petstore/model_dog_all_of.go index b7ea128bd0a5..8a6c06d10006 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_dog_all_of.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_dog_all_of.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_enum_arrays.go b/samples/openapi3/client/petstore/go/go-petstore/model_enum_arrays.go index 3675cc5f8f51..b602cc1122f3 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_enum_arrays.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_enum_arrays.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_enum_class.go b/samples/openapi3/client/petstore/go/go-petstore/model_enum_class.go index 9bbc1275cde8..f2bafc2279bf 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_enum_class.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_enum_class.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_enum_test_.go b/samples/openapi3/client/petstore/go/go-petstore/model_enum_test_.go index e2e843b044eb..b1f488fa0ba8 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_enum_test_.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_enum_test_.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_file.go b/samples/openapi3/client/petstore/go/go-petstore/model_file.go index cc96065a9be9..db093e41755f 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_file.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_file.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_file_schema_test_class.go b/samples/openapi3/client/petstore/go/go-petstore/model_file_schema_test_class.go index 29cd6d4dabf5..49c463209dfb 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_file_schema_test_class.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_file_schema_test_class.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_foo.go b/samples/openapi3/client/petstore/go/go-petstore/model_foo.go index 71a80199ed2d..c4a466b4ac26 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_foo.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_foo.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_format_test_.go b/samples/openapi3/client/petstore/go/go-petstore/model_format_test_.go index af3e4bd852a7..af2fe2e7b184 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_format_test_.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_format_test_.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_fruit.go b/samples/openapi3/client/petstore/go/go-petstore/model_fruit.go index eb733efbb06e..555b8ab7484f 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_fruit.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_fruit.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_fruit_req.go b/samples/openapi3/client/petstore/go/go-petstore/model_fruit_req.go index 1dd94b9be66b..c3d6ea1cea6c 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_fruit_req.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_fruit_req.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_gm_fruit.go b/samples/openapi3/client/petstore/go/go-petstore/model_gm_fruit.go index 9185243f6d0f..bc1023eacaf4 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_gm_fruit.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_gm_fruit.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_has_only_read_only.go b/samples/openapi3/client/petstore/go/go-petstore/model_has_only_read_only.go index 876b65e7986b..08dad1f62cc8 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_has_only_read_only.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_has_only_read_only.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_health_check_result.go b/samples/openapi3/client/petstore/go/go-petstore/model_health_check_result.go index 7d75cd6f70a3..89403e096c1b 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_health_check_result.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_health_check_result.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_inline_response_default.go b/samples/openapi3/client/petstore/go/go-petstore/model_inline_response_default.go index fda969bd19d3..4b4cef54b8c2 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_inline_response_default.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_inline_response_default.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_list.go b/samples/openapi3/client/petstore/go/go-petstore/model_list.go index 0cf382bab89d..07e4bdd27a66 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_list.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_list.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_mammal.go b/samples/openapi3/client/petstore/go/go-petstore/model_mammal.go index 50f7d0bd1673..a67af74d5823 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_mammal.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_mammal.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_map_test_.go b/samples/openapi3/client/petstore/go/go-petstore/model_map_test_.go index 8f8b047c40e9..36f315091b85 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_map_test_.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_map_test_.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_mixed_properties_and_additional_properties_class.go b/samples/openapi3/client/petstore/go/go-petstore/model_mixed_properties_and_additional_properties_class.go index 9da2a721d8f8..a3a55d014435 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_mixed_properties_and_additional_properties_class.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_mixed_properties_and_additional_properties_class.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_name.go b/samples/openapi3/client/petstore/go/go-petstore/model_name.go index b3a5c87ad873..0c4f820c6e5e 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_name.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_name.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_nullable_class.go b/samples/openapi3/client/petstore/go/go-petstore/model_nullable_class.go index f80e869eca35..acb1a75ed610 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_nullable_class.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_nullable_class.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_number_only.go b/samples/openapi3/client/petstore/go/go-petstore/model_number_only.go index 772b4c941b7b..bf811e6a5732 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_number_only.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_number_only.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_order.go b/samples/openapi3/client/petstore/go/go-petstore/model_order.go index 0ad70df36653..bd72e6f63655 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_order.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_order.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_outer_composite.go b/samples/openapi3/client/petstore/go/go-petstore/model_outer_composite.go index d11b292cb53f..6fad0ae7dca1 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_outer_composite.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_outer_composite.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_outer_enum.go b/samples/openapi3/client/petstore/go/go-petstore/model_outer_enum.go index 8779e003e6b0..937f4b635979 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_outer_enum.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_outer_enum.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_outer_enum_default_value.go b/samples/openapi3/client/petstore/go/go-petstore/model_outer_enum_default_value.go index b0c116b7fe0e..5324670d6686 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_outer_enum_default_value.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_outer_enum_default_value.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_outer_enum_integer.go b/samples/openapi3/client/petstore/go/go-petstore/model_outer_enum_integer.go index 7f5e9dd4588f..a3e43c01d698 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_outer_enum_integer.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_outer_enum_integer.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_outer_enum_integer_default_value.go b/samples/openapi3/client/petstore/go/go-petstore/model_outer_enum_integer_default_value.go index 828b23454f51..80b8b0a46b20 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_outer_enum_integer_default_value.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_outer_enum_integer_default_value.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_pet.go b/samples/openapi3/client/petstore/go/go-petstore/model_pet.go index 4e9edad7ec40..6a856bf7689c 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_pet.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_pet.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ type Pet struct { PhotoUrls []string `json:"photoUrls"` Tags *[]Tag `json:"tags,omitempty"` // pet status in the store + // Deprecated Status *string `json:"status,omitempty"` AdditionalProperties map[string]interface{} } @@ -192,6 +193,7 @@ func (o *Pet) SetTags(v []Tag) { } // GetStatus returns the Status field value if set, zero value otherwise. +// Deprecated func (o *Pet) GetStatus() string { if o == nil || o.Status == nil { var ret string @@ -202,6 +204,7 @@ func (o *Pet) GetStatus() string { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. +// Deprecated func (o *Pet) GetStatusOk() (*string, bool) { if o == nil || o.Status == nil { return nil, false @@ -219,6 +222,7 @@ func (o *Pet) HasStatus() bool { } // SetStatus gets a reference to the given string and assigns it to the Status field. +// Deprecated func (o *Pet) SetStatus(v string) { o.Status = &v } diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_read_only_first.go b/samples/openapi3/client/petstore/go/go-petstore/model_read_only_first.go index b49f06adfcd8..eed30450bc0d 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_read_only_first.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_read_only_first.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_return.go b/samples/openapi3/client/petstore/go/go-petstore/model_return.go index 6898fc007b46..1752b15d24ab 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_return.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_return.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_tag.go b/samples/openapi3/client/petstore/go/go-petstore/model_tag.go index 827c403d8a77..c7b20ccb32c7 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_tag.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_tag.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_user.go b/samples/openapi3/client/petstore/go/go-petstore/model_user.go index 028b75528a5c..85271ee249ed 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_user.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_user.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_whale.go b/samples/openapi3/client/petstore/go/go-petstore/model_whale.go index bbf6a7cd0256..914b81162960 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_whale.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_whale.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/model_zebra.go b/samples/openapi3/client/petstore/go/go-petstore/model_zebra.go index ab933760a448..eb23ffbedc9c 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/model_zebra.go +++ b/samples/openapi3/client/petstore/go/go-petstore/model_zebra.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/response.go b/samples/openapi3/client/petstore/go/go-petstore/response.go index d8189716b450..60c5d20ba466 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/response.go +++ b/samples/openapi3/client/petstore/go/go-petstore/response.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/signing.go b/samples/openapi3/client/petstore/go/go-petstore/signing.go index 9dc2cf7570a5..55b954f5fd53 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/signing.go +++ b/samples/openapi3/client/petstore/go/go-petstore/signing.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/openapi3/client/petstore/go/go-petstore/utils.go b/samples/openapi3/client/petstore/go/go-petstore/utils.go index b35436c11f56..db7f0c4651db 100644 --- a/samples/openapi3/client/petstore/go/go-petstore/utils.go +++ b/samples/openapi3/client/petstore/go/go-petstore/utils.go @@ -1,10 +1,10 @@ /* - * OpenAPI 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: \" \\ - * - * API version: 1.0.0 - */ +OpenAPI 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: \" \\ + +API version: 1.0.0 +*/ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/samples/schema/petstore/ktorm/src/main/kotlin/org/openapitools/database/models/Pet.kt b/samples/schema/petstore/ktorm/src/main/kotlin/org/openapitools/database/models/Pet.kt index f6ceae6bc632..c95e111c3d41 100644 --- a/samples/schema/petstore/ktorm/src/main/kotlin/org/openapitools/database/models/Pet.kt +++ b/samples/schema/petstore/ktorm/src/main/kotlin/org/openapitools/database/models/Pet.kt @@ -30,6 +30,7 @@ object Pets : BaseTable("Pet") { val name = text("name") val id = long("id") /* null */ val category = long("category") /* null */ + @Deprecated(message = "This property is deprecated.") val status = text("status").transform({ Pet.Status.valueOf(it ?: "available") }, { it.value }) /* null */ /* pet status in the store */ diff --git a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/wwwroot/openapi-original.json b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/wwwroot/openapi-original.json index 4be6ecab7079..fa67d1555117 100644 --- a/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/wwwroot/openapi-original.json +++ b/samples/server/petstore/aspnetcore-5.0/src/Org.OpenAPITools/wwwroot/openapi-original.json @@ -102,6 +102,7 @@ "description" : "Multiple status values can be provided with comma separated strings", "operationId" : "findPetsByStatus", "parameters" : [ { + "deprecated" : true, "description" : "Status values that need to be considered for filter", "explode" : false, "in" : "query", @@ -1019,6 +1020,7 @@ } }, "status" : { + "deprecated" : true, "description" : "pet status in the store", "enum" : [ "available", "pending", "sold" ], "type" : "string" diff --git a/samples/server/petstore/erlang-server/priv/openapi.json b/samples/server/petstore/erlang-server/priv/openapi.json index 4be6ecab7079..fa67d1555117 100644 --- a/samples/server/petstore/erlang-server/priv/openapi.json +++ b/samples/server/petstore/erlang-server/priv/openapi.json @@ -102,6 +102,7 @@ "description" : "Multiple status values can be provided with comma separated strings", "operationId" : "findPetsByStatus", "parameters" : [ { + "deprecated" : true, "description" : "Status values that need to be considered for filter", "explode" : false, "in" : "query", @@ -1019,6 +1020,7 @@ } }, "status" : { + "deprecated" : true, "description" : "pet status in the store", "enum" : [ "available", "pending", "sold" ], "type" : "string" diff --git a/samples/server/petstore/go-api-server/api/openapi.yaml b/samples/server/petstore/go-api-server/api/openapi.yaml index 26aaeac34b7d..606cc84f1380 100644 --- a/samples/server/petstore/go-api-server/api/openapi.yaml +++ b/samples/server/petstore/go-api-server/api/openapi.yaml @@ -76,7 +76,8 @@ paths: description: Multiple status values can be provided with comma separated strings operationId: findPetsByStatus parameters: - - description: Status values that need to be considered for filter + - deprecated: true + description: Status values that need to be considered for filter explode: false in: query name: status @@ -759,6 +760,7 @@ components: name: tag wrapped: true status: + deprecated: true description: pet status in the store enum: - available diff --git a/samples/server/petstore/go-api-server/go/api.go b/samples/server/petstore/go-api-server/go/api.go index 64321a00b2e7..5556474295eb 100644 --- a/samples/server/petstore/go-api-server/go/api.go +++ b/samples/server/petstore/go-api-server/go/api.go @@ -24,6 +24,7 @@ type PetApiRouter interface { AddPet(http.ResponseWriter, *http.Request) DeletePet(http.ResponseWriter, *http.Request) FindPetsByStatus(http.ResponseWriter, *http.Request) + // Deprecated FindPetsByTags(http.ResponseWriter, *http.Request) GetPetById(http.ResponseWriter, *http.Request) UpdatePet(http.ResponseWriter, *http.Request) @@ -62,6 +63,7 @@ type PetApiServicer interface { AddPet(context.Context, Pet) (ImplResponse, error) DeletePet(context.Context, int64, string) (ImplResponse, error) FindPetsByStatus(context.Context, []string) (ImplResponse, error) + // Deprecated FindPetsByTags(context.Context, []string) (ImplResponse, error) GetPetById(context.Context, int64) (ImplResponse, error) UpdatePet(context.Context, Pet) (ImplResponse, error) diff --git a/samples/server/petstore/go-api-server/go/api_pet.go b/samples/server/petstore/go-api-server/go/api_pet.go index fc0fb309883d..863b9095b897 100644 --- a/samples/server/petstore/go-api-server/go/api_pet.go +++ b/samples/server/petstore/go-api-server/go/api_pet.go @@ -156,6 +156,7 @@ func (c *PetApiController) FindPetsByStatus(w http.ResponseWriter, r *http.Reque } // FindPetsByTags - Finds Pets by tags +// Deprecated func (c *PetApiController) FindPetsByTags(w http.ResponseWriter, r *http.Request) { query := r.URL.Query() tags := strings.Split(query.Get("tags"), ",") diff --git a/samples/server/petstore/go-api-server/go/api_pet_service.go b/samples/server/petstore/go-api-server/go/api_pet_service.go index d5f272f37a7b..c612d222a875 100644 --- a/samples/server/petstore/go-api-server/go/api_pet_service.go +++ b/samples/server/petstore/go-api-server/go/api_pet_service.go @@ -67,6 +67,7 @@ func (s *PetApiService) FindPetsByStatus(ctx context.Context, status []string) ( } // FindPetsByTags - Finds Pets by tags +// Deprecated func (s *PetApiService) FindPetsByTags(ctx context.Context, tags []string) (ImplResponse, error) { // TODO - update FindPetsByTags with the required logic for this service method. // Add api_pet_service.go to the .openapi-generator-ignore to avoid overwriting this service implementation when updating open api generation. diff --git a/samples/server/petstore/go-api-server/go/model_pet.go b/samples/server/petstore/go-api-server/go/model_pet.go index fb206487ab08..3fb69fafe385 100644 --- a/samples/server/petstore/go-api-server/go/model_pet.go +++ b/samples/server/petstore/go-api-server/go/model_pet.go @@ -23,5 +23,6 @@ type Pet struct { Tags []Tag `json:"tags,omitempty"` // pet status in the store + // Deprecated Status string `json:"status,omitempty"` } diff --git a/samples/server/petstore/go-chi-server/api/openapi.yaml b/samples/server/petstore/go-chi-server/api/openapi.yaml index 26aaeac34b7d..606cc84f1380 100644 --- a/samples/server/petstore/go-chi-server/api/openapi.yaml +++ b/samples/server/petstore/go-chi-server/api/openapi.yaml @@ -76,7 +76,8 @@ paths: description: Multiple status values can be provided with comma separated strings operationId: findPetsByStatus parameters: - - description: Status values that need to be considered for filter + - deprecated: true + description: Status values that need to be considered for filter explode: false in: query name: status @@ -759,6 +760,7 @@ components: name: tag wrapped: true status: + deprecated: true description: pet status in the store enum: - available diff --git a/samples/server/petstore/go-chi-server/go/api.go b/samples/server/petstore/go-chi-server/go/api.go index 64321a00b2e7..5556474295eb 100644 --- a/samples/server/petstore/go-chi-server/go/api.go +++ b/samples/server/petstore/go-chi-server/go/api.go @@ -24,6 +24,7 @@ type PetApiRouter interface { AddPet(http.ResponseWriter, *http.Request) DeletePet(http.ResponseWriter, *http.Request) FindPetsByStatus(http.ResponseWriter, *http.Request) + // Deprecated FindPetsByTags(http.ResponseWriter, *http.Request) GetPetById(http.ResponseWriter, *http.Request) UpdatePet(http.ResponseWriter, *http.Request) @@ -62,6 +63,7 @@ type PetApiServicer interface { AddPet(context.Context, Pet) (ImplResponse, error) DeletePet(context.Context, int64, string) (ImplResponse, error) FindPetsByStatus(context.Context, []string) (ImplResponse, error) + // Deprecated FindPetsByTags(context.Context, []string) (ImplResponse, error) GetPetById(context.Context, int64) (ImplResponse, error) UpdatePet(context.Context, Pet) (ImplResponse, error) diff --git a/samples/server/petstore/go-chi-server/go/api_pet.go b/samples/server/petstore/go-chi-server/go/api_pet.go index 323215a42b80..b698977898fc 100644 --- a/samples/server/petstore/go-chi-server/go/api_pet.go +++ b/samples/server/petstore/go-chi-server/go/api_pet.go @@ -155,6 +155,7 @@ func (c *PetApiController) FindPetsByStatus(w http.ResponseWriter, r *http.Reque } // FindPetsByTags - Finds Pets by tags +// Deprecated func (c *PetApiController) FindPetsByTags(w http.ResponseWriter, r *http.Request) { query := r.URL.Query() tags := strings.Split(query.Get("tags"), ",") diff --git a/samples/server/petstore/go-chi-server/go/api_pet_service.go b/samples/server/petstore/go-chi-server/go/api_pet_service.go index d5f272f37a7b..c612d222a875 100644 --- a/samples/server/petstore/go-chi-server/go/api_pet_service.go +++ b/samples/server/petstore/go-chi-server/go/api_pet_service.go @@ -67,6 +67,7 @@ func (s *PetApiService) FindPetsByStatus(ctx context.Context, status []string) ( } // FindPetsByTags - Finds Pets by tags +// Deprecated func (s *PetApiService) FindPetsByTags(ctx context.Context, tags []string) (ImplResponse, error) { // TODO - update FindPetsByTags with the required logic for this service method. // Add api_pet_service.go to the .openapi-generator-ignore to avoid overwriting this service implementation when updating open api generation. diff --git a/samples/server/petstore/go-chi-server/go/model_pet.go b/samples/server/petstore/go-chi-server/go/model_pet.go index fb206487ab08..3fb69fafe385 100644 --- a/samples/server/petstore/go-chi-server/go/model_pet.go +++ b/samples/server/petstore/go-chi-server/go/model_pet.go @@ -23,5 +23,6 @@ type Pet struct { Tags []Tag `json:"tags,omitempty"` // pet status in the store + // Deprecated Status string `json:"status,omitempty"` } diff --git a/samples/server/petstore/go-echo-server/.docs/api/openapi.yaml b/samples/server/petstore/go-echo-server/.docs/api/openapi.yaml index 26aaeac34b7d..606cc84f1380 100644 --- a/samples/server/petstore/go-echo-server/.docs/api/openapi.yaml +++ b/samples/server/petstore/go-echo-server/.docs/api/openapi.yaml @@ -76,7 +76,8 @@ paths: description: Multiple status values can be provided with comma separated strings operationId: findPetsByStatus parameters: - - description: Status values that need to be considered for filter + - deprecated: true + description: Status values that need to be considered for filter explode: false in: query name: status @@ -759,6 +760,7 @@ components: name: tag wrapped: true status: + deprecated: true description: pet status in the store enum: - available diff --git a/samples/server/petstore/go-echo-server/handlers/api_pet.go b/samples/server/petstore/go-echo-server/handlers/api_pet.go index 0fd09f1ff5c2..7a5381951599 100644 --- a/samples/server/petstore/go-echo-server/handlers/api_pet.go +++ b/samples/server/petstore/go-echo-server/handlers/api_pet.go @@ -30,6 +30,7 @@ func (c *Container) FindPetsByStatus(ctx echo.Context) error { // FindPetsByTags - Finds Pets by tags +// Deprecated func (c *Container) FindPetsByTags(ctx echo.Context) error { return ctx.JSON(http.StatusOK, models.HelloWorld { Message: "Hello World", diff --git a/samples/server/petstore/go-echo-server/main.go b/samples/server/petstore/go-echo-server/main.go index 2d4c212e23c3..badc9f0fcb88 100644 --- a/samples/server/petstore/go-echo-server/main.go +++ b/samples/server/petstore/go-echo-server/main.go @@ -17,64 +17,64 @@ func main() { e.Use(middleware.Recover()) - // AddPet - Add a new pet to the store + // AddPet - Add a new pet to the store e.POST("/v2/pet", c.AddPet) - // DeletePet - Deletes a pet + // DeletePet - Deletes a pet e.DELETE("/v2/pet/:petId", c.DeletePet) - // FindPetsByStatus - Finds Pets by status + // FindPetsByStatus - Finds Pets by status e.GET("/v2/pet/findByStatus", c.FindPetsByStatus) - // FindPetsByTags - Finds Pets by tags + // FindPetsByTags - Finds Pets by tags (deprecated) e.GET("/v2/pet/findByTags", c.FindPetsByTags) - // GetPetById - Find pet by ID + // GetPetById - Find pet by ID e.GET("/v2/pet/:petId", c.GetPetById) - // UpdatePet - Update an existing pet + // UpdatePet - Update an existing pet e.PUT("/v2/pet", c.UpdatePet) - // UpdatePetWithForm - Updates a pet in the store with form data + // UpdatePetWithForm - Updates a pet in the store with form data e.POST("/v2/pet/:petId", c.UpdatePetWithForm) - // UploadFile - uploads an image + // UploadFile - uploads an image e.POST("/v2/pet/:petId/uploadImage", c.UploadFile) - // DeleteOrder - Delete purchase order by ID + // DeleteOrder - Delete purchase order by ID e.DELETE("/v2/store/order/:orderId", c.DeleteOrder) - // GetInventory - Returns pet inventories by status + // GetInventory - Returns pet inventories by status e.GET("/v2/store/inventory", c.GetInventory) - // GetOrderById - Find purchase order by ID + // GetOrderById - Find purchase order by ID e.GET("/v2/store/order/:orderId", c.GetOrderById) - // PlaceOrder - Place an order for a pet + // PlaceOrder - Place an order for a pet e.POST("/v2/store/order", c.PlaceOrder) - // CreateUser - Create user + // CreateUser - Create user e.POST("/v2/user", c.CreateUser) - // CreateUsersWithArrayInput - Creates list of users with given input array + // CreateUsersWithArrayInput - Creates list of users with given input array e.POST("/v2/user/createWithArray", c.CreateUsersWithArrayInput) - // CreateUsersWithListInput - Creates list of users with given input array + // CreateUsersWithListInput - Creates list of users with given input array e.POST("/v2/user/createWithList", c.CreateUsersWithListInput) - // DeleteUser - Delete user + // DeleteUser - Delete user e.DELETE("/v2/user/:username", c.DeleteUser) - // GetUserByName - Get user by user name + // GetUserByName - Get user by user name e.GET("/v2/user/:username", c.GetUserByName) - // LoginUser - Logs user into the system + // LoginUser - Logs user into the system e.GET("/v2/user/login", c.LoginUser) - // LogoutUser - Logs out current logged in user session + // LogoutUser - Logs out current logged in user session e.GET("/v2/user/logout", c.LogoutUser) - // UpdateUser - Updated user + // UpdateUser - Updated user e.PUT("/v2/user/:username", c.UpdateUser) diff --git a/samples/server/petstore/go-echo-server/models/model_pet.go b/samples/server/petstore/go-echo-server/models/model_pet.go index a315672b3bd0..c6a3fff57a0a 100644 --- a/samples/server/petstore/go-echo-server/models/model_pet.go +++ b/samples/server/petstore/go-echo-server/models/model_pet.go @@ -14,5 +14,6 @@ type Pet struct { Tags []Tag `json:"tags,omitempty"` // pet status in the store + // Deprecated Status string `json:"status,omitempty"` } diff --git a/samples/server/petstore/go-gin-api-server/api/openapi.yaml b/samples/server/petstore/go-gin-api-server/api/openapi.yaml index 26aaeac34b7d..606cc84f1380 100644 --- a/samples/server/petstore/go-gin-api-server/api/openapi.yaml +++ b/samples/server/petstore/go-gin-api-server/api/openapi.yaml @@ -76,7 +76,8 @@ paths: description: Multiple status values can be provided with comma separated strings operationId: findPetsByStatus parameters: - - description: Status values that need to be considered for filter + - deprecated: true + description: Status values that need to be considered for filter explode: false in: query name: status @@ -759,6 +760,7 @@ components: name: tag wrapped: true status: + deprecated: true description: pet status in the store enum: - available diff --git a/samples/server/petstore/go-gin-api-server/go/api_pet.go b/samples/server/petstore/go-gin-api-server/go/api_pet.go index 851a3ef5e885..3377d007de83 100644 --- a/samples/server/petstore/go-gin-api-server/go/api_pet.go +++ b/samples/server/petstore/go-gin-api-server/go/api_pet.go @@ -31,6 +31,7 @@ func FindPetsByStatus(c *gin.Context) { } // FindPetsByTags - Finds Pets by tags +// Deprecated func FindPetsByTags(c *gin.Context) { c.JSON(http.StatusOK, gin.H{}) } diff --git a/samples/server/petstore/go-gin-api-server/go/model_pet.go b/samples/server/petstore/go-gin-api-server/go/model_pet.go index fb206487ab08..3fb69fafe385 100644 --- a/samples/server/petstore/go-gin-api-server/go/model_pet.go +++ b/samples/server/petstore/go-gin-api-server/go/model_pet.go @@ -23,5 +23,6 @@ type Pet struct { Tags []Tag `json:"tags,omitempty"` // pet status in the store + // Deprecated Status string `json:"status,omitempty"` } diff --git a/samples/server/petstore/java-vertx-web/src/main/resources/openapi.yaml b/samples/server/petstore/java-vertx-web/src/main/resources/openapi.yaml index 12848353afb2..844d9cf368b3 100644 --- a/samples/server/petstore/java-vertx-web/src/main/resources/openapi.yaml +++ b/samples/server/petstore/java-vertx-web/src/main/resources/openapi.yaml @@ -80,7 +80,8 @@ paths: description: Multiple status values can be provided with comma separated strings operationId: findPetsByStatus parameters: - - description: Status values that need to be considered for filter + - deprecated: true + description: Status values that need to be considered for filter explode: false in: query name: status @@ -788,6 +789,7 @@ components: name: tag wrapped: true status: + deprecated: true description: pet status in the store enum: - available diff --git a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/Pet.kt b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/Pet.kt index 22bbe695c0dc..6f1084761b27 100644 --- a/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/Pet.kt +++ b/samples/server/petstore/kotlin-springboot-delegate/src/main/kotlin/org/openapitools/model/Pet.kt @@ -44,6 +44,7 @@ data class Pet( @field:JsonProperty("tags") val tags: kotlin.collections.List? = null, @ApiModelProperty(example = "null", value = "pet status in the store") + @Deprecated(message = "") @field:JsonProperty("status") val status: Pet.Status? = null ) { diff --git a/samples/server/petstore/php-slim4/lib/Model/Pet.php b/samples/server/petstore/php-slim4/lib/Model/Pet.php index d657230c8693..bd138318fe38 100644 --- a/samples/server/petstore/php-slim4/lib/Model/Pet.php +++ b/samples/server/petstore/php-slim4/lib/Model/Pet.php @@ -82,6 +82,7 @@ class Pet extends BaseModel "status" : { "type" : "string", "description" : "pet status in the store", + "deprecated" : true, "enum" : [ "available", "pending", "sold" ] } }, diff --git a/samples/server/petstore/python-fastapi/openapi.yaml b/samples/server/petstore/python-fastapi/openapi.yaml index 477694ade007..bd137dbc74fd 100644 --- a/samples/server/petstore/python-fastapi/openapi.yaml +++ b/samples/server/petstore/python-fastapi/openapi.yaml @@ -76,7 +76,8 @@ paths: description: Multiple status values can be provided with comma separated strings operationId: findPetsByStatus parameters: - - description: Status values that need to be considered for filter + - deprecated: true + description: Status values that need to be considered for filter explode: false in: query name: status @@ -773,6 +774,7 @@ components: name: tag wrapped: true status: + deprecated: true description: pet status in the store enum: - available