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

org.openapi4j.schema.validator.JsonValidator Maven / Gradle / Ivy

There is a newer version: 2.0.0-RC3
Show newest version
package org.openapi4j.schema.validator;

import com.fasterxml.jackson.databind.JsonNode;
import org.openapi4j.core.validation.ValidationException;

import java.net.URI;

/**
 * Representation of a validator.
 */
public interface JsonValidator {
  /**
   * Validate the given value from the validation setup.
   *
   * @param valueNode The given value to check.
   * @param validation   The result stack to append any additional info from the validation.
   * @return {@code true} if chain should continue for the current keyword, {@code false} otherwise.
   */
  boolean validate(final JsonNode valueNode, URI documentSource, final ValidationData validation);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy