Class Validator


  • public class Validator
    extends Object
    Author:
    https://github.com/lbovet [Laurent Bovet]
    • Method Detail

      • validateWithSchemaLocation

        public io.vertx.core.Future<ValidationResult> validateWithSchemaLocation​(SchemaLocation schemaLocation,
                                                                                 io.vertx.core.buffer.Buffer jsonBuffer,
                                                                                 org.slf4j.Logger log)
      • validate

        public void validate​(io.vertx.core.http.HttpServerRequest req,
                             String type,
                             io.vertx.core.buffer.Buffer jsonBuffer,
                             SchemaLocation schemaLocation,
                             io.vertx.core.Handler<ValidationResult> callback)
      • validate

        public void validate​(io.vertx.core.http.HttpServerRequest req,
                             String type,
                             io.vertx.core.buffer.Buffer jsonBuffer,
                             io.vertx.core.Handler<ValidationResult> callback)
      • validateStatic

        public static ValidationResult validateStatic​(io.vertx.core.buffer.Buffer dataToBeValidated,
                                                      String schemaAsString,
                                                      org.slf4j.Logger log)