Skip to content

[Typescript-Angular] modelFileSuffix change dots '.' to slashes '/' #1467

@VincentSurelle

Description

@VincentSurelle
Description

I'm trying to generate typescript-angular api client with pet store sample.
I installed openapi-generator with Homebrew and got version 3.3.3.

When I try to generate with modelFileSuffix='.model' with kebab-case my dot is changed to a slash.
When I try to generate the same but with camelCase, it simply does not appear.

Here is a sample output :

capture d ecran 2018-11-16 a 12 22 25

openapi-generator version

3.3.3

OpenAPI declaration file content or url

https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml

Command line used for generation

openapi-generator generate -i https://raw.githubusercontent.com/openapitools/openapi-generator/master/modules/openapi-generator/src/test/resources/3_0/petstore.yaml -g typescript-angular --additional-properties supportsES6=true,ngVersion='5.2.11',modelSuffix='Model',modelFileSuffix='k.djfgdlmodel' -o ./ts-client-generated-angular

Steps to reproduce

Launch the command above 👼

Related issues/PRs

#418

Suggest a fix/enhancement

73162cb (Maybe sanitize is responsible for it ?)

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