Fix nullable stored-history constructor switching
Rust checks / check (ubuntu-latest) (push) Canceled after 0s
Rust checks / check (windows-latest) (push) Canceled after 0s

This commit is contained in:
Codex
2026-09-10 11:13:27 -07:00
parent 01bb52a76d
commit b6b76efc0d
5 changed files with 239 additions and 4 deletions
+3
View File
@@ -449,6 +449,9 @@ impl Draft {
None
};
let tag = |value: &Value| {
if self.kind == RecordKind::Trace && history_fields::is_path(path) {
return history_fields::constructor_tag(path, value);
}
value
.as_str()
.or_else(|| value.as_object()?.keys().next().map(String::as_str))