Skip to content

Commit 20b526c

Browse files
authored
Fix missing schema type (#4571)
1 parent b2d48fc commit 20b526c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/main/java/io/apicurio/registry/ccompat/rest/v7/impl/SubjectVersionsResourceImpl.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ protected Schema getSchema(String groupId, String subject, String versionString,
181181
ArtifactVersionMetaDataDto amd = storage.getArtifactVersionMetaData(groupId, subject, version);
182182
if (amd.getState() != VersionState.DISABLED || deleted) {
183183
StoredArtifactVersionDto storedArtifact = storage.getArtifactVersionContent(groupId, subject, amd.getVersion());
184-
return converter.convert(subject, storedArtifact);
184+
return converter.convert(subject, storedArtifact, amd.getType());
185185
} else {
186186
throw new VersionNotFoundException(groupId, subject, version);
187187
}

0 commit comments

Comments
 (0)