-
-
Notifications
You must be signed in to change notification settings - Fork 114
Closed
Labels
bugSomething isn't workingSomething isn't workinggood-first-issueGood for newcomersGood for newcomers
Description
Issue Description
Type mapping mapping for enum not generated correctly when default enum value is specified
Steps to Reproduce
Schema:
...
input CustomSort {
...
direction: OrderDirection = ASC
}
enum OrderDirection {
ASC
DESC
}
...Configuration
...
<configuration>
...
<customTypesMapping>
<OrderDirection>foo.bar.OrderDirection</OrderDirection>
</customTypesMapping>
...
</configuration>
...Expected Result
...
public class CustomSort implements java.io.Serializable {
...
private foo.bar.OrderDirection direction = foo.bar.OrderDirection.ASC;
...
}
...Actual Result
...
public class CustomSort implements java.io.Serializable {
...
private foo.bar.OrderDirection direction = OrderDirection.ASC;
...
}
...Your Environment and Setup
- graphql-java-codegen version: 5.9.0
- Build tool: Maven
- Mapping Config: Mentioned above
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood-first-issueGood for newcomersGood for newcomers