diff --git a/docs/docs/recommended-usage.md b/docs/docs/recommended-usage.md index 12f7db1..3699f40 100644 --- a/docs/docs/recommended-usage.md +++ b/docs/docs/recommended-usage.md @@ -98,6 +98,7 @@ open class MyType { Source code: ```kotlin +import com.types.generated.Query as QueryInterface import com.types.generated.MyType as MyTypeInterface class MyQuery : Query, QueryInterface() { diff --git a/src/config/schema.ts b/src/config/schema.ts index b2dc105..af8764b 100644 --- a/src/config/schema.ts +++ b/src/config/schema.ts @@ -24,6 +24,14 @@ import { import { Kind } from "graphql"; export const configSchema = object({ + /** + * Denotes whether to consolidate classes for input and output types whose fields are equivalent. + * + * @default true + * + * @link https://opensource.expediagroup.com/graphql-kotlin-codegen/docs/class-consolidation + */ + classConsolidationEnabled: optional(boolean()), /** * Limits dependent types to include from `onlyTypes` list. Can be used to exclude classes that are imported from external packages. * @@ -64,14 +72,6 @@ export const configSchema = object({ }), ), ), - /** - * Denotes whether to consolidate classes for input and output types whose fields are equivalent. - * - * @default true - * - * @link https://opensource.expediagroup.com/graphql-kotlin-codegen/docs/class-consolidation - */ - classConsolidationEnabled: optional(boolean()), /** * Denotes Kotlin classes representing union types to be treated as interfaces rather than annotation classes. *