YamlSchema
Definition
Namespace: Corvus.Text.Json.Yaml
Assembly: Corvus.Text.Json.dll
Specifies the YAML schema used for tag resolution and scalar type coercion.
public enum YamlSchema : IComparable, ISpanFormattable, IFormattable, IConvertible
Implements
IComparable, ISpanFormattable, IFormattable, IConvertible
Fields
| Field | Type | Description |
|---|---|---|
Core static |
YamlSchema |
YAML 1.2 Core Schema (default). Recognizes null, bool, int (decimal, octal, hex), and float (decimal, .inf, .nan) with case-insensitive patterns. |
Json static |
YamlSchema |
YAML 1.2 JSON Schema. Strict JSON-compatible resolution: only null, true/false, and JSON-style numbers. |
Failsafe static |
YamlSchema |
YAML 1.2 Failsafe Schema. All scalars are resolved as strings. No implicit type coercion is performed. |
Yaml11 static |
YamlSchema |
YAML 1.1 compatibility mode. Recognizes yes/no/on/off/y/n as booleans, sexagesimal integers, and merge keys (<<). |
Applies To
| Product | Versions |
|---|---|
| .NET | 9, 10 |
| .NET Standard | 2.0, 2.1 |
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests.
Open an issue