ExtendedSchema Class

Extension to the core schema and accept different flavor of scalars

  • bool(true): y|Y|yes|Yes|YES|true|True|TRUE|on|On|ON
  • bool(false): n|N|no|No|NO|false|False|FALSE|off|Off|OFF
  • timestamp
public class ExtendedSchema : CoreSchema
Inheritance
CoreSchema ExtendedSchema

Constructors

NameDescription
ExtendedSchema()Initializes a new instance of the ExtendedSchema class.

ExtendedSchema()

ExtendedSchema.cs

Initializes a new instance of the ExtendedSchema class.

public ExtendedSchema()

Methods

NameDescription
PrepareScalarRules()Registers scalar resolution rules for the extended YAML schema.

PrepareScalarRules()

ExtendedSchema.cs

Registers scalar resolution rules for the extended YAML schema.

protected override void PrepareScalarRules()

Constants

NameDescription
MergeLongTagThe merge long tag: tag:yaml.org,2002:merge
MergeShortTagThe merge short tag: !!merge
TimestampLongTagThe timestamp long tag: tag:yaml.org,2002:timestamp
TimestampShortTagThe timestamp short tag: !!timestamp

MergeLongTag

The merge long tag: tag:yaml.org,2002:merge

public const string MergeLongTag = "tag:yaml.org,2002:merge"

MergeShortTag

The merge short tag: !!merge

public const string MergeShortTag = "!!merge"

TimestampLongTag

The timestamp long tag: tag:yaml.org,2002:timestamp

public const string TimestampLongTag = "tag:yaml.org,2002:timestamp"

TimestampShortTag

The timestamp short tag: !!timestamp

public const string TimestampShortTag = "!!timestamp"