diff --git a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/schema/TypedJsonSchemaObject.java b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/schema/TypedJsonSchemaObject.java index 616519e91..d500661f9 100644 --- a/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/schema/TypedJsonSchemaObject.java +++ b/spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/schema/TypedJsonSchemaObject.java @@ -547,7 +547,7 @@ public class TypedJsonSchemaObject extends UntypedJsonSchemaObject { * @param value must not be {@literal null}. * @return must not be {@literal null}. */ - NumericJsonSchemaObject multipleOf(Number value) { + public NumericJsonSchemaObject multipleOf(Number value) { Assert.notNull(value, "Value must not be null!"); NumericJsonSchemaObject newInstance = newInstance(description, generateDescription, restrictions); @@ -625,7 +625,7 @@ public class TypedJsonSchemaObject extends UntypedJsonSchemaObject { * @return new instance of {@link NumericJsonSchemaObject}. */ @SuppressWarnings("unchecked") - NumericJsonSchemaObject lte(Number max) { + public NumericJsonSchemaObject lte(Number max) { Assert.notNull(max, "Max must not be null!");