We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
json_schema!
1 parent 2697ecb commit 75f670aCopy full SHA for 75f670a
schemars/src/macros.rs
@@ -102,7 +102,7 @@ macro_rules! json_schema {
102
(
103
{$($json_object:tt)*}
104
) => {
105
- $crate::Schema::try_from($crate::_private::serde_json::json!({$($json_object)*})).unwrap()
+ <$crate::Schema as ::core::convert::TryFrom<_>>::try_from($crate::_private::serde_json::json!({$($json_object)*})).unwrap()
106
};
107
(true) => {
108
$crate::Schema::from(true)
0 commit comments