org.openapi4j.schema.validator.JsonValidator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openapi-schema-validator Show documentation
Show all versions of openapi-schema-validator Show documentation
openapi4j schema data validator
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);
}