Support null vs noop comparison.

main
Tom Alexander 4 months ago
parent aa5629354e
commit d258cdb839
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE

@ -156,6 +156,9 @@ fn compare_optional_json_value<'b, 's>(
(None, None) | (None, Some(serde_json::Value::Null)) | (Some(Token::Atom("nil")), None) => {
Ok(WasmDiffResult::default())
}
(None, Some(serde_json::Value::Object(w))) if w.contains_key("noop") => {
Ok(WasmDiffResult::default())
}
(Some(e), Some(w)) => compare_json_value(source, e, w),
_ => Ok(WasmDiffResult {
status: vec![WasmDiffStatus::Bad(

Loading…
Cancel
Save