All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.expediagroup.graphql.plugin.gradle.config.GraphQLParserOptions.kt Maven / Gradle / Ivy

Go to download

Gradle Kotlin Gradle Plugin that can generate type-safe GraphQL Kotlin client and GraphQL schema in SDL format using reflections

There is a newer version: 8.2.1
Show newest version
package com.expediagroup.graphql.plugin.gradle.config

import java.io.Serializable

/**
 * Configure options for parsing GraphQL queries and schema definition language documents. Settings
 * here override the defaults set by GraphQL Java.
 */
data class GraphQLParserOptions(
    /** Modify the maximum number of tokens read to prevent processing extremely large queries */
    var maxTokens: Int? = null,
    /** Modify the maximum number of whitespace tokens read to prevent processing extremely large queries */
    var maxWhitespaceTokens: Int? = null,
    /** Modify the maximum number of characters in a document to prevent malicious documents consuming CPU */
    var maxCharacters: Int? = null,
    /** Modify the maximum grammar rule depth to negate malicious documents that can cause stack overflows */
    var maxRuleDepth: Int? = null,
    /** Memory usage is significantly reduced by not capturing ignored characters, especially in SDL parsing. */
    var captureIgnoredChars: Boolean? = null,
    /** Single-line comments do not have any semantic meaning in GraphQL source documents and can be ignored */
    var captureLineComments: Boolean? = null,
    /** Memory usage is reduced by not setting SourceLocations on AST nodes, especially in SDL parsing. */
    var captureSourceLocation: Boolean? = null
) : Serializable




© 2015 - 2024 Weber Informatics LLC | Privacy Policy