Skip to content

[BUG] NestJs Typescript generator path param error with hyphen #16668

@thomastrapanese

Description

@thomastrapanese
Description

Hi, i'm using the nestjs openapi generator. When i try to generate code if there is a path param with hyphen ("test/{path-param}") i got the wrong code generated.
The method function param will be generated as pathParam, but in the http call it will be referenced as path_param

openapi-generator version

I tried with the latest code in master branch

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions