Update ObjectSchema.java

Schemas with additional properties were not properly serialized.