Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Apr 26, 2024
1 parent 59dc5ae commit a0c3cde
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ee/tabby-webserver/src/schema/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,13 @@ impl relay::NodeType for User {

#[derive(Validate, GraphQLInputObject)]
pub struct RequestInvitationInput {
#[validate(email(code = "email", message="Invalid email address"))]
#[validate(email(code = "email", message = "Invalid email address"))]
pub email: String,
}

#[derive(Validate, GraphQLInputObject)]
pub struct RequestPasswordResetEmailInput {
#[validate(email(code = "email", message="Invalid email address"))]
#[validate(email(code = "email", message = "Invalid email address"))]
pub email: String,
}

Expand Down
2 changes: 1 addition & 1 deletion ee/tabby-webserver/src/schema/email.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ pub struct EmailSetting {
#[derive(GraphQLInputObject, Validate)]
pub struct EmailSettingInput {
pub smtp_username: String,
#[validate(email(code = "fromAddress", message="Invalid email address"))]
#[validate(email(code = "fromAddress", message = "Invalid email address"))]
pub from_address: String,
pub smtp_server: String,
pub smtp_port: i32,
Expand Down
4 changes: 2 additions & 2 deletions ee/tabby-webserver/src/schema/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ pub struct CreateRepositoryProviderInput {
message = "Invalid repository provider name"
))]
pub display_name: String,
#[validate(length(code = "accessToken", min = 10, message="Invalid access token"))]
#[validate(length(code = "accessToken", min = 10, message = "Invalid access token"))]
pub access_token: String,
}

Expand All @@ -22,6 +22,6 @@ pub struct UpdateRepositoryProviderInput {
message = "Invalid repository provider name"
))]
pub display_name: String,
#[validate(length(code = "accessToken", min = 10, message="Invalid access token"))]
#[validate(length(code = "accessToken", min = 10, message = "Invalid access token"))]
pub access_token: String,
}

0 comments on commit a0c3cde

Please sign in to comment.