Implement JsonSchema for fmt::Arguments

This commit is contained in:
Graham Esau 2019-10-27 19:41:37 +00:00
parent be59422c13
commit ebb7173dfc

View file

@ -71,3 +71,15 @@ impl JsonSchema for char {
.into()
}
}
impl<'a> JsonSchema for std::fmt::Arguments<'a> {
no_ref_schema!();
fn schema_name() -> String {
<String>::schema_name()
}
fn json_schema(gen: &mut SchemaGenerator) -> Schema {
<String>::json_schema(gen)
}
}