You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The json strings generated to populate the example list is done in an exhaustive manner, regardless of usage. If there are recursion or deep hierarchies of models the resulting JSON strings can get massive, leading to excessive memory usage.
Override DefaultCodegen#getExamples in all generatores that don't use examples at all.
Or make the example json generation be on demand instead of being generated upfront regardless of their usage.
The text was updated successfully, but these errors were encountered:
Description
The json strings generated to populate the
example
list is done in an exhaustive manner, regardless of usage. If there are recursion or deep hierarchies of models the resulting JSON strings can get massive, leading to excessive memory usage.With examples generated:
no examples generated:
Swagger-codegen version
Master branch at revision 955ec39
Swagger declaration url
https://tripletex.no/v2/swagger.json
Command line used for generation
config.json
beingSteps to reproduce
Generate the client and observe the memory usage.
Related issues/PRs
Possibly OutOfMemoryError #6394Suggest a fix/enhancement
Override
DefaultCodegen#getExamples
in all generatores that don't use examples at all.Or make the example json generation be on demand instead of being generated upfront regardless of their usage.
The text was updated successfully, but these errors were encountered: