Skip to content

Commit

Permalink
iam/modify regular (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
RWDai authored Apr 1, 2023
1 parent 339672f commit ce987b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spi/spi-log/src/dto/log_item_dto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use tardis::{

#[derive(poem_openapi::Object, Serialize, Deserialize, Debug)]
pub struct LogItemAddReq {
#[oai(validator(pattern = r"^[a-z0-9]+$"))]
#[oai(validator(pattern = r"^[a-z0-9:]+$"))]
pub tag: String,
#[oai(validator(min_length = "2"))]
pub content: String,
Expand All @@ -22,7 +22,7 @@ pub struct LogItemAddReq {

#[derive(poem_openapi::Object, Serialize, Deserialize, Debug)]
pub struct LogItemFindReq {
#[oai(validator(pattern = r"^[a-z0-9]+$"))]
#[oai(validator(pattern = r"^[a-z0-9:]+$"))]
pub tag: String,
pub keys: Option<Vec<TrimString>>,
pub ops: Option<Vec<String>>,
Expand Down

0 comments on commit ce987b2

Please sign in to comment.