Skip to content

Commit

Permalink
[fix] #0000: HotFix for pagination not being reflected in the schema.
Browse files Browse the repository at this point in the history
Signed-off-by: Aleksandr Petrosyan <[email protected]>
  • Loading branch information
appetrosyan committed Apr 15, 2022
1 parent 089de68 commit f53b086
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion data_model/src/pagination.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::{
Expand Down Expand Up @@ -70,7 +71,7 @@ impl<I: Iterator> Iterator for Paginated<I> {
}

/// 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<u32>,
Expand Down

0 comments on commit f53b086

Please sign in to comment.