From 7da16ff7f14ed5b2db34b1c68da430bea9d503d3 Mon Sep 17 00:00:00 2001 From: evanchooly Date: Mon, 16 Oct 2023 18:39:51 +0100 Subject: [PATCH] remove jsonschema --- .../java/dev/morphia/query/filters/Filters.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/core/src/main/java/dev/morphia/query/filters/Filters.java b/core/src/main/java/dev/morphia/query/filters/Filters.java index 5f37e1d7319..c1292d92932 100644 --- a/core/src/main/java/dev/morphia/query/filters/Filters.java +++ b/core/src/main/java/dev/morphia/query/filters/Filters.java @@ -14,7 +14,6 @@ import org.bson.Document; import static java.util.Arrays.asList; -import static org.bson.Document.parse; /** * Defines helper methods to generate filter operations for queries. @@ -310,20 +309,6 @@ public static Filter in(String field, Iterable val) { return new Filter("$in", field, val); } - /** - * Filters documents against the given JSON Schema. - * - * @param field the field to check - * @param val the value to check - * @return the filter - * @query.filter $jsonSchema - * @deprecated use {@link #jsonSchema(Document)} instead - */ - @Deprecated(forRemoval = true) - public static Filter jsonSchema(String field, Object val) { - return jsonSchema(parse(val.toString())); - } - /** * Filters documents against the given JSON Schema. *