Files
cli/vendor/json-patch/tests/schemars.rs

10 lines
260 B
Rust
Raw Normal View History

#[cfg(feature = "schemars")]
#[test]
fn schema() {
use json_patch::*;
let schema = schemars::schema_for!(PatchOperation);
let json = serde_json::to_string_pretty(&schema).unwrap();
expectorate::assert_contents("tests/schemars.json", &json);
}