Skip to content

Data Connect: Kotlin codegen: Lowercase letters used in class names when following a number #9567

@dconeybe

Description

@dconeybe

In firebase-tools v14.26.0 the Kotlin codegen for Data Connect generates unexpected class names for graphql operation names where a letter follows a number.

For example, with this operation:

mutation Insert2Items(...) { ... }

a Kotlin class named Insert2itemsMutation would be generated. The "I" in "Items" is unexpectedly lowercase. I expected it to generate a class named Insert2ItemsMutation.

Note that this is due to the strcase dependency version 1.3.0 being used. Upgrading the dependency to 1.3.1 will pick up the fix for this: https://github.com/stoewer/go-strcase/releases/tag/v1.3.1

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions