title: Openapi generator cannot generate query param with enum
body: <p>I'm trying to generate a service that has enum as query parameter, but it keeps generating it wrong.
  Here's the part of yaml:</p>
  <pre><code>      name: language
        in: query
        description: language
        schema:
          type: string
          enum:
          - en
          - de
  </code></pre>
  <p>and I'm using it in parameters:</p>
  <pre><code>        - $ref: '#/components/parameters/language'
  </code></pre>
  <p>The error that I get is:</p>
  <pre><code>[ERROR] .../api/TestApi.java:[110,65] illegal start of type
  [ERROR] .../api/TestApi.java:[110,66] ')' expected
  [ERROR] .../api/TestApi.java:[110,82] ';' expected
  </code></pre>
  <p>Here's what the code looks like:</p>
  <pre><code>public Response getByLanguage( @PathParam(&quot;id&quot;) Long id, , allowableValues=&quot;en, de&quot; @QueryParam(&quot;language&quot;) String language
  </code></pre>
  <p>And here's my plugin:</p>
  <pre><code>                &lt;plugin&gt;
                      &lt;groupId&gt;org.openapitools&lt;/groupId&gt;
                      &lt;artifactId&gt;openapi-generator-maven-plugin&lt;/artifactId&gt;
                      &lt;version&gt;5.0.1&lt;/version&gt;
                      &lt;configuration&gt;
                          &lt;inputSpec&gt;${basedir}/src/main/resources/openapi.yaml&lt;/inputSpec&gt;
                          &lt;output&gt;${project.build.directory}/generated-sources/java&lt;/output&gt;
                          &lt;generatorName&gt;jaxrs-resteasy-eap&lt;/generatorName&gt;
                          &lt;modelPackage&gt;com.openapi.example.model&lt;/modelPackage&gt;
                          &lt;apiPackage&gt;com.openapi.example.api&lt;/apiPackage&gt;
                          &lt;generateSupportingFiles&gt;false&lt;/generateSupportingFiles&gt;
                          &lt;configOptions&gt;
                              &lt;sourceFolder&gt;openapi&lt;/sourceFolder&gt;
                              &lt;dateLibrary&gt;java8&lt;/dateLibrary&gt;
                              &lt;interfaceOnly&gt;true&lt;/interfaceOnly&gt;
                              &lt;java8&gt;true&lt;/java8&gt;
                              &lt;serializableModel&gt;true&lt;/serializableModel&gt;
                              &lt;useTags&gt;true&lt;/useTags&gt;
                              &lt;performBeanValidation&gt;true&lt;/performBeanValidation&gt;
                              &lt;useBeanValidation&gt;true&lt;/useBeanValidation&gt;
                          &lt;/configOptions&gt;
                      &lt;/configuration&gt;
                      &lt;executions&gt;
                          &lt;execution&gt;
                              &lt;phase&gt;generate-resources&lt;/phase&gt;
                              &lt;id&gt;generate&lt;/id&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>
  <p>The only way I've managed to get it to work is to make it as an array of enum values, but that's not what I need here.</p>
  <p>EDIT:
  dependencies I have defined in the project:</p>
  <pre><code>        &lt;dependency&gt;
              &lt;groupId&gt;org.apache.maven.shared&lt;/groupId&gt;
              &lt;artifactId&gt;maven-dependency-analyzer&lt;/artifactId&gt;
              &lt;version&gt;1.11.1&lt;/version&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;io.swagger&lt;/groupId&gt;
              &lt;artifactId&gt;swagger-jaxrs&lt;/artifactId&gt;
              &lt;version&gt;1.5.8&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;io.swagger.core.v3&lt;/groupId&gt;
              &lt;artifactId&gt;swagger-annotations&lt;/artifactId&gt;
              &lt;version&gt;2.1.5&lt;/version&gt;
              &lt;scope&gt;compile&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;com.fasterxml.jackson.datatype&lt;/groupId&gt;
              &lt;artifactId&gt;jackson-datatype-jsr310&lt;/artifactId&gt;
              &lt;version&gt;2.11.3&lt;/version&gt;
          &lt;/dependency&gt;
  </code></pre>