Context
YAML 1.2.2 treats comments, scalar style, tag handles, anchor names, directives, and indentation as presentation details. Object projection can legitimately discard those details, but users editing existing YAML often need an opt-in round trip that preserves or controls presentation metadata.
Official YAML 1.2.2 references:
Current State
Issue #28 already tracks preserving comments through a conversion round trip. The broader presentation metadata capability also includes scalar styles, tag spelling, anchor names, and presentation control APIs.
Objective
Extend the existing presentation-preservation work into a complete opt-in metadata model that supports rich PowerShell editing without silently losing YAML presentation details.
PowerShell Design Considerations
- Metadata should be opt-in so normal object projection remains simple and idiomatic.
- Consider commands or parameter sets that make metadata-bearing objects explicit rather than surprising users with hidden properties.
- Preserve pipeline friendliness: metadata should survive common assignment, filtering, and re-emission workflows where feasible.
- Provide clear boundaries for when metadata cannot be preserved through arbitrary PowerShell object transformations.
Tasks
Benefits
- Enables editing YAML configuration while keeping human-authored context.
- Gives users explicit control over presentation rather than implicit best-effort behavior.
- Provides a foundation for representation-preserving transformations.
Acceptance Criteria
Related
Context
YAML 1.2.2 treats comments, scalar style, tag handles, anchor names, directives, and indentation as presentation details. Object projection can legitimately discard those details, but users editing existing YAML often need an opt-in round trip that preserves or controls presentation metadata.
Official YAML 1.2.2 references:
spec/Presentation-Metadata.mdCurrent State
Issue #28 already tracks preserving comments through a conversion round trip. The broader presentation metadata capability also includes scalar styles, tag spelling, anchor names, and presentation control APIs.
Objective
Extend the existing presentation-preservation work into a complete opt-in metadata model that supports rich PowerShell editing without silently losing YAML presentation details.
PowerShell Design Considerations
Tasks
Benefits
Acceptance Criteria
Related
spec/Presentation-Metadata.md