Skip to content

[BUG] [typescript-axios] [modelPropertyNaming] original config does not save name with dot delimiter #9524

Description

@iliaschet

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • Have you tested with the latest master to confirm the issue still exists?
  • Have you searched for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Sponsorship to speed up the bug fix or feature request (example)
Description

If there are model names with a dot separator in the yaml file ('cleanup.policy')

  type: object
  properties:
    'cleanup.policy':
      type: string
      enum:
        - compact
        - delete
      description: 
      default: delete

then the generator will convert them to snake_case if the "original" parameter is set

  export interface Config {
  /**
  *
  * @type {string}
  * @memberof Config
  */
 cleanup_policy?:
openapi-generator version

5.1.1

OpenAPI declaration file content or url

yaml

Generation Details

openapi-generator-cli generate -i openapi.yaml -g typescript-axios --additional-properties=withSeparateModelsAndApi=true,modelPropertyNaming=original,modelPackage=models,apiPackage=api,supportsES6=true -o ./src/api/v1

Steps to reproduce

see Description

Related issues/PRs
Suggest a fix

Keep original names even if dot is used there

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    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