Skip to content

[BUG][KOTLIN] Kotlin client unescaped string template #4228

Closed
@andrewemery

Description

@andrewemery
Description

Property names that include a dollar sign are being interpreted by Kotlin as a string template.

openapi-generator version

4.1.3

OpenAPI declaration file content or url
definitions:
  '$special[model.name]':
    properties:
      '$special[property.name]':
        type: integer
        format: int64

Expected:

@SerialName(value = "\$special[property.name]") 

Actual:

@SerialName(value = "$special[property.name]") 
Command line used for generation

openapi-generator generate -g kotlin

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