Skip to content

Documentation not consistent with code #1581

Description

@honza-zidek

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions