title: Swagger produces too long constant for default response body
body: <p>Basically, it's required to generate valid <em>Java8</em> models and controller class with <em>swagger-codegen-maven-plugin</em>.</p>
  
  <p>I have swagger 2.0 spec, containing model definitions with array fields, where each array item in turn contains it's own array of models.</p>
  
  <p>Swagger successfully generates java models and annotated interface,
  this interface contains default response body, representing autogenerated json response example for root model and all it's submodels.
  Actually, this is a problem:</p>
  
  <p>For each array field swagger always produces 2 items, 2 more subitems for each items's array field and so on, which results in very long string constant in java.
  Swagger generates this string without any problem but java compier simply just can't handle it and falls with compilation error: <em>constant string too long</em>.</p>
  
  <p>I've tried to find a way to reduce elements count in model array or disable example body generation at all. Looks like there's no obviouse config to control this.</p>
  
  <p>Is there any way to disable default body generation or any other stuff to control generated string length?</p>
  
  <p>Autogenerated code cannot be commited, so there's no way to manually fix generated code and use it afterwards. It's required to get compilable java code after swagger-codegen plugin finishes.</p>
  
  <p>There's codegen maven config, used for generating sources (tested for 2.3.1 and 2.4.0 versions):</p>
  
  <pre><code> &lt;plugin&gt;
                  &lt;groupId&gt;io.swagger&lt;/groupId&gt;
                  &lt;artifactId&gt;swagger-codegen-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;2.3.1&lt;/version&gt;
                  &lt;configuration&gt;
                      &lt;configOptions&gt;
                          &lt;sourceFolder&gt;java&lt;/sourceFolder&gt;
                          &lt;dateLibrary&gt;java8&lt;/dateLibrary&gt;
                      &lt;/configOptions&gt;
                      &lt;generateSupportingFiles&gt;false&lt;/generateSupportingFiles&gt;
                      &lt;addCompileSourceRoot&gt;false&lt;/addCompileSourceRoot&gt;
                      &lt;generateApiDocumentation&gt;false&lt;/generateApiDocumentation&gt;
                      &lt;generateApiTests&gt;false&lt;/generateApiTests&gt;
                      &lt;generateModelDocumentation&gt;false&lt;/generateModelDocumentation&gt;
                      &lt;generateModelTests&gt;false&lt;/generateModelTests&gt;
                      &lt;ignoreFileOverride&gt;${project.basedir}&lt;/ignoreFileOverride&gt;
                  &lt;/configuration&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;generate&lt;/goal&gt;
                          &lt;/goals&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
  </code></pre>