Parses a TOML payload into a syntax tree and throws on any parse/validation error.
public static DocumentSyntax ParseStrict(string toml, TomlSerializerOptions options, string? sourceName = null, bool validate = true)
The TOML payload.
Serializer options supplying shared behaviors such as MaxDepth.
An optional source name used in diagnostics.
When true, runs semantic validation after parsing.