Skip to content

[BUG][Spring] Too many quotes in generated spring annotation (4.0.0-beta) #1805

@ftes

Description

@ftes
Description

Same issue as described for v3 in #1697, which was fixed for v3 in #708.

openapi-generator version

4.0.0-beta

OpenAPI declaration file content or url

Spec:

paths:
  /pet:
    get:
      operationId: addPet
      parameters:
      - in: header
        name: with-default
        type: string
default: string

Generated source:

default ResponseEntity<Void> addPet(@ApiParam(value = "" , defaultValue=""string"")
Command line used for generation

maven clean install

Steps to reproduce

Add header parameter of type string with default value and build the spring server sources.

Related issues/PRs

#1697
#708

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions