Skip to content

Support for Adding Top-Level Comments in Generated YAML #33

@NayanTheSpaceGuy

Description

@NayanTheSpaceGuy

Problem

Currently, the tool allows adding comments inside fields, but it does not support adding comments outside of fields—such as at the beginning of the file (header comments) or between top-level key-value pairs.

This limitation makes it difficult to include important metadata like license notices, copyright information, file descriptions, or general documentation directly within the YAML output.

Proposed Feature

Enable users to define top-level comments, including:

  • Header comments (before the first key-value pair)
  • Standalone comments between top-level fields

Use Case

  • Ensuring compliance by adding license and copyright notices.
  • Providing documentation within YAML for better readability.

Would it be possible to support this feature? It would be incredibly useful!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions