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:
julien Lengrand-Lambert 2022-12-27 09:39:42 +01:00 committed by GitHub
parent c27180849f
commit a99c58011a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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}}