Skip to content

Support core-schema integer and float forms #26

Description

Why

YAML 1.2.2 core schema recognises integer and float forms beyond plain base-10, but the current parser only resolves base-10 integers and standard floats, so documents using octal, hex, or special float literals parse incorrectly.

What

Recognise the full core-schema scalar forms: octal (0o...) and hex (0x...) integers, and .inf/.nan floats (with sign and case variants). ConvertTo-Yaml should round-trip [double]::PositiveInfinity, NegativeInfinity, and NaN to their canonical .inf / -.inf / .nan forms, and emit integers in base-10.

Spec examples covered

  • Example 2.19 — Integers
  • Example 2.20 — Floating Point

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions