Skip to content

Commit

Permalink
docs: partial lintfix
Browse files Browse the repository at this point in the history
  • Loading branch information
apskhem committed Nov 7, 2024
1 parent 1c8613e commit eee866e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ pub(crate) async fn endpoint(_message: Vec<dto::VotingHistoryItem>) -> AllRespon
pub(crate) mod dto {
use poem_openapi::Object;

/// An option item to specify proposal to query.
#[allow(clippy::missing_docs_in_private_items)]
#[derive(Object, Default)]
pub(crate) struct VotingHistoryItem {
#[oai(validator(max_length = 256, min_length = 0, pattern = "[A-Za-z0-9_-]"))]
vote_plan_id: String,
#[oai(validator(minimum(value = "0"), maximum(value = "4294967295")))]
indexes: u32,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

use poem_openapi::Object;

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

0 comments on commit eee866e

Please sign in to comment.