Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #1805
Closed
Open
Issue created Jan 03, 2019 by Administrator@rootContributor

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

Created by: 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

Assignee
Assign to
Time tracking