Skip to content

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

Closed

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

Activity

  1. self-assigned this
    on Dec 3, 2025
  2. dconeybe commented on Dec 3, 2025

    @dconeybe
    ContributorAuthor

    Fixed by cl/839845720. Note that this is a BREAKING CHANGE

  3. added
    api: dataconnect
    on Dec 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

api: dataconnecttype: bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions