Skip to content

[Java-Spring] Cookie parameters are not generated #9820

Closed
@nataliaoliveira

Description

@nataliaoliveira
Description

Cookie parameters are not being generated for Java language.

Swagger-codegen version

3.0.13

Swagger declaration file content or url
openapi: 3.0.0
info:
  title: fun!
  version: 1.0.1
servers:
- url: "/v1"
paths:
  "/one":
    get:
      operationId: duplicate
      parameters:
        - in: cookie
          description: cookie
          name: jsession
          required: true
          schema:
            type: string
      responses:
        '200':
          description: success
Command line used for generation

Language: spring
Library: spring-boot
InterfaceOnly: true

Steps to reproduce

Use the yaml above to generate sources with the options above.

Related issues/PRs

I found no PRs related, but there was one issue already reported on another swagger repo.

Suggest a fix/enhancement

The fix is going on this repo and swagger-codegen-generators.

PRs:
swagger-codegen-generators swagger-api/swagger-codegen-generators#524
swagger-codegen #9825

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions