Skip to content

Commit c2f7376

Browse files
Merge pull request #516 from Netflix/fix-constructor
Increase the whitespace token limit for parsing the schema.
2 parents f2c2522 + 0f896c5 commit c2f7376

File tree

1 file changed

+1
-1
lines changed
  • graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen

1 file changed

+1
-1
lines changed

graphql-dgs-codegen-core/src/main/kotlin/com/netflix/graphql/dgs/codegen/CodeGen.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class CodeGen(private val config: CodeGenConfig) {
105105
*/
106106
private fun buildDocument(): Document {
107107
val options = ParserOptions.getDefaultParserOptions().transform { builder ->
108-
builder.maxTokens(SDL_MAX_ALLOWED_SCHEMA_TOKENS)
108+
builder.maxTokens(SDL_MAX_ALLOWED_SCHEMA_TOKENS).maxWhitespaceTokens(SDL_MAX_ALLOWED_SCHEMA_TOKENS)
109109
}
110110
val parser = Parser()
111111

0 commit comments

Comments
 (0)