Skip to content

Leading space in [spring cloud] clientConfiguration variables #7067

@yelhouti

Description

@yelhouti
Description

when generating the client configuration a leading space character makes the variable unusable

Swagger-codegen version

still present in Master (always been there as far as I can see)

Swagger declaration file content or url

Not relevant (any with basic auth)

  "securityDefinitions": {
    "basic-demo": {
      "type": "basic"
    }
  }
Command line used for generation

java -jar ... -l spring --library spring-cloud

Steps to reproduce
Related issues/PRs

I have a PR ready just validate the issue and I will submit the pull reuest

Suggest a fix/enhancement

there is a space between { and {{{title}}} in the template : @Value("${ {{{title}}}.security.{{{name}}}.username:}")
and should be replaced by this
{{=<% %>=}}@Value("${<%title%>.security.<%name%>.username:}")<%={{ }}=%>
this problem appears 3 times in this file

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions