Make schema_for macro pattern stricter
This commit is contained in:
parent
fb6bb85cb7
commit
317c317e95
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
#[macro_export]
|
||||
macro_rules! schema_for {
|
||||
($($type:tt)+) => {
|
||||
$crate::gen::SchemaGenerator::default().into_root_schema_for::<$($type)+>()
|
||||
($type:path) => {
|
||||
$crate::gen::SchemaGenerator::default().into_root_schema_for::<$type>()
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue