You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: allow maven and gradle plugins to have new parser options values configurable (#1930)
### 📝 Description
Previous val declaration for the additional parser options cannot be
reassigned - they should be a var and not val.
### 🔗 Related Issues
#1925#1586
Copy file name to clipboardExpand all lines: plugins/graphql-kotlin-gradle-plugin/src/main/kotlin/com/expediagroup/graphql/plugin/gradle/config/GraphQLParserOptions.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -12,9 +12,9 @@ data class GraphQLParserOptions(
12
12
/** Modify the maximum number of whitespace tokens read to prevent processing extremely large queries */
13
13
varmaxWhitespaceTokens:Int? = null,
14
14
/** Modify the maximum number of characters in a document to prevent malicious documents consuming CPU */
15
-
valmaxCharacters:Int? = null,
15
+
varmaxCharacters:Int? = null,
16
16
/** Modify the maximum grammar rule depth to negate malicious documents that can cause stack overflows */
17
-
valmaxRuleDepth:Int? = null,
17
+
varmaxRuleDepth:Int? = null,
18
18
/** Memory usage is significantly reduced by not capturing ignored characters, especially in SDL parsing. */
19
19
varcaptureIgnoredChars:Boolean? = null,
20
20
/** Single-line comments do not have any semantic meaning in GraphQL source documents and can be ignored */
Copy file name to clipboardExpand all lines: plugins/graphql-kotlin-maven-plugin/src/main/kotlin/com/expediagroup/graphql/plugin/maven/GenerateClientAbstractMojo.kt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -232,11 +232,11 @@ class ParserOptions {
232
232
233
233
/** Modify the maximum number of characters in a document to prevent malicious documents consuming CPU */
234
234
@Parameter
235
-
val maxCharacters:Int?=null
235
+
var maxCharacters:Int?=null
236
236
237
237
/** Modify the maximum grammar rule depth to negate malicious documents that can cause stack overflows */
238
238
@Parameter
239
-
val maxRuleDepth:Int?=null
239
+
var maxRuleDepth:Int?=null
240
240
241
241
/** Memory usage is significantly reduced by not capturing ignored characters, especially in SDL parsing. */
0 commit comments