schemars 1.2.1

Generate JSON Schemas from Rust code
Documentation
1
2
3
4
5
6
7
error: `example` value must be an expression, and string literals that may be interpreted as function paths are currently disallowed to avoid migration errors (this restriction may be relaxed in a future version of schemars).
       If you want to use the result of a function, use `#[schemars(example = my_fn())]`.
       Or to use the string literal value, use `#[schemars(example = &"my_fn")]`.
 --> tests/ui/example_fn.rs:4:22
  |
4 | #[schemars(example = "my_fn")]
  |                      ^^^^^^^