PureYAML/Sources
Mihaela Mihaljevic e1c08260c4 feat(tagged): add typed timestamp and binary scalar accessors
Completes issue #11. Tagged.Scalar.timestampValue parses a !!timestamp
scalar under the YAML 1.1 grammar into the pure-Swift Tagged.Timestamp
(calendar components, timezone offset, secondsSinceEpoch via the
days-from-civil closed form; epoch test expectations measured against
Python's independent implementation). Tagged.Scalar.binaryValue base64
decodes a !!binary scalar into bytes, accepting unpadded and block
scalar wrapped content and rejecting corrupt input whole.

Yams hands back Foundation Date/Data; this package is mechanically
Foundation-free, so the bridges are caller-owned one-liners:
Date(timeIntervalSince1970:) and Data(_:). !!set and !!omap stay
skipped since Model.Mapping already preserves order and duplicates.

Closes #11
2026-07-12 14:20:23 +02:00
..
Coding
Decoding
Emitting feat(emitting): add canonical mode, document markers, and lineWidth 2026-07-12 14:13:19 +02:00
Encoding
Model
Parsing style: bring four files back under the swiftformat gate 2026-07-12 13:29:05 +02:00
PureYAMLJSON
Stream
Streaming fix(streaming): replace the token-kind trap with an exhaustive switch 2026-07-12 13:26:06 +02:00
Tagged feat(tagged): add typed timestamp and binary scalar accessors 2026-07-12 14:20:23 +02:00
Validation
API.swift feat(tagged): preserve anchors, aliases, and per-node styles end to end 2026-07-12 13:20:12 +02:00
PureYAML.swift