Skip to content

Commit

Permalink
Use appropriate base class for expanding properties in AdminMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
kwahlin committed Jan 23, 2025
1 parent 0a052d6 commit e316649
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,10 @@ public Node expand(Disambiguate disambiguate, Collection<String> types) {
List<String> domain = disambiguate.getDomain(name);
if (!domain.isEmpty()
&& domain.stream()
.filter(d -> disambiguate.isSubclassOf(d, "Record"))
.filter(d -> disambiguate.isSubclassOf(d, "AdminMetadata"))
.count() == domain.size()
) {
// The property only appears on Record
// The property only appears on AdminMetadata
expanded = prependMetaKey(expanded);
} else {
expanded = getAlternativePaths(expanded, disambiguate, types);
Expand Down

0 comments on commit e316649

Please sign in to comment.