Skip to content

Commit eee866e

Browse files
committed
docs: partial lintfix
1 parent 1c8613e commit eee866e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

catalyst-gateway/bin/src/service/api/legacy/v0/proposals_post.rs

+3
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,13 @@ pub(crate) async fn endpoint(_message: Vec<dto::VotingHistoryItem>) -> AllRespon
2424
pub(crate) mod dto {
2525
use poem_openapi::Object;
2626

27+
/// An option item to specify proposal to query.
2728
#[allow(clippy::missing_docs_in_private_items)]
2829
#[derive(Object, Default)]
2930
pub(crate) struct VotingHistoryItem {
31+
#[oai(validator(max_length = 256, min_length = 0, pattern = "[A-Za-z0-9_-]"))]
3032
vote_plan_id: String,
33+
#[oai(validator(minimum(value = "0"), maximum(value = "4294967295")))]
3134
indexes: u32,
3235
}
3336
}

catalyst-gateway/bin/src/service/common/objects/legacy/fund.rs

+2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
33
use poem_openapi::Object;
44

5+
/// The fund object.
56
#[allow(clippy::missing_docs_in_private_items)]
67
#[derive(Object, Default)]
78
pub(crate) struct Fund {
9+
#[oai(validator(max_length = 256, min_length = 0, pattern = "[A-Za-z0-9_-]"))]
810
id: String,
911
}

0 commit comments

Comments
 (0)