Do not implement JsonSchema for internal types by default.
It will be implemented only if the derive_json_schema feature is enabled
This commit is contained in:
parent
f8737be9c4
commit
5c307b92fb
2 changed files with 30 additions and 13 deletions
|
|
@ -19,9 +19,16 @@ chrono = { version = "0.4", default-features = false, optional = true }
|
|||
[dev-dependencies]
|
||||
pretty_assertions = "0.6.1"
|
||||
|
||||
[features]
|
||||
derive_json_schema = []
|
||||
|
||||
[[test]]
|
||||
name = "chrono"
|
||||
required-features = ["chrono"]
|
||||
|
||||
[[test]]
|
||||
name = "schema_for_schema"
|
||||
required-features = ["derive_json_schema"]
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
all-features = true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue