Currently, when attempting to merge multiple Type Registries together, the top-level schema property is overwritten:
if (typeRegistry.schema != null && this.schema != null) {
errors.add(new SchemaRedefinitionError(this.schema, typeRegistry.schema));
}
if (!errors.isEmpty()) {
throw new SchemaProblem(errors);
}
// ok commit to the merge
this.schema = typeRegistry.schema;
Currently, when attempting to merge multiple Type Registries together, the top-level schema property is overwritten: