File tree 2 files changed +5
-0
lines changed
catalyst-gateway/bin/src/service
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -24,10 +24,13 @@ pub(crate) async fn endpoint(_message: Vec<dto::VotingHistoryItem>) -> AllRespon
24
24
pub ( crate ) mod dto {
25
25
use poem_openapi:: Object ;
26
26
27
+ /// An option item to specify proposal to query.
27
28
#[ allow( clippy:: missing_docs_in_private_items) ]
28
29
#[ derive( Object , Default ) ]
29
30
pub ( crate ) struct VotingHistoryItem {
31
+ #[ oai( validator( max_length = 256 , min_length = 0 , pattern = "[A-Za-z0-9_-]" ) ) ]
30
32
vote_plan_id : String ,
33
+ #[ oai( validator( minimum( value = "0" ) , maximum( value = "4294967295" ) ) ) ]
31
34
indexes : u32 ,
32
35
}
33
36
}
Original file line number Diff line number Diff line change 2
2
3
3
use poem_openapi:: Object ;
4
4
5
+ /// The fund object.
5
6
#[ allow( clippy:: missing_docs_in_private_items) ]
6
7
#[ derive( Object , Default ) ]
7
8
pub ( crate ) struct Fund {
9
+ #[ oai( validator( max_length = 256 , min_length = 0 , pattern = "[A-Za-z0-9_-]" ) ) ]
8
10
id : String ,
9
11
}
You can’t perform that action at this time.
0 commit comments