Skip to content

Commit b865fce

Browse files
author
Kyle
committed
comments
1 parent 23c2f30 commit b865fce

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

docs/codegen-options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ See [DirectiveAnnotationsMapping](#option-directiveannotationsmapping)* |
5757
| `generatedLanguage` | Enum | GeneratedLanguage.JAVA | Choose which language you want to generate, Java,Scala,Kotlin were supported. Note that due to language features, there are slight differences in default values between languages.|
5858
| `generateModelOpenClasses` | Boolean | false | The class type of the generated model. If true, generate normal classes, else generate data classes. It only support in kotlin(```data class```) and scala(```case class```). Maybe we will consider to support Java ```record``` in the future.|
5959
| `initializeNullableTypes` | Boolean | false | Adds a default null value to nullable arguments. Only supported in Kotlin.
60-
| `generateSealedInterfaces` | Boolean | false | This applies to generated interfaces on unions and interfaces. If true, generate sealed interfaces, else generate normal ones. It is only supported in Kotlin. |
60+
| `generateSealedInterfaces` | Boolean | false | This applies to generated interfaces on unions and interfaces. If true, generate sealed interfaces, else generate normal ones. It is only supported in Java and Kotlin. |
6161
| `typesAsInterfaces` | Set(String) | Empty | Types that must generated as interfaces should be defined here in format: `TypeName` or `@directive`. E.g.: `User`, `@asInterface`. |
6262

6363
### Option `graphqlSchemas`

src/main/java/com/kobylynskyi/graphql/codegen/model/MappingConfigConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public class MappingConfigConstants {
7171
//Only supported in kotlin.
7272
public static final boolean DEFAULT_INITIALIZE_NULLABLE_TYPES = false;
7373
public static final String DEFAULT_INITIALIZE_NULLABLE_TYPES_STRING = "false";
74-
// Only supported in Kotlin
74+
// Only supported in Java and Kotlin
7575
public static final boolean DEFAULT_GENERATE_SEALED_INTERFACES = false;
7676
public static final String DEFAULT_GENERATE_SEALED_INTERFACES_STRING = "false";
7777

0 commit comments

Comments
 (0)