feat: add additional validation for github webhook

This commit is contained in:
Paul Makles
2023-06-03 14:02:16 +01:00
parent a0002d0b43
commit f9d9447203
2 changed files with 6 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ pub struct Reply {
pub struct SendableEmbed {
#[validate(length(min = 1, max = 128))]
pub icon_url: Option<String>,
#[validate(length(min = 1, max = 256))]
pub url: Option<String>,
#[validate(length(min = 1, max = 100))]
pub title: Option<String>,