Implement JsonSchema on indexmap types

This commit is contained in:
Graham Esau 2019-12-27 21:44:50 +00:00
parent 8d0ccc89db
commit fd42debc4d
8 changed files with 60 additions and 1 deletions

View file

@ -16,7 +16,9 @@ build = "build.rs"
schemars_derive = { version = "=0.6.3", path = "../schemars_derive" }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
chrono = { version = "0.4", default-features = false, optional = true }
indexmap = { version = "1.2", optional = true }
[dev-dependencies]
pretty_assertions = "0.6.1"
@ -30,6 +32,10 @@ derive_json_schema = ["impl_json_schema"]
name = "chrono"
required-features = ["chrono"]
[[test]]
name = "indexmap"
required-features = ["indexmap"]
[[test]]
name = "schema_for_schema"
required-features = ["impl_json_schema"]