Why are my comments getting erased if I switch to 'Separate Sections' from 'Single Editor' when creating a custom schema in Panther?

Last updated: September 2, 2025

ISSUE

Why are my comments getting erased if I switch to Separate Sections from Single Editor when creating a custom schema in Panther? How do I fix this?

RESOLUTION

To retain your comments and formatting:

  • Make and save your changes (including adding comments) in the Single Editor view.

  • Avoid editing in Separate Sections after adding comments, as they will be overwritten.

  • After saving the schema, you can view it in the Single Editor to verify that your comments were saved.

CAUSE

When switching between Separate Sections and Single Editor views, Panther transfers the YAML data between the two panes. The Single Editor view is treated as the source of truth for the schema.

This means:

  • Comments and indentation added in the Single Editor are preserved.

  • The Separate Sections view does not display comments or certain formatting. It may appear that comments are erased, but they still exist behind the scenes as long as they're present in the Single Editor view.

Note, however, that if you edit content in Separate Sections while there are comments or specific formatting in Single Editor, those edits will overwrite the formatting and remove the comments in the Single Editor.