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

Documentation not consistent with code #1581

Open
honza-zidek opened this issue Feb 13, 2025 · 0 comments
Open

Documentation not consistent with code #1581

honza-zidek opened this issue Feb 13, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@honza-zidek
Copy link

The documentation https://github.com/kobylynskyi/graphql-java-codegen/blob/main/docs/codegen-options.md says:

Choose which language you want to generate, Java,Scala,Kotlin were supported.

However, the plugin is case-sensitive and the name of the languages must be in UPPERCASE, otherwise you get an error:

<configuration>
   <generatedLanguage>Kotlin</generatedLanguage>
</configuration>

Unable to parse configuration of mojo io.github.kobylynskyi:graphql-codegen-maven-plugin:5.10.0:generate:
Cannot convert 'Kotlin' to Enum:
No enum constant com.kobylynskyi.graphql.codegen.model.GeneratedLanguage.Kotlin

When I change the configuration to

<configuration>
   <generatedLanguage>KOTLIN</generatedLanguage>
</configuration>

it works.

@honza-zidek honza-zidek added the bug Something isn't working label Feb 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant