Add support for indexmap v2

This commit is contained in:
David Knaack 2023-06-27 15:15:13 +02:00 committed by Graham Esau
parent 5dbfa49c5e
commit aeb989486e
4 changed files with 31 additions and 0 deletions

View 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")
}