Skip to content

Commit

Permalink
Fix missing schema type (#4571)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlesarnal authored Apr 19, 2024
1 parent b2d48fc commit 20b526c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ protected Schema getSchema(String groupId, String subject, String versionString,
ArtifactVersionMetaDataDto amd = storage.getArtifactVersionMetaData(groupId, subject, version);
if (amd.getState() != VersionState.DISABLED || deleted) {
StoredArtifactVersionDto storedArtifact = storage.getArtifactVersionContent(groupId, subject, amd.getVersion());
return converter.convert(subject, storedArtifact);
return converter.convert(subject, storedArtifact, amd.getType());
} else {
throw new VersionNotFoundException(groupId, subject, version);
}
Expand Down

0 comments on commit 20b526c

Please sign in to comment.