1
0
Fork 0

add type parameters to serde_json::Map

This commit is contained in:
Cyborus 2024-01-16 17:49:00 -05:00
parent b111e3352d
commit 2f60a92933
No known key found for this signature in database

View file

@ -242,7 +242,7 @@ fn schema_type_name(
// Checking for a space filters that out
(Some(title), _) if !title.contains(' ') => title.to_string(),
(_, Some(definition_name)) => definition_name.to_string(),
(_, None) => "serde_json::Map".to_string(),
(_, None) => "serde_json::Map<String, serde_json::Value>".to_string(),
}
}
};