Skip to content

Error when using $ref for components/parameters  #58

@cvgaviao

Description

@cvgaviao

I was generating maven java OpenAPI Server project properly while evolving my openapi model.
But when I moved some parameters to components/parameters and referenced them inside paths I started to get errors on the generation.
See the example below. It contains 2 parameters.

  /mycollection:
    get:
      operationId: listCollection
      parameters:
        - $ref: '#/components/parameters/some-ID'
        - name: orderBy
          required: false
          in: query
          schema:
            type: array
            items:
              type: string

When I let only orderBy parameter the generation is ok. But if I use the reference I got the error:
Exception during code generatione is undefined TypeError: e is undefined

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions