From 0b104b3efa5e738827df4df4abde1ce783517779 Mon Sep 17 00:00:00 2001 From: Tamo Date: Mon, 30 Dec 2024 11:46:31 +0100 Subject: [PATCH] fix the list indexes --- crates/meilisearch/src/routes/indexes/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/meilisearch/src/routes/indexes/mod.rs b/crates/meilisearch/src/routes/indexes/mod.rs index 96a7d0131..2b1fddd6b 100644 --- a/crates/meilisearch/src/routes/indexes/mod.rs +++ b/crates/meilisearch/src/routes/indexes/mod.rs @@ -18,7 +18,9 @@ use time::OffsetDateTime; use tracing::debug; use utoipa::{IntoParams, OpenApi, ToSchema}; -use super::{get_task_id, Pagination, SummarizedTaskView, PAGINATION_DEFAULT_LIMIT}; +use super::{ + get_task_id, Pagination, PaginationView, SummarizedTaskView, PAGINATION_DEFAULT_LIMIT, +}; use crate::analytics::{Aggregate, Analytics}; use crate::extractors::authentication::policies::*; use crate::extractors::authentication::{AuthenticationError, GuardedData}; @@ -138,7 +140,7 @@ impl ListIndexes { security(("Bearer" = ["indexes.get", "indexes.*", "*"])), params(ListIndexes), responses( - (status = 200, description = "Indexes are returned", body = serde_json::Value, content_type = "application/json", example = json!( + (status = 200, description = "Indexes are returned", body = PaginationView, content_type = "application/json", example = json!( { "results": [ {