forked from loafle/openapi-generator-original
Add JsonIgnore annotation to avoid debugSupportingFiles creating heap space issues (#14298)
* Updates Codegen operation to ignore debugSupportingFiles * Removes JsonIgnore annotation and rename method instead * Remove unused import
This commit is contained in:
parent
c27180849f
commit
a99c58011a
@ -207,7 +207,7 @@ public class CodegenOperation {
|
|||||||
* returns a map where the key is the request body content type and the value is the current CodegenOperation
|
* returns a map where the key is the request body content type and the value is the current CodegenOperation
|
||||||
* this is needed by templates when a different signature is needed for each request body content type
|
* this is needed by templates when a different signature is needed for each request body content type
|
||||||
*/
|
*/
|
||||||
public Map<String, CodegenOperation> getContentTypeToOperation() {
|
public Map<String, CodegenOperation> contentTypeToOperation() {
|
||||||
LinkedHashMap<String, CodegenOperation> contentTypeToOperation = new LinkedHashMap<>();
|
LinkedHashMap<String, CodegenOperation> contentTypeToOperation = new LinkedHashMap<>();
|
||||||
if (bodyParam == null) {
|
if (bodyParam == null) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -234,7 +234,7 @@ _all_accept_content_types = (
|
|||||||
|
|
||||||
class BaseApi(api_client.Api):
|
class BaseApi(api_client.Api):
|
||||||
{{#if bodyParam}}
|
{{#if bodyParam}}
|
||||||
{{#each getContentTypeToOperation}}
|
{{#each contentTypeToOperation}}
|
||||||
{{> endpoint_args_baseapi_wrapper contentType=@key this=this}}
|
{{> endpoint_args_baseapi_wrapper contentType=@key this=this}}
|
||||||
|
|
||||||
{{/each}}
|
{{/each}}
|
||||||
@ -406,7 +406,7 @@ class {{operationIdCamelCase}}(BaseApi):
|
|||||||
# this class is used by api classes that refer to endpoints with operationId fn names
|
# this class is used by api classes that refer to endpoints with operationId fn names
|
||||||
|
|
||||||
{{#if bodyParam}}
|
{{#if bodyParam}}
|
||||||
{{#each getContentTypeToOperation}}
|
{{#each contentTypeToOperation}}
|
||||||
{{> endpoint_args_operationid_wrapper contentType=@key this=this}}
|
{{> endpoint_args_operationid_wrapper contentType=@key this=this}}
|
||||||
|
|
||||||
{{/each}}
|
{{/each}}
|
||||||
@ -437,7 +437,7 @@ class ApiFor{{httpMethod}}(BaseApi):
|
|||||||
# this class is used by api classes that refer to endpoints by path and http method names
|
# this class is used by api classes that refer to endpoints by path and http method names
|
||||||
|
|
||||||
{{#if bodyParam}}
|
{{#if bodyParam}}
|
||||||
{{#each getContentTypeToOperation}}
|
{{#each contentTypeToOperation}}
|
||||||
{{> endpoint_args_httpmethod_wrapper contentType=@key this=this}}
|
{{> endpoint_args_httpmethod_wrapper contentType=@key this=this}}
|
||||||
|
|
||||||
{{/each}}
|
{{/each}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user