Fixes #17804: Classification API returns Table class for restore (#17806)

* fix: Classification API returns Table class for restore
This commit is contained in:
Ayush Shah 2024-09-12 10:11:41 +05:30
parent e23a18b88c
commit 620a690879

View File

@ -48,7 +48,6 @@ import lombok.extern.slf4j.Slf4j;
import org.openmetadata.schema.api.classification.CreateClassification; import org.openmetadata.schema.api.classification.CreateClassification;
import org.openmetadata.schema.api.data.RestoreEntity; import org.openmetadata.schema.api.data.RestoreEntity;
import org.openmetadata.schema.entity.classification.Classification; 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.EntityHistory;
import org.openmetadata.schema.type.Include; import org.openmetadata.schema.type.Include;
import org.openmetadata.schema.type.MetadataOperation; import org.openmetadata.schema.type.MetadataOperation;
@ -440,7 +439,7 @@ public class ClassificationResource
content = content =
@Content( @Content(
mediaType = "application/json", mediaType = "application/json",
schema = @Schema(implementation = Table.class))) schema = @Schema(implementation = Classification.class)))
}) })
public Response restore( public Response restore(
@Context UriInfo uriInfo, @Context UriInfo uriInfo,