Skip to content

Support tags and !! shorthand #24

Description

Why

YAML 1.2.2 lets nodes be explicitly typed via tags, but any !/!! prefix is currently treated as plain text, so explicitly-tagged documents parse incorrectly.

What

Parse and honour the standard !! shorthand tags: !!str, !!int, !!float, !!bool, !!null to force scalar resolution; !!seq, !!map to force collection kind; !!set exposed as a hashset-like structure; !!omap exposed as an [ordered] hashtable; and verbatim (!<tag:...>) and local (!foo) tags accepted.

Spec examples covered

  • Example 2.21 — Miscellaneous (typed forms with !!str)
  • Example 2.23 — Various Explicit Tags
  • Example 2.24 — Global Tags
  • Example 2.25 — !!set
  • Example 2.26 — !!omap

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions