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:
Graham Esau 2019-10-21 21:45:29 +01:00
parent f8737be9c4
commit 5c307b92fb
2 changed files with 30 additions and 13 deletions

View file

@ -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