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

any

Table of contents

Description:

This key toggles whether CloudCannon will allow any string case type when parsing snippet parameters.

Setting this key to true will allow any case type (uppercase, lowercase, mixed case) in snippet parameter parsing.

By default, this key is false (i.e., case restrictions apply based on other allowed_string_cases settings).

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

In this example, we have configured snippet format to allow any string case type.

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