liquid icon indicating copy to clipboard operation
liquid copied to clipboard

Feature Suggestions: allow "_comment" in {%- schema -%} attributes

Open ckanitz opened this issue 3 years ago • 0 comments

So {%- schema -%} can get very bloated and hard to read, even with proper "id"s and since it's just JSON there is no native possibility to comment it.

Therefor I suggest to allow something like "_comment" as attribute within schema:

{
  "_comment": "-- NEWSLETTER SETTINGS --",
  "type": "header",
  "content": "t:sections.footer.settings.newsletter.settings_header.content",
  "info": "t:sections.footer.settings.newsletter.settings_header.info"
},
{
  "type": "checkbox",
  "id": "newsletter_enable",
  "default": true,
  "label": "t:sections.footer.settings.newsletter.enable.label"
},
{ "...": "..." }

ckanitz avatar Jan 28 '22 16:01 ckanitz