Package no.sikt.graphitron.configuration
Class RecordValidation
java.lang.Object
no.sikt.graphitron.configuration.RecordValidation
Configure generation of JOOQ record validation for generated mutations according to the Jakarta Bean Validation
specification. This class allows for toggling validation and specifying the associated GraphQL schema error type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the schema error type.booleanChecks if the record validation is currently enabled.
-
Constructor Details
-
RecordValidation
public RecordValidation() -
RecordValidation
-
-
Method Details
-
isEnabled
public boolean isEnabled()Checks if the record validation is currently enabled.- Returns:
- A boolean indicating whether record validation is enabled.
-
getSchemaErrorType
Retrieves the schema error type.- Returns:
- An Optional containing the schema error type if present and validation is enabled, otherwise returns an empty Optional.
-