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

feat(#389): allow templating for generated Java / Kotlin class names #535

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 17, 2024

  1. feat(Netflix#389): allow templating for generated Java / Kotlin class…

    … names
    
    Adds an optional `nameTemplate` input parameter to the plugin, allowing
    customization of the generated Java / Kotlin class names.
    
    The following template variables are supported:
    - name - the original name of the class
    - schemaType - the GraphQL schema type (Type, Input, Interface, Enum)
    
    The default value for this new property is null. In this case the output
    will be identical to the current one.
    
    Examples:
    
    Given an original class name `Person` and schema type `Type`:
     - null -> Person
     - "{name}GraphQL{schemaType}" -> PersonGraphQLType
     - "{name}GraphQL" -> PersonGraphQL
     - "{name}{schemaType}" -> PersonType
    BlasiusSecundus committed Nov 17, 2024
    Configuration menu
    Copy the full SHA
    0deb5a4 View commit details
    Browse the repository at this point in the history