json-patch 4.1.0

RFC 6902, JavaScript Object Notation (JSON) Patch
Documentation
1
2
3
4
5
6
7
8
9
#[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);
}