jsonschema-macros 0.60.2

Compile-time JSON Schema validator generation for the jsonschema crate
Documentation
1
2
3
4
5
6
7
error: 123 is not of type "string"
 --> tests/ui/non_string_pattern_value.rs:1:1
  |
1 | #[jsonschema::validator(schema = r#"{"type":"string","pattern":123}"#)]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: this error originates in the attribute macro `jsonschema::validator` (in Nightly builds, run with -Z macro-backtrace for more info)