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

@param schema The reader 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 .