From ce987b21dfca8b5e2152bbccf3a2b1e7db797f17 Mon Sep 17 00:00:00 2001 From: RWDai <869759838@qq.com> Date: Sat, 1 Apr 2023 21:48:33 +0800 Subject: [PATCH] iam/modify regular (#176) --- spi/spi-log/src/dto/log_item_dto.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spi/spi-log/src/dto/log_item_dto.rs b/spi/spi-log/src/dto/log_item_dto.rs index 14bfac0dd..81b73bcdb 100644 --- a/spi/spi-log/src/dto/log_item_dto.rs +++ b/spi/spi-log/src/dto/log_item_dto.rs @@ -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, @@ -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>, pub ops: Option>,