Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 0f896c5

Browse files
committedJan 23, 2023
Increase the whitespace token limit for parsing the schema.
1 parent fca796b commit 0f896c5

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)
Please sign in to comment.