Skip to content

Commit

Permalink
remove jsonschema
Browse files Browse the repository at this point in the history
  • Loading branch information
evanchooly committed Oct 22, 2023
1 parent 3af0220 commit 7da16ff
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions core/src/main/java/dev/morphia/query/filters/Filters.java
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
*
Expand Down

0 comments on commit 7da16ff

Please sign in to comment.