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

leading_lower

Table of contents

Description:

This key toggles whether CloudCannon will allow strings starting with a lowercase letter when parsing snippet parameters.

Setting this key to true will allow strings that begin with a lowercase letter in snippet parameter parsing.

By default, this key is false (i.e., strings starting with lowercase are not allowed unless any is enabled).

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

In this example, we have configured snippet format to allow strings starting with a lowercase letter.

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