public ApiPreprocessingContext validateWith ( IValidator ... apiValidators ) { for ( IValidator apiValidator : apiValidators ) { if ( apiValidator == null ) { throw new IllegalArgumentException ( "Validator cannot be null" ) ; } this . validators . add ( apiValidator ) ; } return this ; }
Adds the specified validators to be run on the preprocessed object after bean validations .