Add support for indexmap v2
This commit is contained in:
parent
5dbfa49c5e
commit
aeb989486e
4 changed files with 31 additions and 0 deletions
16
schemars/tests/indexmap2.rs
Normal file
16
schemars/tests/indexmap2.rs
Normal file
|
@ -0,0 +1,16 @@
|
|||
mod util;
|
||||
use indexmap2::{IndexMap, IndexSet};
|
||||
use schemars::JsonSchema;
|
||||
use util::*;
|
||||
|
||||
#[allow(dead_code)]
|
||||
#[derive(JsonSchema)]
|
||||
struct IndexMapTypes {
|
||||
map: IndexMap<i32, bool>,
|
||||
set: IndexSet<isize>,
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn indexmap_types() -> TestResult {
|
||||
test_default_generated_schema::<IndexMapTypes>("indexmap")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue