Skip to content

Commit

Permalink
Upgrade garde to 0.19 for examples (#1515)
Browse files Browse the repository at this point in the history
replaces #1512 due to a change in their api

Signed-off-by: clux <[email protected]>
  • Loading branch information
clux authored Jun 11, 2024
1 parent f8a8407 commit b7f564e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ latest = ["k8s-openapi/latest"]
[dev-dependencies]
tokio-util.workspace = true
assert-json-diff.workspace = true
garde = { version = "0.18.0", default-features = false, features = ["derive"] }
garde = { version = "0.19.0", default-features = false, features = ["derive"] }
anyhow.workspace = true
futures = { workspace = true, features = ["async-await"] }
jsonpath-rust.workspace = true
Expand Down
2 changes: 1 addition & 1 deletion examples/crd_api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ async fn main() -> Result<()> {
replicas: 1,
});
// using derived Validate rules locally:
assert!(fx.spec.validate(&()).is_err());
assert!(fx.spec.validate().is_err());
// check rejection from apiserver (validation rules embedded in JsonSchema)
match foos.create(&pp, &fx).await {
Err(kube::Error::Api(ae)) => {
Expand Down

0 comments on commit b7f564e

Please sign in to comment.