title: Golang OpenAPI generator wraps query parameters into an object while the Java counterpart does not
body: <p>So I'm using openAPI to generate API classes in Golang and Java. The way the generators of the respective languages interpret the yml file seems to be different.</p>
  <p>Here is a part of the yml file:</p>
  <pre><code>parameters:
          - name: collectionName
            schema:
              type: string
          - name: filter_by
            in: query
            schema:
              type: string
            required: true
          - name: batch_size
            in: query 
            required: true
            schema:
              type: integer 
  </code></pre>
  <p>And the generator for Golang generated the following structure:</p>
  <pre><code>type DeleteDocumentsParams struct {
  
      FilterBy string `json:&quot;filter_by&quot;`
  
      BatchSize int `json:&quot;batch_size&quot;`
  }
  </code></pre>
  <p>while for Java, no such class was created. However if I wrap the <code>filter_by</code> and <code>batch_size</code> parameters within an object like this</p>
  <pre><code>  parameters:
      - name: collectionName
        in: path
        description: The name of the collection to delete documents from
        required: true
        schema:
          type: string
      - name: deleteQueryParams
        in: query
        schema:
          type: object
          properties:      
            filter_by:
              type: string
            batch_size:
              type: integer 
  </code></pre>
  <p>A DeleteQueryParams class gets created in Java. But in Golang the parameters are added to a nested structure like this</p>
  <pre><code>type DeleteDocumentsParams struct {
      DeleteQueryParams *struct {
          BatchSize *int    `json:&quot;batch_size,omitempty&quot;`
          FilterBy  *string `json:&quot;filter_by,omitempty&quot;`
      } `json:&quot;deleteQueryParams,omitempty&quot;`
  }
  </code></pre>
  <p>Long story short, the Golang generator adds a layer of wrapping for the query parameters I specify while the Java generator does not. Is it possible to achieve an uniformity in this case. Or, is there any flags that I can use to enable or disable the object wrapping of parameters?</p>