Skip to content

Commit b59c7f7

Browse files
gongxuanzhangchristophstrobl
gongxuanzhang
authored andcommitted
Fix json schema type name for boolean.
Was boolean should have been bool. Closes: #4196
1 parent b7ac5f7 commit b59c7f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-data-mongodb/src/main/java/org/springframework/data/mongodb/core/schema/JsonSchemaObject.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ interface Type {
295295
Type OBJECT = jsonTypeOf("object");
296296
Type ARRAY = jsonTypeOf("array");
297297
Type NUMBER = jsonTypeOf("number");
298-
Type BOOLEAN = jsonTypeOf("boolean");
298+
Type BOOLEAN = jsonTypeOf("bool");
299299
Type STRING = jsonTypeOf("string");
300300
Type NULL = jsonTypeOf("null");
301301

0 commit comments

Comments
 (0)