☁️ Loving our new documentation website? Provide feedback in the CloudCannon Community! ✨

lower

Table of contents

Description:

This key toggles whether CloudCannon will allow only lowercase strings when parsing snippet parameters.

Setting this key to true will require all characters to be lowercase in snippet parameter parsing.

By default, this key is false (i.e., lowercase-only strings are not required unless any is enabled).

Appears in:
└── Snippet Format
    └── allowed_string_cases
        └── lower
Type:
boolean
Examples:

In this example, we have configured snippet format to allow only lowercase strings.

Copied to clipboard
_snippets:
  example:
    snippet: <<example [[param]]>>
    params:
      param:
        parser: argument
        options:
          format:
            allowed_string_cases:
              lower: true
{
  "_snippets": {
    "example": {
      "snippet": "<<example [[param]]>>",
      "params": {
        "param": {
          "parser": "argument",
          "options": {
            "format": {
              "allowed_string_cases": {
                "lower": true
              }
            }
          }
        }
      }
    }
  }
}
Open in a new tab