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

leading_upper

Table of contents

Description:

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

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

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

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

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

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