From 620a6908792cf455f08d4aae4ed7bbfaca404711 Mon Sep 17 00:00:00 2001 From: Ayush Shah Date: Thu, 12 Sep 2024 10:11:41 +0530 Subject: [PATCH] Fixes #17804: Classification API returns Table class for restore (#17806) * fix: Classification API returns Table class for restore --- .../service/resources/tags/ClassificationResource.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/openmetadata-service/src/main/java/org/openmetadata/service/resources/tags/ClassificationResource.java b/openmetadata-service/src/main/java/org/openmetadata/service/resources/tags/ClassificationResource.java index ccee98f4de2..18a60fa1a98 100644 --- a/openmetadata-service/src/main/java/org/openmetadata/service/resources/tags/ClassificationResource.java +++ b/openmetadata-service/src/main/java/org/openmetadata/service/resources/tags/ClassificationResource.java @@ -48,7 +48,6 @@ import lombok.extern.slf4j.Slf4j; import org.openmetadata.schema.api.classification.CreateClassification; import org.openmetadata.schema.api.data.RestoreEntity; import org.openmetadata.schema.entity.classification.Classification; -import org.openmetadata.schema.entity.data.Table; import org.openmetadata.schema.type.EntityHistory; import org.openmetadata.schema.type.Include; import org.openmetadata.schema.type.MetadataOperation; @@ -440,7 +439,7 @@ public class ClassificationResource content = @Content( mediaType = "application/json", - schema = @Schema(implementation = Table.class))) + schema = @Schema(implementation = Classification.class))) }) public Response restore( @Context UriInfo uriInfo,