modules/json-schema-validator/src/main/java/io/restassured/module/jsv/JsonSchemaValidator.java
public static JsonSchemaValidator matchesJsonSchema(File file) {
        return new JsonSchemaValidatorFactory<File>() {
            @Override
            JsonNode createSchemaInstance(File input) throws IOException {
                return JsonLoader.fromFile(input);
            }
        }.create(file);
    }
public static JsonSchemaValidator matchesJsonSchema(File file) {
        return new JsonSchemaValidatorFactory<File>() {
            @Override
            JsonNode createSchemaInstance(File input) throws IOException {
                return JsonLoader.fromFile(input);
            }
        }.create(file);
    }
public static JsonSchemaValidator matchesJsonSchema ( File file ) { return new JsonSchemaValidatorFactory < File > ( ) { @ Override JsonNode createSchemaInstance ( File input ) throws IOException { return JsonLoader . fromFile ( input ) ; } } . create ( file ) ; }
Creates a Hamcrest matcher that validates that a JSON document conforms to the JSON schema provided to this method.

@param file The file that points to a JSON schema
@return A Hamcrest matcher
Creates a Hamcrest matcher that validates that a JSON document conforms to the JSON schema provided to this method .