Add test for invalid schemars attributes
This commit is contained in:
parent
b0a2f9994b
commit
4197bf4183
6 changed files with 54 additions and 2 deletions
|
@ -26,6 +26,7 @@ arrayvec = { version = "0.5", default-features = false, optional = true }
|
|||
|
||||
[dev-dependencies]
|
||||
pretty_assertions = "0.6.1"
|
||||
trybuild = "1.0"
|
||||
|
||||
[features]
|
||||
default = ["derive"]
|
||||
|
@ -36,6 +37,8 @@ impl_json_schema = ["derive"]
|
|||
# derive_json_schema will be removed in a later version
|
||||
derive_json_schema = ["impl_json_schema"]
|
||||
|
||||
ui_test = []
|
||||
|
||||
[[test]]
|
||||
name = "chrono"
|
||||
required-features = ["chrono"]
|
||||
|
@ -64,5 +67,9 @@ required-features = ["arrayvec"]
|
|||
name = "schema_for_schema"
|
||||
required-features = ["impl_json_schema"]
|
||||
|
||||
[[test]]
|
||||
name = "ui"
|
||||
required-features = ["ui_test"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue