You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
main is red: AddFrontmatter writes DateTimeOffset/DateOnly/TimeOnly/Version as ~20-key mappings again because CallerValueSerializer lacks the #217 converter (7 tests fail) #223
// Frontmatter/YamlSerializer.cs:65-70privatestaticreadonlyISerializerCallerValueSerializer=newSerializerBuilder().WithNamingConvention(NullNamingConvention.Instance).ConfigureDefaultValuesHandling(DefaultValuesHandling.Preserve).WithQuotingNecessaryStrings(quoteYaml1_1Strings:true).WithEventEmitter(next =>newEdgeWhitespaceQuotingEventEmitter(next)).Build();// no .WithTypeConverter(new InvariantScalarTypeConverter())
AddFrontmatter, ReplaceFrontmatter, SerializeFrontmatter and the insert-into-header path (TryInsertIntoHeader) all use CallerValueSerializer. They are called from Frontmatter.cs:235, :290, :330 and :377. As a result, #217 has regressed in every public writer.
Reproduction
Running dotnet test at 38c7c3c gives 399 tests total, 7 failed, all in InvariantScalarTypeTests:
Priority: Critical. main fails 7 of its own regression tests, so CI and the next release are blocked. Any consumer passing a date or Version writes corrupt frontmatter.
Area / suggested owner: Serialization (Frontmatter/YamlSerializer.cs, CallerValueSerializer).
Notes: The issue says the one-line fix (.WithTypeConverter(new InvariantScalarTypeConverter())) brings the suite to 399/399. Land that first. Then build both serializers from one shared builder so the two can't drift apart again.
Activity
matt-edmondson commentedon Oct 31, 2026
Triage
mainfails 7 of its own regression tests, so CI and the next release are blocked. Any consumer passing a date orVersionwrites corrupt frontmatter.Frontmatter/YamlSerializer.cs,CallerValueSerializer).duration: 10:30:00into the integer 37800 (and 1e20 is written as1E+20, read as a string) #225 depends on this fix, because it extends the same converter..WithTypeConverter(new InvariantScalarTypeConverter())) brings the suite to 399/399. Land that first. Then build both serializers from one shared builder so the two can't drift apart again.Generated by Claude Code
Give the caller-value serializer the invariant scalar converter [patch]
Give the caller-value serializer the invariant scalar converter [patch]
Give the caller-value serializer the invariant scalar converter [patch]
Give the caller-value serializer the invariant scalar converter [patch]
Give the caller-value serializer the invariant scalar converter [patch]
Keep keys in input order when CombineFrontmatter merges them [patch] (#…
Quote caller strings that read back as floats, = or << [patch] (#231)
Resolve only a plain << as a YAML merge key [patch] (#232)
Insert a double or decimal into the header without dropping its comme…
Keep values a header already holds as written when the header is rewr…