From 1c6695b8d7d95e0deb3ed66f41c0be7d56f1203c 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 ccee98f4de26..18a60fa1a986 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 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 Response delete( content = @Content( mediaType = "application/json", - schema = @Schema(implementation = Table.class))) + schema = @Schema(implementation = Classification.class))) }) public Response restore( @Context UriInfo uriInfo,