Skip to content

Commit

Permalink
Port validator tests to new integration test style
Browse files Browse the repository at this point in the history
  • Loading branch information
GREsau committed Sep 11, 2024
1 parent fd9c7b9 commit 9dc98c3
Show file tree
Hide file tree
Showing 11 changed files with 294 additions and 319 deletions.
137 changes: 128 additions & 9 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions schemars/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ snapbox = { version = "0.6.17", features = ["json"] }
serde_repr = "0.1.19"
# Use github source until published garde version supports `length(equal = ...)` attr
garde = { git = "https://github.com/jprochazk/garde.git", rev = "be00ddddf8de14530ee890ccfdbaf0b13fb32852", features = ["derive", "email", "regex", "url"] }
validator = { version = "0.18.1", features = ["derive"] }
regex = { version = "1.10.6", default-features = false }

arrayvec07 = { version = "0.7", default-features = false, features = ["serde"], package = "arrayvec"}
bytes1 = { version = "1.0", default-features = false, features = ["serde"], package = "bytes" }
Expand Down
74 changes: 0 additions & 74 deletions schemars/tests/expected/validate_inner.json

This file was deleted.

8 changes: 0 additions & 8 deletions schemars/tests/expected/validate_newtype.json

This file was deleted.

18 changes: 0 additions & 18 deletions schemars/tests/expected/validate_tuple.json

This file was deleted.

1 change: 1 addition & 0 deletions schemars/tests/integration/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ mod same_name;
#[cfg(feature = "semver1")]
mod semver;
mod std_types;
mod validator;

mod prelude {
pub(crate) use crate::test;
Expand Down
Loading

0 comments on commit 9dc98c3

Please sign in to comment.