FrontMatterParserOptions
Pennington.FrontMatter
Options that control front-matter parsing behavior.
Properties
StrictUnknownKeysbool- When true, unknown YAML keys cause the deserializer to throw a
YamlExceptioninstead of silently dropping the value. Independently of this flag, every unknown key is reported as aWarning-severity diagnostic viaDiagnosticContextso dev overlays and build reports surface typos. Defaults tofalse(lenient); the engine flips the default totruein build mode.
Pennington.FrontMatter.FrontMatterParserOptions
namespace Pennington.FrontMatter;
/// Options that control front-matter parsing behavior.
public class FrontMatterParserOptions
{
/// When true, unknown YAML keys cause the deserializer to throw a YamlException instead of silently dropping the value. Independently of this flag, every unknown key is reported as a Warning-severity diagnostic via DiagnosticContext so dev overlays and build reports surface typos. Defaults to false (lenient); the engine flips the default to true in build mode.
public bool StrictUnknownKeys { get; set; }
}