Skip to content

YAML round-trip strategy #85

Description

@jonocodes

Part of #82

Question

When the editor saves a layout, does it produce canonical (lossy) YAML via Pydantic model_dump(), or does it use ruamel.yaml to preserve comments and formatting? The trade-off: canonical is simple and always valid, but strips inline comments and manual formatting. Preserving comments requires carrying the original raw YAML alongside the parsed model and merging edited fields back in. Decide which path v1 ships.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions