OpenAPITools / openapi-generator

OpenAPI Generator allows generation of API client libraries (SDK generation), server stubs, documentation and configuration automatically given an OpenAPI Spec (v2, v3)
https://openapi-generator.tech
Apache License 2.0
21.75k stars 6.56k forks source link

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

Open chameleon82 opened 4 years ago

chameleon82 commented 4 years ago

Bug Report Checklist

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