diff --git a/data_model/src/pagination.rs b/data_model/src/pagination.rs index 9132d9b9580..5ba937e0296 100644 --- a/data_model/src/pagination.rs +++ b/data_model/src/pagination.rs @@ -12,6 +12,7 @@ use core::fmt; #[cfg(feature = "std")] use std::collections::btree_map; +use iroha_schema::IntoSchema; use serde::{Deserialize, Serialize}; #[cfg(feature = "warp")] use warp::{ @@ -70,7 +71,7 @@ impl Iterator for Paginated { } /// Structure for pagination requests -#[derive(Clone, Eq, PartialEq, Debug, Default, Copy, Deserialize, Serialize)] +#[derive(Clone, Eq, PartialEq, Debug, Default, Copy, Deserialize, Serialize, IntoSchema)] pub struct Pagination { /// start of indexing pub start: Option,