Package graphql.validation
Class ValidationUtil
java.lang.Object
graphql.validation.ValidationUtil
- Direct Known Subclasses:
ArgumentValidationUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetUnmodifiedType(Type<?> type) protected voidhandleEnumError(Value<?> value, GraphQLEnumType type, GraphQLError invalid) protected voidhandleExtraFieldError(Value<?> value, GraphQLInputObjectType type, ObjectField objectField) protected voidhandleExtraOneOfFieldsError(GraphQLInputObjectType type, Value<?> value) protected voidhandleFieldNotValidError(ObjectField objectField, GraphQLInputObjectType type) protected voidhandleFieldNotValidError(Value<?> value, GraphQLType type, int index) protected voidhandleMissingFieldsError(Value<?> value, GraphQLInputObjectType type, Set<String> missingFields) protected voidhandleNotObjectError(Value<?> value, GraphQLInputObjectType type) protected voidhandleNullError(Value<?> value, GraphQLType type) protected voidhandleScalarError(Value<?> value, GraphQLScalarType type, GraphQLError invalid) booleanisValidLiteralValue(Value<?> value, GraphQLType type, GraphQLSchema schema, GraphQLContext graphQLContext, Locale locale)
-
Constructor Details
-
ValidationUtil
public ValidationUtil()
-
-
Method Details
-
getUnmodifiedType
-
handleNullError
-
handleScalarError
-
handleEnumError
-
handleNotObjectError
-
handleMissingFieldsError
protected void handleMissingFieldsError(Value<?> value, GraphQLInputObjectType type, Set<String> missingFields) -
handleExtraFieldError
protected void handleExtraFieldError(Value<?> value, GraphQLInputObjectType type, ObjectField objectField) -
handleFieldNotValidError
-
handleFieldNotValidError
-
handleExtraOneOfFieldsError
-
isValidLiteralValue
public boolean isValidLiteralValue(Value<?> value, GraphQLType type, GraphQLSchema schema, GraphQLContext graphQLContext, Locale locale)
-