-
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
34 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,71 +1,71 @@ | ||
error: expected validate regex attribute item to be of the form `regex(...)` | ||
--> tests/ui/invalid_validation_attrs.rs:7:31 | ||
--> tests/ui/invalid_validation_attrs.rs:5:31 | ||
| | ||
7 | pub struct Struct1(#[validate(regex, foo, length(min = 1, equal = 2, bar))] String); | ||
5 | pub struct Struct1(#[validate(regex, foo, length(min = 1, equal = 2, bar))] String); | ||
| ^^^^^ | ||
|
||
error: expected schemars regex attribute item to be of the form `regex(...)` | ||
--> tests/ui/invalid_validation_attrs.rs:11:31 | ||
| | ||
11 | pub struct Struct2(#[schemars(regex, foo, length(min = 1, equal = 2, bar))] String); | ||
| ^^^^^ | ||
--> tests/ui/invalid_validation_attrs.rs:9:31 | ||
| | ||
9 | pub struct Struct2(#[schemars(regex, foo, length(min = 1, equal = 2, bar))] String); | ||
| ^^^^^ | ||
|
||
error: schemars attribute cannot contain both `equal` and `min` | ||
--> tests/ui/invalid_validation_attrs.rs:11:59 | ||
| | ||
11 | pub struct Struct2(#[schemars(regex, foo, length(min = 1, equal = 2, bar))] String); | ||
| ^^^^^^^^^ | ||
--> tests/ui/invalid_validation_attrs.rs:9:59 | ||
| | ||
9 | pub struct Struct2(#[schemars(regex, foo, length(min = 1, equal = 2, bar))] String); | ||
| ^^^^^^^^^ | ||
|
||
error: unknown item in schemars length attribute: `bar` | ||
--> tests/ui/invalid_validation_attrs.rs:11:70 | ||
| | ||
11 | pub struct Struct2(#[schemars(regex, foo, length(min = 1, equal = 2, bar))] String); | ||
| ^^^ | ||
--> tests/ui/invalid_validation_attrs.rs:9:70 | ||
| | ||
9 | pub struct Struct2(#[schemars(regex, foo, length(min = 1, equal = 2, bar))] String); | ||
| ^^^ | ||
|
||
error: unknown schemars attribute `foo` | ||
--> tests/ui/invalid_validation_attrs.rs:11:38 | ||
| | ||
11 | pub struct Struct2(#[schemars(regex, foo, length(min = 1, equal = 2, bar))] String); | ||
| ^^^ | ||
--> tests/ui/invalid_validation_attrs.rs:9:38 | ||
| | ||
9 | pub struct Struct2(#[schemars(regex, foo, length(min = 1, equal = 2, bar))] String); | ||
| ^^^ | ||
|
||
error: unknown schemars attribute `email` | ||
--> tests/ui/invalid_validation_attrs.rs:10:12 | ||
| | ||
10 | #[schemars(email)] | ||
| ^^^^^ | ||
--> tests/ui/invalid_validation_attrs.rs:8:12 | ||
| | ||
8 | #[schemars(email)] | ||
| ^^^^^ | ||
|
||
error: expected validate regex attribute item to be of the form `regex(...)` | ||
--> tests/ui/invalid_validation_attrs.rs:16:9 | ||
--> tests/ui/invalid_validation_attrs.rs:14:9 | ||
| | ||
16 | regex = "foo", | ||
14 | regex = "foo", | ||
| ^^^^^^^^^^^^^ | ||
|
||
error: expected validate contains attribute item to be of the form `contains(...)` | ||
--> tests/ui/invalid_validation_attrs.rs:17:9 | ||
--> tests/ui/invalid_validation_attrs.rs:15:9 | ||
| | ||
17 | contains = "bar", | ||
15 | contains = "bar", | ||
| ^^^^^^^^^^^^^^^^ | ||
|
||
error: expected schemars regex attribute item to be of the form `regex(...)` | ||
--> tests/ui/invalid_validation_attrs.rs:29:9 | ||
--> tests/ui/invalid_validation_attrs.rs:27:9 | ||
| | ||
29 | regex = "foo", | ||
27 | regex = "foo", | ||
| ^^^^^^^^^^^^^ | ||
|
||
error: expected schemars contains attribute item to be of the form `contains(...)` | ||
--> tests/ui/invalid_validation_attrs.rs:30:9 | ||
--> tests/ui/invalid_validation_attrs.rs:28:9 | ||
| | ||
30 | contains = "bar", | ||
28 | contains = "bar", | ||
| ^^^^^^^^^^^^^^^^ | ||
|
||
error: schemars attribute cannot contain both `url` and `email` | ||
--> tests/ui/invalid_validation_attrs.rs:34:9 | ||
--> tests/ui/invalid_validation_attrs.rs:32:9 | ||
| | ||
34 | url | ||
32 | url | ||
| ^^^ | ||
|
||
error: unknown schemars attribute `phone` | ||
--> tests/ui/invalid_validation_attrs.rs:32:9 | ||
--> tests/ui/invalid_validation_attrs.rs:30:9 | ||
| | ||
32 | phone, | ||
30 | phone, | ||
| ^^^^^ |