From 832c6c9cdf27c33dd6cc60a7476474627e315627 Mon Sep 17 00:00:00 2001 From: Aleksandr Petrosyan Date: Wed, 6 Apr 2022 11:44:33 +0400 Subject: [PATCH] [fix] #0000: HotFix for pagination not being reflected in the schema. Signed-off-by: Aleksandr Petrosyan --- data_model/src/pagination.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,