Skip to content

Commit a0796cf

Browse files
committed
Update ObjectSchema.java
Schemas with additional properties were not properly serialized.
1 parent 6f01a11 commit a0796cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/main/java/com/fasterxml/jackson/module/jsonSchema/types/ObjectSchema.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ public boolean equals(Object obj) {
237237
getJsonSchema().equals(((SchemaAdditionalProperties)obj).getJsonSchema());
238238
}
239239

240+
@JsonValue
240241
public JsonSchema getJsonSchema() {
241242
return jsonSchema;
242243
}
@@ -333,4 +334,4 @@ public String getDependsOn() {
333334
}
334335
}
335336

336-
}
337+
}

0 commit comments

Comments
 (0)