Skip to content

Commit

Permalink
Bump validator to 0.18.1 and fixed issues that it brought
Browse files Browse the repository at this point in the history
  • Loading branch information
auguwu committed Apr 11, 2024
1 parent 1ba62b5 commit 99dce3c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ tracing = "0.1.40"
tokio = "1.37.0"
url = { version = "2.5.0", features = ["serde"] }
utoipa = { version = "4.2.0", features = ["uuid"] }
validator = { version = "0.17.0", features = ["derive"] }
validator = { version = "0.18.1", features = ["derive"] }
which = "6.0.1"

[workspace.dependencies.noelware-config]
Expand Down
4 changes: 2 additions & 2 deletions crates/entities/src/payloads.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ pub struct CreateApiKeyPayload {
pub scopes: Vec<ApiKeyScope>,

/// key name to use to identify the key
#[validate]
#[validate(nested)]
pub name: Name,
}

Expand All @@ -305,7 +305,7 @@ pub struct PatchApiKeyPayload {

/// key name to use to identify the key
#[serde(default)]
#[validate]
#[validate(nested)]
pub name: Option<Name>,
}

Expand Down

0 comments on commit 99dce3c

Please sign in to comment.