Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kotlin code generation fails when type name start with non-capital letter #774

Open
kkuribko opened this issue Jan 7, 2025 · 0 comments

Comments

@kkuribko
Copy link

kkuribko commented Jan 7, 2025

If for some reason the graphQL type name provided by the server side starts with a non-capital letter (lower-case letter or a special symbol like underscore), the DGS plugin fails to generate code in Kotlin language, though it works fine with Java.

The error as follows:

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':my:task:generateJava'.
    couldn't make a guess for com.my.package.typeStartingWithNonCapitalLetter

Expected behavior: Kotlin code is generated successfully in case of types that start with non-capital letter.

@kkuribko kkuribko changed the title Kotlin code generation fails when type names start with non-capital letter Kotlin code generation fails when type name start with non-capital letter Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant