Skip to content

Documentation not consistent with code #1581

Open
@honza-zidek

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.

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