Skip to content

[BUG] Scala templates use different case styles and formatters for variables #5496

@chameleon82

Description

@chameleon82

Bug Report Checklist

  • Have you provided a full/minimal spec to reproduce the issue?
  • Have you validated the input using an OpenAPI validator (example)?
  • What's the version of OpenAPI Generator used?
  • Have you search for related issues/PRs?
  • What's the actual output vs expected output?
  • [Optional] Bounty to sponsor the fix (example)
Description

UPPERCASE value was handled by most of scala templates with do not modify option, but behaviour was different for akka template where output was uPPERCASE

This behaviour become generic and UPPERCASE variables skipped for formatting rules

https://github.com/OpenAPITools/openapi-generator/blob/master/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/AbstractScalaCodegen.java#L172

But regarding to https://docs.scala-lang.org/style/naming-conventions.html only camelCase allowed.

Correct way is to convert UPPERCASE into lowercase and keep naming convention in AbstractScala common to all Scala based templates

openapi-generator version

4.3.0-SNAPSHOT

Related issues/PRs

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